activemq-cpp-3.4.0

src/main/decaf/net/SocketOptions.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef _DECAF_NET_SOCKETOPTIONS_H_
00019 #define _DECAF_NET_SOCKETOPTIONS_H_
00020 
00021 #include <decaf/util/Config.h>
00022 
00023 namespace decaf {
00024 namespace net {
00025 
00030     class DECAF_API SocketOptions {
00031     public:
00032 
00037         static const int SOCKET_OPTION_TCP_NODELAY;
00038 
00048         static const int SOCKET_OPTION_BINDADDR;
00049 
00054         static const int SOCKET_OPTION_REUSEADDR;
00055 
00062         static const int SOCKET_OPTION_BROADCAST;
00063 
00071         static const int SOCKET_OPTION_IP_MULTICAST_IF;
00072 
00078         static const int SOCKET_OPTION_IP_MULTICAST_IF2;
00079 
00084         static const int SOCKET_OPTION_IP_MULTICAST_LOOP;
00085 
00090         static const int SOCKET_OPTION_IP_TOS;
00091 
00103         static const int SOCKET_OPTION_LINGER;
00104 
00109         static const int SOCKET_OPTION_TIMEOUT;
00110 
00118         static const int SOCKET_OPTION_SNDBUF;
00119 
00127         static const int SOCKET_OPTION_RCVBUF;
00128 
00142         static const int SOCKET_OPTION_KEEPALIVE;
00143 
00149         static const int SOCKET_OPTION_OOBINLINE;
00150 
00151     public:
00152 
00153         virtual ~SocketOptions();
00154 
00155     };
00156 
00157 }}
00158 
00159 #endif /* _DECAF_NET_SOCKETOPTIONS_H_ */