NetLink Sockets C++ 1.0.0
Networking C++ Library @ Get NetLink Sockets C++ Library at SourceForge.net. Fast, secure and Free Open Source software downloads

include/netlink/socket.inline.h

00001 /*
00002     NetLink Sockets: Networking C++ library
00003     Copyright 2012 Pedro Francisco Pareja Ruiz (PedroPareja@Gmail.com)
00004 
00005     This file is part of NetLink Sockets.
00006 
00007     NetLink Sockets is free software: you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation, either version 3 of the License, or
00010     (at your option) any later version.
00011 
00012     NetLink Sockets is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with NetLink Sockets. If not, see <http://www.gnu.org/licenses/>.
00019 
00020 */
00021 
00022 #ifdef DOXYGEN
00023     #include <netlink/socket.h>
00024     NL_NAMESPACE_USE
00025 #endif
00026 
00034 inline const string& Socket::hostTo() const {
00035 
00036     return _hostTo;
00037 }
00038 
00045 inline const string& Socket::hostFrom() const {
00046 
00047     return _hostFrom;
00048 }
00049 
00056 inline unsigned Socket::portTo() const {
00057 
00058     return _portTo;
00059 }
00060 
00067 inline unsigned Socket::portFrom() const {
00068 
00069     return _portFrom;
00070 }
00071 
00077 inline Protocol Socket::protocol() const {
00078 
00079     return _protocol;
00080 }
00081 
00087 inline IPVer Socket::ipVer() const {
00088 
00089     return _ipVer;
00090 }
00091 
00097 inline SocketType Socket::type() const {
00098 
00099     return _type;
00100 }
00101 
00110 inline unsigned Socket::listenQueue() const {
00111 
00112     return _listenQueue;
00113 }
00114 
00121 inline bool Socket::blocking() const {
00122 
00123     return _blocking;
00124 }
00125 
00126 
00134 inline int Socket::socketHandler() const {
00135 
00136     return _socketHandler;
00137 }
00138 
00139 
 All Classes Namespaces Files Functions Enumerations Enumerator