Skip to content

e79c7b15 d5c2 1735 1310 c3b0bcb7e98f

Axel Kesseler edited this page Mar 1, 2023 · 1 revision

TcpNetworkWriter.Write Method

Writes provided message using underlying client connection.

Namespace: Plexdata.LogWriter.Internals.Writers
Assembly: Plexdata.LogWriter.Network (in Plexdata.LogWriter.Network.dll) Version: 1.0.7.1

Syntax

C#

public void Write(
	string message
)

Parameters

 

message
Type: System.String
The message to write.

Implements

INetworkWriter.Write(String)

Remarks

This method writes provided message using underlying client connection.

Nothing happens either if this instance is already disposed, or if the message is invalid, or if open the underlying client has failed for any reason.

Furthermore, a zero termination is appended to the message, but only if Termination is enabled and the message does not yet end with a zero termination.

Finally note, the client connection is closed automatically if the message end with a zero termination.

See Also

Reference

TcpNetworkWriter Class
Plexdata.LogWriter.Internals.Writers Namespace
INetworkLoggerSettings.Termination
INetworkLoggerSettings.Encoding
ITcpClientSocket.Open()
ITcpClientSocket.Send(Byte[])
ITcpClientSocket.Close()

Clone this wiki locally