Looking to SocketServer demo, it seems that s.Accept(server) blocks the program the second time. I mean:
- 1st s.Accept(server) passes just when demo program begins to send messages
- s.GetLine() works properly
- 2st s.Accept(server) blocks the program
However, if s.GetLine() is called in a loop, it takes all the messages properly.
Is there any kind of protocol embedded in TcpSocket used the way is used in SocketServer/Client demos, that does not match with plain send() calls?
Just to be sure: Do you open a new connection to the server for second 'send'? (the whole testcase would be useful).