include/net.h File Reference

#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


Define Documentation

#define _NET_H
 

Definition at line 132 of file net.h.

#define CONTROL_HANDSHAKE   0
 

Definition at line 70 of file net.h.

#define HANDSHAKEREPLYSTR   "vdrift-handshake-v01-reply"
 

Definition at line 67 of file net.h.

Referenced by NET::ClientHandshake(), and NET::ServerHandshake().

#define HANDSHAKESTR   "vdrift-handshake-v01"
 

Definition at line 66 of file net.h.

Referenced by NET::ClientHandshake(), and NET::ServerHandshake().

#define HANDSHAKETIMEOUT   3000
 

Definition at line 68 of file net.h.

Referenced by NET::ClientHandshake().

#define MAX_PACKET_SIZE   8192
 

Definition at line 59 of file net.h.

Referenced by NET::Connect(), PBUFFER::Put(), and MULTIPLAY::SendPacketArray().

#define NET_DEBUG   false
 

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().

#define PACKET_BUFFER_LEN   160
 

Definition at line 60 of file net.h.

Referenced by NET::BufferPacket(), NET::GetMaxBuffers(), and NET::NumBufferedPackets().

#define UDP_FAILURE   -1
 

Definition at line 63 of file net.h.

Referenced by NET::ClientHandshake(), NET::UDPRecv(), and NET::UDPSend().

#define UDP_SUCCESS   1
 

Definition at line 62 of file net.h.

Referenced by NET::ClientHandshake(), NET::RecvBlock(), NET::UDPRecv(), and NET::UDPSend().

#define UDP_TIMEOUT   0
 

Definition at line 64 of file net.h.

Referenced by NET::ClientHandshake(), and NET::UDPRecv().


Generated on Thu Oct 19 04:07:43 2006 by  doxygen 1.4.6