public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Patrick Schäfer" <ps@ekse.de>
To: Andrew Haley <aph@redhat.com>
Cc: java@gcc.gnu.org
Subject: Re: Compiling project using apache mina fails
Date: Mon, 08 Jun 2009 19:26:00 -0000	[thread overview]
Message-ID: <9F97E146-6308-4332-9C72-662BD3292DBE@ekse.de> (raw)
In-Reply-To: <4A2CE244.9030702@redhat.com>

>>
> If I had a way to look at what was happening I'd just have a look.
thank you for helping again!

> I don't know what class the Socket belongs to.  At the call to
> Socket.getLocalSocketAddress, do something like
>
>  println(socket)
>  println(socket.getClass())

those two calls result in:

println(socket) => gnu.java.nio.NIOSocket@6cff840 [addr=/ 
10.0.1.194,port=4711,localport=-1]
println(socket.getClass()) => class gnu.java.nio.NIOSocket

The foreign port and ip-address have been set correctly. but the  
localport is definitely wrong.
The connection is established on the other machine though. maybe this  
port is not stored inside NIOSocket?

thank you

Patrick

  reply	other threads:[~2009-06-08 19:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 14:38 Patrick Schäfer
2009-06-05 15:31 ` Andrew Haley
2009-06-07 18:32 ` Patrick Schäfer
2009-06-08 10:05   ` Andrew Haley
2009-06-08 19:26     ` Patrick Schäfer [this message]
2009-06-08 20:23       ` Andrew Haley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9F97E146-6308-4332-9C72-662BD3292DBE@ekse.de \
    --to=ps@ekse.de \
    --cc=aph@redhat.com \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).