ROOT
6.06/09
Reference Guide
|
Go to the source code of this file.
Functions | |
ClassImp (TPServerSocket) TPServerSocket | |
Create a parallel server socket object on a specified port. More... | |
ClassImp | ( | TPServerSocket | ) |
Create a parallel server socket object on a specified port.
Set reuse to true to force reuse of the server socket (i.e. do not wait for the time out to pass). Using backlog one can set the desirable queue length for pending connections. Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Use IsValid() to check the validity of the server socket. In case server socket is not valid use GetErrorCode() to obtain the specific error value. These values are: 0 = no error (socket is valid) -1 = low level socket() call failed -2 = low level bind() call failed -3 = low level listen() call failed Every valid server socket is added to the TROOT sockets list which will make sure that any open sockets are properly closed on program termination.
Definition at line 29 of file TPServerSocket.cxx.