SocketOptions.h

Go to the documentation of this file.
00001 #ifndef JAVA_NET_SOCKETOPTIONS_H
00002 #define JAVA_NET_SOCKETOPTIONS_H 1
00003 
00004 #ifndef JAVA_LANG_OBJECT_H
00005 #include <java_lang/Object.h>
00006 #endif /* JAVA_LANG_OBJECT_H */
00007 #ifndef JAVA_NET_SPEC
00008 #include <java_net/Spec.h>
00009 #endif /* JAVA_NET_SPEC */
00010 
00011 namespace java {
00012   namespace net {
00013 
00030     class JAVA_NET_SPEC SocketOptions : virtual public Interface {
00031 
00032     public:
00033 
00075       virtual void setOption(jint optID, const ObjectRef& value) = 0;
00076 
00110       virtual ObjectRef getOption(jint optID) const = 0;
00111 
00112       enum SOCKET_OPTIONS_ID {
00113 
00124         JTCP_NODELAY = 0x0001,
00125 
00131         JIP_TOS = 0x0003,
00132 
00138         JSO_REUSEADDR = 0x0004,
00139 
00158         JSO_BINDADDR = 0x000F,
00159 
00169         JIP_MULTICAST_IF = 0x0010,
00170 
00176         JIP_MULTICAST_LOOP = 0x0012,
00177 
00188         JIP_MULTICAST_IF2 = 0x001F,
00189 
00198         JSO_BROADCAST = 0x0020,
00199 
00216         JSO_LINGER = 0x0080,
00217 
00233         JSO_SNDBUF = 0x1001,
00234 
00251         JSO_RCVBUF = 0x1002,
00252 
00262         JSO_OOBINLINE = 0x1003,
00263 
00283         JSO_TIMEOUT = 0x1006,
00284 
00306         JSO_KEEPALIVE = 0x0008,
00307 
00308       };
00309 
00310     private:
00311 
00312       REGISTER_MEMBERS;
00313 
00314     };
00315 
00316   } // namespace net
00317 } // namespace java
00318 
00319 #endif /* JAVA_NET_SOCKETOPTIONS_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3