Hey!
I'm new to Java and server/client programming and I'm writing a non-blocking nio socket server that connects to flash clients for a chat application. The flash client can connect and send data fine to the server, but receiving data is a different story.
I checked everything -- the data I want to send is getting all the way to the SocketChannel.send(ByteBuffer) and it's writing all of the data. I printed out the socket's port (I'm assuming that that's the port that the socket is writing to, as opposed to the local port which it listens on) and it was some random port (not the port that Flash is listening on). I'm guessing that's the problem. Shouldn't there be just one port if it's a socket? How do I keep the same read / write port?
Thanks!
Tucker
(First post!)
Edit: I checked ethereal and it looks like the flash client is specifying the port it's listening on and sending that to the server. I'm still boggled as to why it's not receiving the data, though