- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- File List
- File Members

# RakPeer.cpp File Reference

`#include "RakNetDefines.h"`
`#include "RakPeer.h"`
`#include "NetworkTypes.h"`
`#include <unistd.h>`
`#include <pthread.h>`
`#include <ctype.h>`
`#include <string.h>`
`#include "GetTime.h"`
`#include "PacketEnumerations.h"`
`#include "DS_HuffmanEncodingTree.h"`
`#include "Rand.h"`
`#include "PluginInterface.h"`
`#include "StringCompressor.h"`
`#include "StringTable.h"`
`#include "NetworkIDGenerator.h"`
`#include "SHA1.h"`
`#include "RakSleep.h"`
`#include "RouterInterface.h"`
`#include "RakAssert.h"`
`#include <malloc.h>`
`#include <stdlib.h>`

## Defines
#define | closesocket close
## Functions
void * | UpdateNetworkLoop (void *arguments)
int | PlayerIDAndIndexComp (const PlayerID &key, const PlayerIDAndIndex &data)
Packet * | AllocPacket (unsigned dataSize)
Packet * | AllocPacket (unsigned dataSize, unsigned char *data)
void | ProcessPortUnreachable (unsigned int binaryAddress, unsigned short port, RakPeer *rakPeer)
void | ProcessNetworkPacket (const unsigned int binaryAddress, const unsigned short port, const char *data, const int length, RakPeer *rakPeer)
## Variables
static const unsigned int | SYN_COOKIE_OLD_RANDOM_NUMBER_DURATION = 5000
static const int | MAX_OFFLINE_DATA_LENGTH = 400

## Detailed Description

This file is part of RakNet Copyright 2003 Kevin Jenkins.

Usage of RakNet is subject to the appropriate license agreement. Creative Commons Licensees are subject to the license found at http://creativecommons.org/licenses/by-nc/2.5/ Single application licensees are subject to the license found at http://www.rakkarsoft.com/SingleApplicationLicense.html Custom license users are subject to the terms therein. GPL license users are subject to the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.