xrootd
XrdInet.hh
Go to the documentation of this file.
00001 #ifndef __XRD_INET_H__
00002 #define __XRD_INET_H__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                            X r d I n e t . h h                             */
00006 /*                                                                            */
00007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*       All Rights Reserved. See XrdInfo.cc for complete License Terms       */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC03-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012 
00013 #include <unistd.h>
00014 
00015 #include "XrdNet/XrdNet.hh"
00016 
00017 // The XrdInet class defines a generic network where we can define common
00018 // initial tcp/ip and udp operations. It is based on the generalized network
00019 // support framework. However, Accept and Connect have been augmented to
00020 // provide for more scalable communications handling.
00021 //
00022 class XrdOucTrace;
00023 class XrdSysError;
00024 class XrdNetSecurity;
00025 class XrdLink;
00026 
00027 class XrdInet : public XrdNet
00028 {
00029 public:
00030 
00031 XrdLink    *Accept(int opts=0, int timeout=-1);
00032 
00033 XrdLink    *Connect(const char *host, int port, int opts=0, int timeout=-1);
00034 
00035             XrdInet(XrdSysError *erp, XrdOucTrace *tP, XrdNetSecurity *secp=0)
00036                       : XrdNet(erp, secp), XrdTrace(tP) {}
00037            ~XrdInet() {}
00038 private:
00039 
00040 XrdOucTrace       *XrdTrace;
00041 static const char *TraceID;
00042 };
00043 #endif