#include <stdio.h>#include <GL/gl.h>#include <GL/glu.h>#include <SDL/SDL.h>#include <SDL/SDL_image.h>#include <string>#include <iostream>#include <fstream>#include <cmath>#include <cassert>#include "replay.h"#include "globals.h"#include <SDL/SDL_net.h>Include dependency graph for net.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | PBUFFER |
| class | NET |
Defines | |
| #define | NET_DEBUG false |
| #define | MAX_PACKET_SIZE 8192 |
| #define | PACKET_BUFFER_LEN 160 |
| #define | UDP_SUCCESS 1 |
| #define | UDP_FAILURE -1 |
| #define | UDP_TIMEOUT 0 |
| #define | HANDSHAKESTR "vdrift-handshake-v01" |
| #define | HANDSHAKEREPLYSTR "vdrift-handshake-v01-reply" |
| #define | HANDSHAKETIMEOUT 3000 |
| #define | CONTROL_HANDSHAKE 0 |
| #define | _NET_H |
|
|
|
|
|
|
|
|
Definition at line 67 of file net.h. Referenced by NET::ClientHandshake(), and NET::ServerHandshake(). |
|
|
Definition at line 66 of file net.h. Referenced by NET::ClientHandshake(), and NET::ServerHandshake(). |
|
|
Definition at line 68 of file net.h. Referenced by NET::ClientHandshake(). |
|
|
Definition at line 59 of file net.h. Referenced by NET::Connect(), PBUFFER::Put(), and MULTIPLAY::SendPacketArray(). |
|
|
Definition at line 54 of file net.h. Referenced by NET::ClientHandshake(), NET::Connect(), NET::IsEqualToPacket(), MULTIPLAY::ProcessPacket(), MULTIPLAY::ReadState(), MULTIPLAY::ReceivePacketArray(), MULTIPLAY::ReceiveState(), NET::RecvBlock(), NET::Send(), MULTIPLAY::SendPacketArray(), MULTIPLAY::SendState(), NET::ServerHandshake(), and NET::WriteToPacket(). |
|
|
Definition at line 60 of file net.h. Referenced by NET::BufferPacket(), NET::GetMaxBuffers(), and NET::NumBufferedPackets(). |
|
|
Definition at line 63 of file net.h. Referenced by NET::ClientHandshake(), NET::UDPRecv(), and NET::UDPSend(). |
|
|
Definition at line 62 of file net.h. Referenced by NET::ClientHandshake(), NET::RecvBlock(), NET::UDPRecv(), and NET::UDPSend(). |
|
|
Definition at line 64 of file net.h. Referenced by NET::ClientHandshake(), and NET::UDPRecv(). |
1.4.6