14 #include "vtkCommonSystemModule.h"
17 VTK_ABI_NAMESPACE_BEGIN
51 int Receive(
void*
data,
int length,
int readFully = 1);
57 vtkGetMacro(SocketDescriptor,
int);
64 static int SelectSockets(
65 const int* sockets_to_select,
int size,
unsigned long msec,
int* selected_index);
84 void CloseSocket(
int socketdescriptor);
90 int BindSocket(
int socketdescriptor,
int port);
97 int SelectSocket(
int socketdescriptor,
unsigned long msec);
103 int Accept(
int socketdescriptor);
108 int Listen(
int socketdescriptor);
113 int Connect(
int socketdescriptor,
const char* hostname,
int port);
119 int GetPort(
int socketdescriptor);
123 void operator=(
const vtkSocket&) =
delete;
126 VTK_ABI_NAMESPACE_END
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a collection for sockets.
int GetConnected()
Check is the socket is alive.
a simple class to control print indentation
BSD socket encapsulation.