29 #include <boost/shared_ptr.hpp>
51 namespace VsnetDownload
81 unsigned short _serverport;
97 vector< string >ship_select_list;
100 vector< string >lastsave;
101 string error_message;
116 unsigned int latest_timestamp;
124 boost::shared_ptr< VsnetDownload::Client::Manager >_downloadManagerClient;
125 static const char *_downloadSearchPaths[];
129 int recvMsg(
Packet *outpacket, timeval *timeout = NULL );
133 void receiveLocations(
const Packet *packet );
135 void receivePositions(
unsigned int numUnits,
unsigned int timestamp,
NetBuffer &netbuf,
double deltat );
137 void removeClient(
const Packet *packet );
156 return ship_select_list;
161 int loginAuth(
string str_callsign,
string str_passwd,
string &
error );
163 vector< string >&
loginAcctLoop(
string str_callsign,
string str_passwd );
176 this->callsign = string( calls );
180 this->callsign = calls;
184 return this->callsign;
199 return (
unsigned int) (deltatime*1000);
214 void sendCustom(
string cmd,
string args,
string id );
242 const std::string &cargo,
243 unsigned int quantity,
246 void shipRequest(
const std::string &cargo,
unsigned char type );
264 void createNetComm(
float minfreq,
float maxfreq,
bool video,
bool secured,
string method );
284 static void Reconnect( std::string srvipaddr,
unsigned short port );
294 void Reconnect( std::string ip, std::string port );