forest-net
an overlay networks for large-scale virtual worlds
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
ClientProxy.h
1
#ifndef CLIPROXY_H
2
#define CLIPROXY_H
3
4
#include "
Forest.h
"
5
#include "PacketHeader.h"
6
#include "PacketStore.h"
7
class
ClientProxy
{
8
public
:
9
ClientProxy
(ipa_t);
10
~
ClientProxy
();
11
12
bool
init(ipa_t);
13
void
run(uint32_t);
14
15
int
recvFromForest();
16
int
recvFromAvatar();
17
void
send2cli(
int
);
18
void
send(
int
);
19
private
:
20
static
const
int
LISTEN_PORT = 30140;
21
static
const
int
UPDATE_PERIOD = 50;
22
static
const
int
npkts = 1000;
23
PacketStore *ps;
24
ipa_t myIpAdr;
25
ipa_t rtrIp;
26
fAdr_t
rtrAdr;
27
ipa_t avIp;
28
ipp_t avPort;
29
int
sock;
30
int
extSock;
31
int
avaSock;
32
};
33
#endif
forest-net
cpp
include
ClientProxy.h
Generated on Mon Aug 4 2014 11:13:35 for forest-net by
1.8.4