Planeshift
|
Classes | |
class | ClientMsgHandler |
Handles messages to be sent out, connects to server and send those. More... | |
class | CmdHandler |
struct | CmdSubscription |
class | NetBase::Connection |
This class holds data for a connection. More... | |
class | csComparator< csRef< psNetPacketEntry >, csRef< psNetPacketEntry > > |
class | csHashComputer< PacketKey > |
class | csSyncRefCount |
struct | iCmdSubscriber |
This interface must be implemented by objects that want to receive command line strings messages. More... | |
struct | iNetSubscriber |
This interface must be implemented by objects that want to receive network messages. More... | |
class | MsgEntry |
The structure of 1 queue entry (pointer to a message) More... | |
class | MsgHandler |
This class is the client's and server's main interface for either sending network messages out or getting notified about inbound ones which have been received. More... | |
class | NetBase |
This class acts as a base for client/server net classes. More... | |
class | NetPacketQueueRefCount |
struct | OrderedMessageChannel |
This class holds the structure for guaranteed inbound ordering of certain message types. More... | |
class | PacketKey |
class | psClientNetSubscriber |
class | psCmdBase |
struct | psMessageBytes |
this struct represents the data that is sent out through the network (all additional stuff should go into the struct MsgEntry More... | |
class | psNetConnection |
Client-side UDP handler. More... | |
class | psNetInfos |
Gives informations about the network connection. More... | |
class | psNetMsgProfiles |
Statistics of receiving or sending of network messages. More... | |
struct | psNetPacket |
psNetPacket gives the networking code the context it needs, and all of this info goes out on the wire. More... | |
class | psNetPacketEntry |
class | psServerPinger |
Class psServerPinger takes care about sending pings to a server in Login screen. More... | |
struct | PublishDestination |
struct | Subscription |
Manages a iNetSubscriber watching a certain message type. More... | |
Macros | |
#define | IN_ADDR struct in_addr |
#define | INET_ADDRSTRLEN 22 |
#define | INVALID_SOCKET -1 |
#define | LPSOCKADDR struct sockaddr * |
#define | LPSOCKADDR_IN struct sockaddr_in * |
#define | MAXCLIENTQUEUESIZE 5000 |
#define | MAXPACKETHISTORY 1009 |
#define | MAXQUEUESIZE 20000 |
#define | MSG_SIZEOF_FLOAT sizeof(uint32) |
#define | MSG_SIZEOF_SECTOR 100 |
#define | MSG_SIZEOF_VECTOR2 (2*sizeof(uint32)) |
#define | MSG_SIZEOF_VECTOR3 (3*sizeof(uint32)) |
#define | MSG_SIZEOF_VECTOR4 (4*sizeof(uint32)) |
#define | NETAVGCOUNT 400 |
#define | NETINFOS_TICKARRAYSIZE 10 |
Number of entries in the ticks queue for calculating the average. More... | |
#define | NUM_BROADCAST 0xffffffff |
#define | PS_PACKED |
#define | RESENDAVGCOUNT 200 |
#define | SENDTO_MAX_RETRIES 200 |
#define | SENDTO_SELECT_TIMEOUT_SEC 0 |
#define | SENDTO_SELECT_TIMEOUT_USEC 10000 |
#define | SOCK_CLOSE(a) closesocket(a) |
#define | SOCK_CLOSE(a) close(a) |
#define | SOCK_IOCTL(a, b, c) ioctlsocket(a,b,(unsigned long *)c) |
#define | SOCK_IOCTL(a, b, c) ioctl(a,b,c) |
#define | SOCK_RECVFROM(a, b, c, d, e, f) recvfrom(a,(char *)b,c,d,e,f) |
#define | SOCK_RECVFROM(a, b, c, d, e, f) recvfrom(a,(void *) b,c,d,e,f) |
#define | SOCK_SELECT(max, read, write, except, timeout) select(max,read,write,except,timeout) |
#define | SOCK_SELECT(max, read, write, except, timeout) select(max,read,write,except,timeout) |
#define | SOCK_SENDTO(a, b, c, d, e, f) sendto(a,(const char *)b,c,d,e,f) |
#define | SOCK_SENDTO(a, b, c, d, e, f) sendto(a,(const void *) b,c,d,e,f) |
#define | SOCKADDR_IN struct sockaddr_in |
#define | SOCKET int |
#define | socklen_t int |
#define | WSAEWOULDBLOCK EAGAIN |
Typedefs | |
typedef GenericRefQueue< MsgEntry > | MsgQueue |
typedef uint8_t | msgtype |
typedef GenericRefQueue< psNetPacketEntry > | NetPacketQueue |
typedef uint32_t | objID |
Enumerations | |
enum | { PRIORITY_LOW = 0x00, PRIORITY_HIGH = 0x01, PRIORITY_MASK = 0x01 } |
enum | { PKTSIZE_ACK = 0, PKTMINRTO = 250, PKTMAXRTO = 60000, PKTINITRTO = 3000, FLAG_MULTIPACKET = 0x02, MAXPACKETSIZE = 1400 } |
Functions | |
static void | exitSocket () |
static int | initSocket () |
Variables | |
const unsigned int | MAX_MESSAGE_SIZE = 65535 - sizeof(psMessageBytes) - 1 |
const unsigned int | WINDOW_MAX_SIZE = 65536 |
#define NETINFOS_TICKARRAYSIZE 10 |
Number of entries in the ticks queue for calculating the average.
Definition at line 30 of file netinfos.h.
#define SOCK_IOCTL | ( | a, | |
b, | |||
c | |||
) | ioctlsocket(a,b,(unsigned long *)c) |
#define SOCK_RECVFROM | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | recvfrom(a,(char *)b,c,d,e,f) |
#define SOCK_RECVFROM | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | recvfrom(a,(void *) b,c,d,e,f) |
#define SOCK_SENDTO | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | sendto(a,(const char *)b,c,d,e,f) |
#define SOCK_SENDTO | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | sendto(a,(const void *) b,c,d,e,f) |
typedef GenericRefQueue<MsgEntry> MsgQueue |
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
PKTSIZE_ACK | |
PKTMINRTO | |
PKTMAXRTO | |
PKTINITRTO | |
FLAG_MULTIPACKET | |
MAXPACKETSIZE |
MAXPACKETSIZE includes header length ( sizeof(struct psNetPacket) ) |
Definition at line 33 of file netpacket.h.
const unsigned int MAX_MESSAGE_SIZE = 65535 - sizeof(psMessageBytes) - 1 |