CMS 3D CMS Logo

SocketConst.h

Go to the documentation of this file.
00001 #ifndef CLASSLIB_SOCKET_CONST_H
00002 # define CLASSLIB_SOCKET_CONST_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "classlib/sysapi/system.h"
00007 
00008 namespace lat {
00009 namespace SocketConst {
00010 
00011 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00012 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00013 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00014 
00016 CLASSLIB_API extern const int MaxListen;                // SOMAXCONN
00017 
00019 CLASSLIB_API extern const int CloseDisallowReceive;
00020 CLASSLIB_API extern const int CloseDisallowSend;
00021 CLASSLIB_API extern const int CloseDisallowAll;
00022 
00024 CLASSLIB_API extern const int TypeStream;               // SOCK_STREAM
00025 CLASSLIB_API extern const int TypeDatagram;             // SOCK_DGRAM
00026 CLASSLIB_API extern const int TypeRaw;                  // SOCK_RAW
00027 // CLASSLIB_API extern const int TypeRDM;               // SOCK_RDM
00028 // CLASSLIB_API extern const int TypeSeqPacket; // SOCK_SEQPACKET
00029 
00031 CLASSLIB_API extern const int OptLevelSocket;           // Socket level
00032 CLASSLIB_API extern const int OptLevelTCP;              // TCP level
00033 CLASSLIB_API extern const int OptLevelIP;               // IP level
00034 
00036 CLASSLIB_API extern const int OptSockDebug;             // SO_DEBUG             int boolean
00037 CLASSLIB_API extern const int OptSockListening; // SO_ACCEPTCONN        int boolean
00038 CLASSLIB_API extern const int OptSockReuseAddress;      // SO_REUSEADDR         int boolean
00039 CLASSLIB_API extern const int OptSockKeepAlive; // SO_KEEPALIVE         int boolean
00040 CLASSLIB_API extern const int OptSockDontRoute; // SO_DONTROUTE         int boolean
00041 CLASSLIB_API extern const int OptSockBroadcast; // SO_BROADCAST         int boolean
00042 CLASSLIB_API extern const int OptSockUseLoopback;       // SO_USELOOPBACK       int boolean
00043 CLASSLIB_API extern const int OptSockLinger;            // SO_LINGER            struct linger *
00044 CLASSLIB_API extern const int OptSockOOBInline; // SO_OOBINLINE         int boolean
00045 CLASSLIB_API extern const int OptSockReusePort; // SO_REUSEPORT         int boolean
00046 CLASSLIB_API extern const int OptSockSendBuffer;        // SO_SNDBUF            int (# of bytes)
00047 CLASSLIB_API extern const int OptSockReceiveBuffer;     // SO_RCVBUF            int (# of bytes)
00048 CLASSLIB_API extern const int OptSockSendLowater;       // SO_SNDLOWAT          int (# of bytes)
00049 CLASSLIB_API extern const int OptSockReceiveLowater;    // SO_RCVLOWAT          int (# of bytes)
00050 CLASSLIB_API extern const int OptSockSendTimeout;       // SO_SNDTIMEO          struct timeval *
00051 CLASSLIB_API extern const int OptSockReceiveTimeout;    // SO_RCVTIMEO          struct timeval *
00052 CLASSLIB_API extern const int OptSockError;             // SO_ERROR             int
00053 CLASSLIB_API extern const int OptSockType;              // SO_TYPE              int (TypeXyz)
00054 CLASSLIB_API extern const int OptSockPassCreds; // SO_PASSCRED          int boolean
00055 CLASSLIB_API extern const int OptSockPeerCreds; // SO_PEERCRED          struct ucred *
00056 CLASSLIB_API extern const int OptSockBindToDevice;      // SO_BINDTODEVICE      char * ([IFNAMESIZ])
00057 CLASSLIB_API extern const int OptSockPriority;          // SO_PRIORITY          int
00058 // CLASSLIB_API extern const int OptSockBSDCompat;      // SO_BSDCOMPAT         int boolean
00059 
00061 CLASSLIB_API extern const int OptTCPNoDelay;            // TCP_NODELAY          int boolean
00062 CLASSLIB_API extern const int OptTCPMaxSegmentSize;     // TCP_MAXSEG           int
00063 CLASSLIB_API extern const int OptTCPCork;               // TCP_CORK             int boolean
00064 
00066 // CLASSLIB_API extern const int OptIPOptions;          // IP_OPTIONS           RFC 791
00067 // CLASSLIB_API extern const int OptIPPacketInfo;       // IP_PKTINFO
00068 // CLASSLIB_API extern const int OptIPReceiveTOS;       // IP_RECVTOS
00069 // CLASSLIB_API extern const int OptIPReceiveTTL;       // IP_RECVTTL
00070 // CLASSLIB_API extern const int OptIPReceiveOpts;      // IP_RECVOPTS
00071 // CLASSLIB_API extern const int OptIPReceiveRawOpts;   // IP_RETOPTS
00072 // CLASSLIB_API extern const int OptIPTOS;              // IP_TOS
00073 // CLASSLIB_API extern const int OptIPTTL;              // IP_TTL
00074 // CLASSLIB_API extern const int OptIPHeaderIncluded;   // IP_HDRINCL
00075 // CLASSLIB_API extern const int OptIPReceiveErrors;    // IP_RECVERR
00076 // CLASSLIB_API extern const int OptIPPMTUDiscovery;    // IP_PMTU_DISCOVER
00077 // CLASSLIB_API extern const int OptIPMTU;              // IP_MTU
00078 // CLASSLIB_API extern const int OptIPRouterAlert;      // IP_ROUTER_ALERT
00079 // CLASSLIB_API extern const int OptIPMulticastTTL;     // IP_MULTICAST_TTL     unsigned char
00080 // CLASSLIB_API extern const int OptIPMulticastLoop;    // IP_MULTICAST_LOOP    unsigned char
00081 // CLASSLIB_API extern const int OptIPAddMembership;    // IP_ADD_MEMBERSHIP    struct ip_mreq *
00082 // CLASSLIB_API extern const int OptIPDropMembership;   // IP_DROP_MEMBERSHIP   struct ip_mreq *
00083 // CLASSLIB_API extern const int OptIPMulticastInterface; // IP_MULTICAST_IF    struct in_addr *
00084 
00086 CLASSLIB_API extern const int MsgOutOfBand;             // MSG_OOB
00087 CLASSLIB_API extern const int MsgPeek;                  // MSG_PEEK
00088 CLASSLIB_API extern const int MsgWaitAll;               // MSG_WAITALL
00089 // CLASSLIB_API extern const int MsgNoSignal;           // MSG_NOSIGNAL
00090 // CLASSLIB_API extern const int MsgTruncate;           // MSG_TRUNC
00091 // CLASSLIB_API extern const int MsgErrorQueue; // MSG_ERRQUEUE
00092 // CLASSLIB_API extern const int MsgNoWait;             // MSG_DONTWAIT
00093 
00094 // CLASSLIB_API extern const int MsgRecord;             // MSG_EOR (output)
00095 // CLASSLIB_API extern const int MsgTruncated;          // MSG_TRUNC (output)
00096 // CLASSLIB_API extern const int MsgControlTruncated;   // MSG_CTRUNC (output)
00097 //                                                      // MSG_OOB (output)
00098 //                                                      // MSG_ERRQUEUE (output)
00099 //                                                      // MSG_DONTWAIT (output)
00100 
00101 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00102 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00103 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00104 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00105 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00106 
00107 } // namespace SocketConst
00108 } // namespace lat
00109 
00110 #endif // CLASSLIB_SOCKET_CONST_H

Generated on Tue Jun 9 17:38:52 2009 for CMSSW by  doxygen 1.5.4