32 : hnet(0), shutdown(false), traffic_time(50), resend_time(300),
33 packets_sent(0), packets_recv(0), bytes_sent(0), bytes_recv(0), retries(0), drops(0), lag(100)
39 hnet = CreateThread(0, 4096,
NetLinkProc, (LPVOID)
this, 0, &thread_id);
44 : addr(a), hnet(0), shutdown(false), traffic_time(50), resend_time(300),
45 packets_sent(0), packets_recv(0), bytes_sent(0), bytes_recv(0), retries(0), drops(0), lag(100)
52 hnet = CreateThread(0, 4096,
NetLinkProc, (LPVOID)
this, 0, &thread_id);
62 WaitForSingleObject(
hnet, 2000);
73 static DWORD base_netid = 1000;
98 peer =
new(__FILE__, __LINE__)
NetPeer(a, base_netid++);
104 return peer->
NetID();
181 if (msg && msg->
NetID()) {
211 return (DWORD) E_POINTER;
327 return new(__FILE__, __LINE__)
NetGram(from, msg);
343 Print(
"NetLink::AckNetGram( NULL!!! )\n");
361 DWORD msec = time - orig->
SendTime();
362 double dlag = 0.75 *
lag + 0.25 * msec;
396 peer =
new(__FILE__, __LINE__)
NetPeer(gram->
Address(), base_netid++);
433 DWORD delta = time - last_send;
462 while (++iter && !peer) {
465 if (p->
NetID() == netid)
479 while (++iter && !peer) {