_IceRead

Name

_IceRead -- read the specified number of bytes from an ICE connection

Synopsis

#include <X11/ICE/ICEmsg.h>

int _IceRead(IceConn iceConn, unsigned long int nbytes, char * ptr);

Description

The interface _IceRead() shall read the specified number of bytes from an Inter-Client Exchange connection.

The parameter iceConn shall specify the Inter-Client Exchange connection.

The parameter nbytes shall specify the number of bytes to read.

The output parameter ptr shall contain the data that was read.

Return Value

_IceRead() shall return 0 if it detects that the connection has closed and this was expected.

In the case of a fatal I/O error, _IceRead() shall return 1.

See Also

_IceReadSkip(), _IceWrite().