Go to the documentation of this file.
26 #include "vtkCommonSystemModule.h"
68 vtkGetMacro(SocketDescriptor,
int);
76 unsigned long msec,
int* selected_index);
95 void CloseSocket(
int socketdescriptor);
101 int BindSocket(
int socketdescriptor,
int port);
108 int SelectSocket(
int socketdescriptor,
unsigned long msec);
114 int Accept(
int socketdescriptor);
119 int Listen(
int socketdescriptor);
124 int Connect(
int socketdescriptor, const
char* hostname,
int port);
130 int GetPort(
int socketdescriptor);
134 void operator=(const
vtkSocket&) VTK_DELETE_FUNCTION;
int Send(const void *data, int length)
These methods send data over the socket.
static int SelectSockets(const int *sockets_to_select, int size, unsigned long msec, int *selected_index)
Selects set of sockets.
int GetConnected()
Check is the socket is alive.
abstract base class for most VTK objects
void CloseSocket()
Close the socket.
a collection for sockets.
a simple class to control print indentation
int Receive(void *data, int length, int readFully=1)
Receive data from the socket.
BSD socket encapsulation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.