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