Send a single byte of data to the client.
Syntax
object.WriteByte( Handle, Value )
Parameters
- Handle
- An integer value that specifies the handle to the client
session.
- Value
- An integer or character value that specifies the byte of data
that should be sent to the remote host. If the argument is a numeric
value, it will be automatically converted to its equivalent byte
value and written to the socket. If the argument is a string value,
then the first character will be written to the socket.
Return Value
This method returns a boolean value. If the byte of data was
successfully written to the socket, the method will return True. If
the data could not be written to the socket, the method will return
False and the application should check the value of the
LastError property to determine the exact cause of the
failure.
Remarks
The WriteByte method writes a single byte of data to the client
socket specified by the Handle argument. Typically the data is
copied to an internal buffer and control is immediately returned to
the program. If the buffer is full, the current thread will
block until the data can be sent. If the client does not acknowledge
the data that is being sent to it, this method will eventually fail
with an error indicating that the connection has been aborted.
See Also
|