February 18th, 2000, 01:38 AM
I wrote a Java servlet and a VB application, they communicate with each other by socket. The Java servlet works as the client, and the VB app is the server.
In java program, I must do flush() after I write something to the socket, then can the vb app receive the DataArrival event.
However in VB, there's no flush() method or something alike for socket, after the VB socket does SendData(), the Java client is just blocked for the incoming data. The only way to do is to close the VB socket. But I want to hold the socket for later use and I know it is really a lousy solution.
Sorry for my poor English.
In java program, I must do flush() after I write something to the socket, then can the vb app receive the DataArrival event.
However in VB, there's no flush() method or something alike for socket, after the VB socket does SendData(), the Java client is just blocked for the incoming data. The only way to do is to close the VB socket. But I want to hold the socket for later use and I know it is really a lousy solution.
Sorry for my poor English.