Data Structures | Enumerations | Variables

Nytro::Network Namespace Reference

The network related classes are hosted here, client, server, net packet, protocols. More...

Data Structures

class  NetPacketCodec
 A network packet encoder/decoder. More...
class  ServerInfo
 Class holding server information. More...
class  NetClientInfo
 Class holding client info, used in the server. More...
class  NetworkListener
 Listen to network events. More...
class  NetBase
 A network base class, used for client and server common function. More...
class  NetClient
 A network client used on client side to connect to a game server. More...
class  NetPacketHeader
 A net packet header info class. More...
class  NetPacket
 A network data packet. More...
class  NetServer
 The game server class, holds and manages a list of connected clients. More...
class  NetworkProvider
 The NetworkProvider handles the game networking from the game, creates clients and servers resolves addresses, etc. More...

Enumerations

enum  ENetConnectionStatus { eNetConnectionStatus_Unknown, eNetConnectionStatus_Connecting, eNetConnectionStatus_Connected, eNetConnectionStatus_Disconnected }
 

The peer connection status.

More...
enum  ENetworkProtocol { eNetworkProtocol_TCP, eNetworkProtocol_UDP }
 

The protocol used.

More...
enum  ENetMessageId {
  eNetMessageId_Unknown = 0, eNetMessageId_Connected, eNetMessageId_Disconnected, eNetMessageId_PeerConnected,
  eNetMessageId_PeerDisconnected, eNetMessageId_Ping, eNetMessageId_Hello, eNetMessageId_Bye,
  eNetMessageId_Kick, eNetMessageId_Tick, eNetMessageId_Ack, eNetMessageId_Last
}
 

Some standard engine message types.

More...

Variables

const uint32 kNetDefaultAckSendDelay = 300
const uint32 kNetMaxAcksToSend = 30
const uint32 kNetPacketBufferPreallocAmount = 50
 This constant defines the amount which will be used to prealloc the packet data buffer when using write* methods.
const uint32 kNetDefaultUdpClientDisconnectTimeout = 30000
const uint32 kNetDefaultPort = 37770
const uint32 kNetDefaultMaxConnections = 64
const uint32 kNetDefaultMaxMmoSlaveConnections = 1000
const uint32 kNetDefaultMaxPacketQueueSize = 10000

Detailed Description

The network related classes are hosted here, client, server, net packet, protocols.


Enumeration Type Documentation

The peer connection status.

Enumerator:
eNetConnectionStatus_Unknown 
eNetConnectionStatus_Connecting 
eNetConnectionStatus_Connected 
eNetConnectionStatus_Disconnected 

Definition at line 77 of file nyNetBase.h.

Some standard engine message types.

Enumerator:
eNetMessageId_Unknown 
eNetMessageId_Connected 
eNetMessageId_Disconnected 
eNetMessageId_PeerConnected 
eNetMessageId_PeerDisconnected 
eNetMessageId_Ping 
eNetMessageId_Hello 
eNetMessageId_Bye 
eNetMessageId_Kick 
eNetMessageId_Tick 
eNetMessageId_Ack 
eNetMessageId_Last 

Definition at line 37 of file nyNetPacket.h.

The protocol used.

Enumerator:
eNetworkProtocol_TCP 
eNetworkProtocol_UDP 

Definition at line 86 of file nyNetBase.h.


Variable Documentation

Definition at line 20 of file nyNetBase.h.

Definition at line 23 of file nyNetworkProvider.h.

Definition at line 24 of file nyNetworkProvider.h.

Definition at line 25 of file nyNetworkProvider.h.

Definition at line 22 of file nyNetworkProvider.h.

Definition at line 17 of file nyNetServer.h.

Definition at line 21 of file nyNetBase.h.

This constant defines the amount which will be used to prealloc the packet data buffer when using write* methods.

Definition at line 21 of file nyNetPacket.h.


© Copyright 7thFACTOR Entertainment - All rights reserved