Logo
~Sockets~
~Examples~
~Contact~


socket_include.h File Reference

#include "sockets-config.h"
#include <list>
#include <stdlib.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>

Include dependency graph for socket_include.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Defines

#define SOCKETS_DYNAMIC_TEMP
#define Errno   errno
#define StrError   strerror
#define closesocket   close
#define INVALID_SOCKET   -1
#define SOCKET_ERROR   -1
#define INADDR_NONE   ((unsigned long) -1)
#define SOL_IP   IPPROTO_IP
#define AI_NUMERICHOST   1
#define NI_NUMERICHOST   1

Typedefs

typedef unsigned long socketuid_t
 define type to uniquely identify a socket instance.
typedef int SOCKET
typedef unsigned long ipaddr_t
typedef unsigned short port_t
typedef std::list< SOCKETsocket_v
 List type containing file descriptors.

Detailed Description

Date:
2005-04-12
Author:
grymse@alhem.net

Definition in file socket_include.h.


Define Documentation

#define AI_NUMERICHOST   1

Definition at line 295 of file socket_include.h.

Referenced by ResolvSocket::OnDetached(), Ipv4Address::Resolve(), and Utility::u2ip().

#define closesocket   close

#define Errno   errno

Definition at line 85 of file socket_include.h.

Referenced by HttpPostSocket::AddFile(), UdpSocket::AddMulticastMembership(), UdpSocket::Bind(), ListenSocket< X >::Bind(), SocketHandler::CheckClose(), TcpSocket::Close(), Socket::Close(), Socket::CreateSocket(), UdpSocket::DropMulticastMembership(), UdpSocket::GetMulticastTTL(), Socket::IpAddMembership(), Socket::IpDropMembership(), Socket::IpMulticastTTL(), Socket::IpTOS(), Socket::IpTTL(), UdpSocket::IsBroadcast(), UdpSocket::IsMulticastLoop(), SocketHandler::ISocketHandler_Select(), UdpSocket::OnRead(), TcpSocket::OnRead(), SctpSocket::OnRead(), ListenSocket< X >::OnRead(), UdpSocket::Open(), TcpSocket::Open(), SctpSocket::Open(), SocketHandler::RebuildFdset(), UdpSocket::SendBuf(), UdpSocket::SendToBuf(), UdpSocket::SetBroadcast(), HttpPutSocket::SetFile(), Socket::SetIpHdrincl(), Socket::SetIpMulticastTTL(), Socket::SetIpOptions(), Socket::SetIpTOS(), Socket::SetIpTTL(), UdpSocket::SetMulticastDefaultInterface(), UdpSocket::SetMulticastLoop(), Socket::SetMulticastLoop(), UdpSocket::SetMulticastTTL(), Socket::SetNonblocking(), Socket::SetSoBroadcast(), Socket::SetSoDebug(), Socket::SetSoDontroute(), Socket::SetSoKeepalive(), Socket::SetSoLinger(), Socket::SetSoOobinline(), Socket::SetSoRcvbuf(), Socket::SetSoRcvlowat(), Socket::SetSoRcvtimeo(), Socket::SetSoReuseaddr(), Socket::SetSoSndbuf(), Socket::SetSoSndlowat(), Socket::SetSoSndtimeo(), TcpSocket::SetTcpNodelay(), Socket::SoAcceptconn(), SocketHandlerEp::SocketHandlerEp(), Socket::SoError(), Socket::SoRcvbuf(), Socket::SoSndbuf(), Socket::SoType(), and TcpSocket::TryWrite().

#define INADDR_NONE   ((unsigned long) -1)

Definition at line 99 of file socket_include.h.

#define NI_NUMERICHOST   1

Definition at line 298 of file socket_include.h.

Referenced by Ipv4Address::Convert(), Utility::l2ip(), and Utility::reverse().

#define SOCKET_ERROR   -1

Definition at line 96 of file socket_include.h.

#define SOCKETS_DYNAMIC_TEMP

Definition at line 44 of file socket_include.h.

#define StrError   strerror

Definition at line 86 of file socket_include.h.

Referenced by HttpPostSocket::AddFile(), UdpSocket::AddMulticastMembership(), UdpSocket::Bind(), ListenSocket< X >::Bind(), SocketHandler::CheckClose(), TcpSocket::Close(), Socket::Close(), Socket::CreateSocket(), UdpSocket::DropMulticastMembership(), UdpSocket::GetMulticastTTL(), Socket::IpAddMembership(), Socket::IpDropMembership(), Socket::IpMulticastTTL(), Socket::IpTOS(), Socket::IpTTL(), UdpSocket::IsBroadcast(), UdpSocket::IsMulticastLoop(), SocketHandler::ISocketHandler_Select(), Socket::OnException(), UdpSocket::OnRead(), TcpSocket::OnRead(), SctpSocket::OnRead(), ListenSocket< X >::OnRead(), TcpSocket::OnWrite(), SctpSocket::OnWrite(), UdpSocket::Open(), TcpSocket::Open(), SctpSocket::Open(), UdpSocket::SendBuf(), UdpSocket::SendToBuf(), UdpSocket::SetBroadcast(), HttpPutSocket::SetFile(), Socket::SetIpHdrincl(), Socket::SetIpMulticastTTL(), Socket::SetIpOptions(), Socket::SetIpTOS(), Socket::SetIpTTL(), UdpSocket::SetMulticastDefaultInterface(), UdpSocket::SetMulticastLoop(), Socket::SetMulticastLoop(), UdpSocket::SetMulticastTTL(), Socket::SetNonblocking(), Socket::SetSoBroadcast(), Socket::SetSoDebug(), Socket::SetSoDontroute(), Socket::SetSoKeepalive(), Socket::SetSoLinger(), Socket::SetSoOobinline(), Socket::SetSoRcvbuf(), Socket::SetSoRcvlowat(), Socket::SetSoRcvtimeo(), Socket::SetSoReuseaddr(), Socket::SetSoSndbuf(), Socket::SetSoSndlowat(), Socket::SetSoSndtimeo(), TcpSocket::SetTcpNodelay(), Socket::SoAcceptconn(), SocketHandlerEp::SocketHandlerEp(), Socket::SoError(), Socket::SoRcvbuf(), Socket::SoSndbuf(), Socket::SoType(), and TcpSocket::TryWrite().


Typedef Documentation

typedef unsigned long ipaddr_t

Definition at line 266 of file socket_include.h.

typedef unsigned short port_t

Definition at line 267 of file socket_include.h.

typedef int SOCKET

Definition at line 84 of file socket_include.h.

typedef std::list<SOCKET> socket_v

List type containing file descriptors.

Definition at line 284 of file socket_include.h.

typedef unsigned long socketuid_t

define type to uniquely identify a socket instance.

Definition at line 47 of file socket_include.h.

Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4