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 ClassDef(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(Int_t &, Int_t &)
Receives a status and a message type.
Int_t Send(Int_t)
Send a single message opcode.
static SrvAuth_t fgSrvAuthHook
Int_t Recv(char *, Int_t, Int_t &)
Receive a character string message of maximum max length.
Int_t Send(const char *, Int_t=kMESS_STRING)
Send a character string buffer.
Int_t Recv(TMessage *&)
Receive a TMessage object.
Int_t Send(const TMessage &)
Send a TMessage object.
TServerSocket(const TServerSocket &)
virtual Int_t GetLocalPort()
Get port # to which server socket is bound. In case of error returns -1.
Int_t SendRaw(const void *, Int_t, ESendRecvOptions=kDefault)
Send a raw buffer of specified length.
static UChar_t fgAcceptOpt
Int_t Send(Int_t, Int_t)
Send a status and a single message opcode.
static void SetAcceptOptions(UChar_t Opt)
Set default options for Accept according to modifier 'mod'.
void operator=(const TServerSocket &)
Bool_t Authenticate(TSocket *)
Check authentication request from the client on new open connection.
static SrvClup_t fgSrvAuthClupHook
virtual ~TServerSocket()
Destructor: cleanup authentication stuff (if any) and close.
static void ShowAcceptOptions()
Print default options for Accept.
Int_t SendObject(const TObject *, Int_t=kMESS_OBJECT)
Send an object.
static UChar_t GetAcceptOptions()
Return default options for Accept.
virtual TSocket * Accept(UChar_t Opt=0)
Accept a connection on a server socket.
virtual TInetAddress GetLocalInetAddress()
Return internet address of host to which the server socket is bound, i.e.
TSeqCollection * fSecContexts
Int_t RecvRaw(void *, Int_t, ESendRecvOptions=kDefault)
Receive a raw buffer of specified length bytes.
Int_t Recv(char *, Int_t)
Receive a character string message of maximum max length.