Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
client.h File Reference
#include <iostream>
#include <string.h>
#include "gfx/quaternion.h"
#include "networking/const.h"
#include "configxml.h"
#include "networking/lowlevel/vsnet_clientstate.h"
#include "networking/lowlevel/vsnet_address.h"
#include "networking/lowlevel/vsnet_socket.h"
#include "cmd/container.h"
#include "savegame.h"

Go to the source code of this file.

Classes

class  Client
 

Enumerations

enum  accountServerCommands {
  ACCT_LOGIN ='l', ACCT_NEWCHAR ='c', ACCT_NEWSUBSCRIBE ='u', ACCT_LOGIN_DATA ='d',
  ACCT_LOGIN_ERROR ='e', ACCT_LOGIN_ALREADY ='f', ACCT_LOGIN_NEW ='n', ACCT_LOGIN_ACCEPT ='a',
  ACCT_LOGOUT ='o', ACCT_RESYNC ='r', ACCT_SAVE ='s', ACCT_SAVE_LOGOUT ='S',
  ACCT_SUCCESS ='!'
}
 

Functions

void displayError (ObjSerial error_code)
 
std::ostream & operator<< (std::ostream &ostr, const Client &c)
 

Variables

VegaConfigvs_config
 

Enumeration Type Documentation

Enumerator
ACCT_LOGIN 
ACCT_NEWCHAR 
ACCT_NEWSUBSCRIBE 
ACCT_LOGIN_DATA 
ACCT_LOGIN_ERROR 
ACCT_LOGIN_ALREADY 
ACCT_LOGIN_NEW 
ACCT_LOGIN_ACCEPT 
ACCT_LOGOUT 
ACCT_RESYNC 
ACCT_SAVE 
ACCT_SAVE_LOGOUT 
ACCT_SUCCESS 

Definition at line 43 of file client.h.

44 {
45  ACCT_LOGIN ='l',
46  ACCT_NEWCHAR ='c',
47  ACCT_NEWSUBSCRIBE ='u',
48  ACCT_LOGIN_DATA ='d',
49  ACCT_LOGIN_ERROR ='e',
51  ACCT_LOGIN_NEW ='n',
52  ACCT_LOGIN_ACCEPT ='a',
53  ACCT_LOGOUT ='o',
54  ACCT_RESYNC ='r',
55  ACCT_SAVE='s',
56  ACCT_SAVE_LOGOUT ='S',
57  ACCT_SUCCESS ='!',
58 };

Function Documentation

void displayError ( ObjSerial  error_code)
std::ostream& operator<< ( std::ostream &  ostr,
const Client c 
)

Definition at line 166 of file vsnet_clientstate.cpp.

References Client::cltadr, Client::lossy_socket, and Client::tcp_sock.

167 {
168  ostr<<"(clnt addr "<<c.cltadr
169  <<" tcpsock="<<c.tcp_sock<<", lossysock=";
170  if (c.lossy_socket)
171  ostr<<*c.lossy_socket;
172  else
173  ostr<<"NULL";
174  return ostr;
175 }

Variable Documentation

VegaConfig* vs_config

Definition at line 17 of file acctserver.cpp.