Shadowrun: Awakened 29 September 2011 - Build 871
Classes | Namespaces | Defines | Typedefs | Functions | Variables
Sockets.hpp File Reference
#include <cat/Platform.hpp>
#include <string>
#include <unistd.h>
Include dependency graph for Sockets.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cat::NetAddr

Namespaces

namespace  cat

Defines

#define CAT_IP4_LOOPBACK   "127.0.0.1"
#define CAT_IP6_LOOPBACK   "::1"

Typedefs

typedef u16 cat::Port
typedef int cat::Socket

Functions

void cat::CleanupSockets ()
CAT_INLINE bool cat::CloseSocket (Socket s)
bool cat::CreateSocket (int type, int protocol, bool SupportIPv4, Socket &out_s, bool &inout_OnlyIPv4)
Port cat::GetBoundPort (Socket s)
bool cat::NetBind (Socket s, Port port, bool OnlyIPv4)
std::string cat::SocketGetErrorString (int code)
std::string cat::SocketGetLastErrorString ()
bool cat::StartupSockets ()

Variables

static const Socket cat::INVALID_SOCKET = -1
static const int cat::SOCKET_ERROR = -1

Define Documentation

#define CAT_IP4_LOOPBACK   "127.0.0.1"

Definition at line 41 of file Sockets.hpp.

#define CAT_IP6_LOOPBACK   "::1"

Definition at line 42 of file Sockets.hpp.


Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net