22 *( (mode&
SENDANDFORGET) ? this->lossy_socket : this->clt_tcp_sock ),
35 netbuf.
addChar( engage ? 1 : 0 );
89 netbuf.
addInt32( mount_indicies.size() );
90 for (
unsigned int i = 0;
i < mount_indicies.size(); ++
i)
101 netbuf.
addInt32( mount_indicies.size() );
102 for (
unsigned int i = 0;
i < mount_indicies.size(); ++
i)
109 const std::string &cargo,
110 unsigned int quantity,
121 netbuf.
addInt32( (
unsigned int) (mountOffset) );
122 netbuf.
addInt32( (
unsigned int) (subunitOffset) );
139 if (!un)
return false;
184 cerr<<
"SENDING A KILL REQUEST FOR PLAYER "<<callsign<<endl;
194 cerr<<
"SENDING A SAVE REQUEST FOR PLAYER "<<callsign<<endl;
198 if (cpnum >= 0 && lastsave.size() >= 2 && this->netversion < 4960)
207 cerr<<
"SENDING A DOCK REQUEST FOR UNIT "<<utdw_serial<<endl;
243 cerr<<
"SENDING A UNDOCK NOTIFICATION FOR UNIT "<<utdw_serial<<endl;
256 if (NetComm != NULL) {
257 current_freq = minfreq;
258 selected_freq = maxfreq;
265 if (NetComm != NULL) {
273 if (NetComm != NULL) {
274 char webcam_support = NetComm->
HasWebcam();
276 selected_freq = current_freq;
280 netbuf.
addChar( webcam_support );
281 netbuf.
addChar( portaudio_support );
288 cerr<<
"Starting communication session\n\n"<<endl;
295 if (NetComm != NULL) {
302 cerr<<
"Stopped communication session"<<endl;
308 if (NetComm != NULL) {
309 if ( current_freq == NetComm->
MinFreq() )
310 current_freq = NetComm->
MaxFreq();
318 if (NetComm != NULL) {
319 if ( current_freq == NetComm->
MaxFreq() )
320 current_freq = NetComm->
MinFreq();
328 return this->selected_freq;
333 return this->current_freq;
339 if ( NetComm != NULL && NetComm->
IsActive() )
340 NetComm->
SendMessage( *this->clt_tcp_sock, this->serial, message );
375 return this->NetComm == NULL ?
false : this->NetComm->
IsActive();
381 if (this->NetComm != NULL)