Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Receive data from the socket. This call blocks until some data is read from the socket. When readFully is set, this call will block until all the requested data is read from the socket. 0 on error, else number of bytes read is returned. On error, vtkCommand::ErrorEvent is raised.

virtual int vtkSocket::GetSocketDescriptor

(

)

[virtual]

Provides access to the internal socket descriptor. This is valid only when GetConnected() returns true.

static int vtkSocket::SelectSockets

(

const int *

sockets_to_select,

int

size,

unsigned long

msec,

int *

selected_index

)

[static]

Selects set of sockets. Returns 0 on timeout, -1 on error. 1 on success. Selected socket's index is returned thru selected_index

int vtkSocket::CreateSocket

(

)

[protected]

Creates an endpoint for communication and returns the descriptor. -1 indicates error.

void vtkSocket::CloseSocket

(

int

socketdescriptor

)

[protected]

Close the socket.

int vtkSocket::BindSocket

(

int

socketdescriptor,

int

port

)

[protected]

Binds socket to a particular port. Returns 0 on success other -1 is returned.

int vtkSocket::SelectSocket

(

int

socketdescriptor,

unsigned long

msec

)

[protected]

Selects a socket ie. waits for it to change status. Returns 1 on success; 0 on timeout; -1 on error. msec=0 implies no timeout.

int vtkSocket::Accept

(

int

socketdescriptor

)

[protected]

Accept a connection on a socket. Returns -1 on error. Otherwise the descriptor of the accepted socket.

int vtkSocket::Listen

(

int

socketdescriptor

)

[protected]

Listen for connections on a socket. Returns 0 on success. -1 on error.