10 #ifndef vtkServerSocket_h
11 #define vtkServerSocket_h
13 #include "vtkCommonSystemModule.h"
16 VTK_ABI_NAMESPACE_BEGIN
Encapsulates a client socket.
a simple class to control print indentation
Encapsulate a socket that accepts connections.
int GetServerPort()
Returns the port on which the server is running.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkServerSocket * New()
int CreateServer(int port)
Creates a server socket at a given port and binds to it.
vtkClientSocket * WaitForConnection(unsigned long msec=0)
Waits for a connection.
~vtkServerSocket() override
BSD socket encapsulation.