12#ifndef ROOT_TServerSocket
13#define ROOT_TServerSocket
35typedef Int_t (*SrvAuth_t)(
TSocket *sock,
const char *,
const char *,
78 {
MayNotUse(
"Send(const TMessage &)");
return 0; }
82 {
MayNotUse(
"Send(Int_t, Int_t)");
return 0; }
84 {
MayNotUse(
"Send(const char *, Int_t)");
return 0; }
86 {
MayNotUse(
"SendObject(const TObject *, Int_t)");
return 0; }
88 {
MayNotUse(
"SendRaw(const void *, Int_t, ESendRecvOptions)");
return 0; }
90 {
MayNotUse(
"Recv(TMessage *&)");
return 0; }
92 {
MayNotUse(
"Recv(Int_t &, Int_t &)");
return 0; }
94 {
MayNotUse(
"Recv(char *, Int_t)");
return 0; }
96 {
MayNotUse(
"Recv(char *, Int_t, Int_t &)");
return 0; }
98 {
MayNotUse(
"RecvRaw(void *, Int_t, ESendRecvOptions)");
return 0; }
#define R__DEPRECATED(MAJOR, MINOR, REASON)
int Int_t
Signed integer 4 bytes (int)
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char)
#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.
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.
This class implements server sockets.
static UChar_t GetAcceptOptions() R__DEPRECATED(6
Return default options for Accept.
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 void SetAcceptOptions(UChar_t Opt) R__DEPRECATED(6
Set default options for Accept according to modifier 'mod'.
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.
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.
virtual ~TServerSocket()
Destructor: cleanup authentication stuff (if any) and close.
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.
virtual TSocket * Accept(UChar_t Opt=0)
Accept a connection on a server socket.
static ROOT::Deprecated::SrvAuth_t fgSrvAuthHook
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.
static ROOT::Deprecated::SrvClup_t fgSrvAuthClupHook
static void ShowAcceptOptions() R__DEPRECATED(6
Print default options for Accept.
This class implements client sockets.
Int_t(* SrvAuth_t)(TSocket *sock, const char *, const char *, std::string &, Int_t &, Int_t &, std::string &, TSeqCollection *)
Int_t(* SrvClup_t)(TSeqCollection *)