SocketTools .NET Edition

TelnetClient.Write Method (Char)

Write a character to the server.

[Visual Basic]
Overloads Public Function Write( _
   ByVal key As Char _
) As Integer
[C#]
public int Write(
   char key
);

Parameters

key
A character which will be written to the server.

Return Value

An integer value which specifies the number of characters actually written to the server. If an error occurs, a value of -1 is returned and the application should check the value of the LastError property to determine the cause of the failure.

Remarks

The Write method sends one character to the server. If the client is in non-blocking mode and the send buffer is full, an error will occur.

See Also