SocketTools .NET Edition

InternetServer.WriteLine Method (Int32)

Send an empty line of text to a client, terminated by a carriage-return and linefeed.

[Visual Basic]
Overloads Public Function WriteLine( _
   ByVal handle As Integer _
) As Boolean
[C#]
public bool WriteLine(
   int handle
);

Parameters

handle
An integer value which specifies the handle to the client session.

Return Value

A boolean value which specifies if the operation completed successfully. A return value of false indicates an error has occurred. To get extended error information, check the value of the LastError property.

Remarks

The WriteLine method will send an empty line of text to the specified client, terminated by a carriage-return and linefeed. Calling this method will force the calling thread to block until the complete line of text has been written, the write operation times out or the remote host aborts the connection.

The Write and WriteLine methods can be safely intermixed.

See Also