M
mike
I have just been doing some testing and learning on writing threads and
servers in java. I have a gui, that immediately starts a thread which
opens a socket. That all works fine, and a netstat in linux verifies
that the port has been opened. When I use the client I wrote to
connect to the socket, it tries to connect and just sits there. Never
connects. Also, I have noticed that if I telnet into the port, the
initial welcome message that the socket is suppose to send out upon
connection never gets sent. If I don't use the gui, and just run a
driver program which starts the socket and then try to connect to it,
it connects just fine. So I guess I have narrowed down the problem to
the GUI not giving time to the socket to do it's thing. I have tried
setting the priorities of the socket to 10 or max_priority, but still
nothing. Is there something I am missing?
servers in java. I have a gui, that immediately starts a thread which
opens a socket. That all works fine, and a netstat in linux verifies
that the port has been opened. When I use the client I wrote to
connect to the socket, it tries to connect and just sits there. Never
connects. Also, I have noticed that if I telnet into the port, the
initial welcome message that the socket is suppose to send out upon
connection never gets sent. If I don't use the gui, and just run a
driver program which starts the socket and then try to connect to it,
it connects just fine. So I guess I have narrowed down the problem to
the GUI not giving time to the socket to do it's thing. I have tried
setting the priorities of the socket to 10 or max_priority, but still
nothing. Is there something I am missing?