Share via


PipeServer.read Method

Reads data from the named pipe, written to by a pipe client.

Syntax

public str read()

Run On

Called

Return Value

Type: str
The data read from the pipe, if any.

Remarks

Data might not be available when this method is called, and it could be that no client has connected to the named pipe. If you want to wait for a client to connect, use the connect method. However, if you do not want to block the current thread waiting for a client to connect, poll by using the read method.

See Also

PipeServer Class

PipeServer.connect Method

PipeServer.read Method