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 // $Id: XrdInet.hh 22437 2008-03-04 14:35:16Z rdm $ 00014 00015 #include <unistd.h> 00016 00017 #include "XrdNet/XrdNet.hh" 00018 00019 // The XrdInet class defines a generic network where we can define common 00020 // initial tcp/ip and udp operations. It is based on the generalized network 00021 // support framework. However, Accept and Connect have been augmented to 00022 // provide for more scalable communications handling. 00023 // 00024 class XrdSysError; 00025 class XrdNetSecurity; 00026 class XrdLink; 00027 00028 class XrdInet : public XrdNet 00029 { 00030 public: 00031 00032 XrdLink *Accept(int opts=0, int timeout=-1); 00033 00034 XrdLink *Connect(const char *host, int port, int opts=0, int timeout=-1); 00035 00036 XrdInet(XrdSysError *erp, XrdNetSecurity *secp=0) 00037 : XrdNet(erp, secp) {} 00038 ~XrdInet() {} 00039 private: 00040 00041 static const char *TraceID; 00042 }; 00043 #endif