Flush socket / EOF 
Author Message
 Flush socket / EOF

I am writing a TCP Server that will communicate with a java client.
All data will be text and numbers. The java app is looking for
something that tells it that the data is done being sent after each
transmission.  The person who is writing the java end asked if I can
send a Ctrl-F or flush the buffer.  I had intended to hand the socket
to a networkstream and use the stream for two way communications.  Is
there a better way to handle this?


Wed, 14 Dec 2005 02:39:46 GMT  
 Flush socket / EOF


Quote:
> I am writing a TCP Server that will communicate with a java client.
> All data will be text and numbers. The java app is looking for
> something that tells it that the data is done being sent after each
> transmission.  The person who is writing the java end asked if I can
> send a Ctrl-F or flush the buffer.  I had intended to hand the socket
> to a networkstream and use the stream for two way communications.  Is
> there a better way to handle this?

Just close the stream, which will flush and close the socket.  The client
should detect this as EOF on the socket.

David



Wed, 14 Dec 2005 02:46:11 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Socket flushing in VB (winsock)

2. Trouble with System.Net.Sockets.Socket under Windows 98

3. System.Net.Sockets.Socket Problem

4. System.Net.Sockets.Socket State

5. system.net.sockets.socket async server example

6. Detect Remote Disconnection System.Net.Sockets.Socket

7. System.Net.Sockets.Socket.EndReceive has a bogus return value

8. How to flush/disconnect a USB device?

9. SHChangeNotify(); flush start menu cache

10. Flushing the Undo stack

11. simulating "flush right"

12. Flush

 

 
Powered by phpBB® Forum Software