Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Public Attributes
RakNet::SocketDescriptor Struct Reference

Describes the local socket to use for RakPeer::Startup.

#include <RakNetTypes.h>

List of all members.

Public Member Functions

 SocketDescriptor ()
 SocketDescriptor (unsigned short _port, const char *_hostAddress)

Public Attributes

unsigned int extraSocketOptions
 XBOX only: set IPPROTO_VDP if you want to use VDP. If enabled, this socket does not support broadcast to 255.255.255.255.
char hostAddress [32]
 The local network card address to bind to, such as "127.0.0.1". Pass an empty string to use INADDR_ANY.
unsigned short port
 The local port to bind to. Pass 0 to have the OS autoassign a port.
unsigned short remotePortRakNetWasStartedOn_PS3_PSP2
short socketFamily

Detailed Description

Definition at line 136 of file RakNetTypes.h.


Constructor & Destructor Documentation

RakNet::SocketDescriptor::SocketDescriptor ( )
RakNet::SocketDescriptor::SocketDescriptor ( unsigned short  _port,
const char *  _hostAddress 
)

Member Data Documentation

Definition at line 166 of file RakNetTypes.h.

Definition at line 145 of file RakNetTypes.h.

Definition at line 142 of file RakNetTypes.h.

Definition at line 163 of file RakNetTypes.h.

IP version: For IPV4, use AF_INET (default). For IPV6, use AF_INET6. To autoselect, use AF_UNSPEC. IPV6 is the newer internet protocol. Instead of addresses such as 94.198.81.195, you may have an address such as fe80::7c:31f7:fec4:27de%14. Encoding takes 16 bytes instead of 4, so IPV6 is less efficient for bandwidth. On the positive side, NAT Punchthrough is not needed and should not be used with IPV6 because there are enough addresses that routers do not need to create address mappings. RakPeer::Startup() will fail if this IP version is not supported.

Precondition:
RAKNET_SUPPORT_IPV6 must be set to 1 in RakNetDefines.h for AF_INET6

Definition at line 153 of file RakNetTypes.h.


The documentation for this struct was generated from the following file:

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