12#ifndef ROOT_TServerSocket
13#define ROOT_TServerSocket
54 {
MayNotUse(
"Send(const TMessage &)");
return 0; }
58 {
MayNotUse(
"Send(Int_t, Int_t)");
return 0; }
60 {
MayNotUse(
"Send(const char *, Int_t)");
return 0; }
62 {
MayNotUse(
"SendObject(const TObject *, Int_t)");
return 0; }
64 {
MayNotUse(
"SendRaw(const void *, Int_t, ESendRecvOptions)");
return 0; }
66 {
MayNotUse(
"Recv(TMessage *&)");
return 0; }
68 {
MayNotUse(
"Recv(Int_t &, Int_t &)");
return 0; }
70 {
MayNotUse(
"Recv(char *, Int_t)");
return 0; }
72 {
MayNotUse(
"Recv(char *, Int_t, Int_t &)");
return 0; }
74 {
MayNotUse(
"RecvRaw(void *, Int_t, ESendRecvOptions)");
return 0; }
int Int_t
Signed integer 4 bytes (int).
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char).
bool Bool_t
Boolean (0=false, 1=true) (bool).
#define ClassDefOverride(name, id)
ESocketBindOption
Options for binging the sockets created.
@ kInaddrAny
Any address for socket binding.
This class represents an Internet Protocol (IP) address.
void MayNotUse(const char *method) const
Use this method to signal that a method (defined in a base class) may not be called in a derived clas...
TObject()
TObject constructor.
Sequenceable collection abstract base class.
Int_t Recv(char *, Int_t) override
Receive a character string message of maximum max length.
Int_t Recv(Int_t &, Int_t &) override
Receives a status and a message type.
TServerSocket(const TServerSocket &)
Int_t Send(Int_t) override
Send a single message opcode.
Int_t Send(Int_t, Int_t) override
Send a status and a single message opcode.
Int_t Recv(char *, Int_t, Int_t &) override
Receive a character string message of maximum max length.
void operator=(const TServerSocket &)
Int_t Send(const char *, Int_t=kMESS_STRING) override
Send a character string buffer.
Int_t RecvRaw(void *, Int_t, ESendRecvOptions=kDefault) override
Receive a raw buffer of specified length bytes.
Int_t GetLocalPort() override
Get port # to which server socket is bound. In case of error returns -1.
virtual ~TServerSocket()
Destructor: close connection.
Int_t Recv(TMessage *&) override
Receive a TMessage object.
Int_t SendRaw(const void *, Int_t, ESendRecvOptions=kDefault) override
Send a raw buffer of specified length.
Int_t SendObject(const TObject *, Int_t=kMESS_OBJECT) override
Send an object.
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.
Int_t Send(const TMessage &) override
Send a TMessage object.
This class implements client sockets.