10#ifndef vtkServerSocket_h
11#define vtkServerSocket_h
13#include "vtkCommonSystemModule.h"
16VTK_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.
static vtkServerSocket * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkClientSocket * WaitForConnection(unsigned long msec=0)
Waits for a connection.
int CreateServer(int port, const std::string &bindAddr)
Creates a server socket at a given port and binds given IPV4 address to it.
int CreateServer(int port)
Creates a server socket at a given port and binds given IPV4 address to it.
~vtkServerSocket() override
BSD socket encapsulation.