This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling project using apache mina fails



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]