FlushSocket

Description

Immediately sends any waiting data to the remote host. If you do not call this then data will will wait forever in the buffer until you write more than 1400 bytes to the socket, at which point it will automatically be flushed. Every time you call this command a new packet will be sent, so when you are sending multiple values you should not call it after each value, as that would waste network bandwidth. You should write all the values and then flush so they will be sent together. If there is no data waiting to be sent this command does nothing. Returns 1 if the socket was successfully flushed, 0 if the socket disconnected.

Definition

integer FlushSocket( socketID )

Parameters