12#ifndef ROOT_TServerSocket
13#define ROOT_TServerSocket
59 Int_t tcpwindowsize = -1);
69 {
MayNotUse(
"Send(const TMessage &)");
return 0; }
73 {
MayNotUse(
"Send(Int_t, Int_t)");
return 0; }
75 {
MayNotUse(
"Send(const char *, Int_t)");
return 0; }
77 {
MayNotUse(
"SendObject(const TObject *, Int_t)");
return 0; }
79 {
MayNotUse(
"SendRaw(const void *, Int_t, ESendRecvOptions)");
return 0; }
81 {
MayNotUse(
"Recv(TMessage *&)");
return 0; }
83 {
MayNotUse(
"Recv(Int_t &, Int_t &)");
return 0; }
85 {
MayNotUse(
"Recv(char *, Int_t)");
return 0; }
87 {
MayNotUse(
"Recv(char *, Int_t, Int_t &)");
return 0; }
89 {
MayNotUse(
"RecvRaw(void *, Int_t, ESendRecvOptions)");
return 0; }
#define ClassDefOverride(name, id)
Int_t(* SrvClup_t)(TSeqCollection *)
Int_t(* SrvAuth_t)(TSocket *sock, const char *, const char *, std::string &, Int_t &, Int_t &, std::string &, TSeqCollection *)
This class represents an Internet Protocol (IP) address.
Mother of all ROOT objects.
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...
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.
static SrvAuth_t fgSrvAuthHook
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.
static UChar_t fgAcceptOpt
Int_t Recv(char *, Int_t, Int_t &) override
Receive a character string message of maximum max length.
static void SetAcceptOptions(UChar_t Opt)
Set default options for Accept according to modifier 'mod'.
void operator=(const TServerSocket &)
Int_t Send(const char *, Int_t=kMESS_STRING) override
Send a character string buffer.
Bool_t Authenticate(TSocket *)
Check authentication request from the client on new open connection.
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.
static SrvClup_t fgSrvAuthClupHook
virtual ~TServerSocket()
Destructor: cleanup authentication stuff (if any) and close.
static void ShowAcceptOptions()
Print default options for Accept.
Int_t Recv(TMessage *&) override
Receive a TMessage object.
static UChar_t GetAcceptOptions()
Return default options for Accept.
Int_t SendRaw(const void *, Int_t, ESendRecvOptions=kDefault) override
Send a raw buffer of specified length.
virtual TSocket * Accept(UChar_t Opt=0)
Accept a connection on a server socket.
Int_t SendObject(const TObject *, Int_t=kMESS_OBJECT) override
Send an object.
TInetAddress GetLocalInetAddress() override
Return internet address of host to which the server socket is bound, i.e.
TSeqCollection * fSecContexts
Int_t Send(const TMessage &) override
Send a TMessage object.