78 gROOT->GetListOfSockets()->Add(
this);
88 gROOT->GetListOfSockets()->Add(
this);
132 gROOT->GetListOfSockets()->Add(
this);
158 if (
fSocket == -1) {
return 0; }
163 if (
soc == -1) {
delete socket;
return 0; }
170 if (
socket->fSocket >= 0) {
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
R__EXTERN TVirtualMutex * gROOTMutex
ESocketBindOption
Options for binging the sockets created.
@ kInaddrLoopback
Refers to the local host via the loopback device.
R__EXTERN TSystem * gSystem
#define R__LOCKGUARD(mutex)
This class represents an Internet Protocol (IP) address.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetName(const char *name)
Set the name of the TNamed.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Int_t GetLocalPort() override
Get port # to which server socket is bound. In case of error returns -1.
virtual ~TServerSocket()
Destructor: close connection.
virtual TSocket * Accept(UChar_t opt=0)
Accept a connection on a server socket.
TInetAddress GetLocalInetAddress() override
Return internet address of host to which the server socket is bound, i.e.
This class implements client sockets.
virtual void Close(Option_t *opt="")
Close the socket.
virtual int GetServiceByName(const char *service)
Get port # of internet service.
virtual TInetAddress GetSockName(int sock)
Get Internet Protocol (IP) address of host and port #.
virtual char * GetServiceByPort(int port)
Get name of internet service.
virtual int AcceptConnection(int sock)
Accept a connection.
virtual TInetAddress GetPeerName(int sock)
Get Internet Protocol (IP) address of remote host and port #.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual int AnnounceUnixService(int port, int backlog)
Announce unix domain service.
virtual int AnnounceTcpService(int port, Bool_t reuse, int backlog, int tcpwindowsize=-1, ESocketBindOption socketBindOption=ESocketBindOption::kInaddrAny)
Announce TCP/IP service.