From: <bo...@us...> - 2003-11-20 15:29:11
|
Update of /cvsroot/sharedaemon/core/src In directory sc8-pr-cvs1:/tmp/cvs-serv29047 Modified Files: test.cpp Log Message: Fixed some variable declaration bugs which were introduced by splitting the function Serve. Index: test.cpp =================================================================== RCS file: /cvsroot/sharedaemon/core/src/test.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- test.cpp 20 Nov 2003 14:44:06 -0000 1.23 +++ test.cpp 20 Nov 2003 15:28:28 -0000 1.24 @@ -652,6 +652,9 @@ } void Client_Tcp_Sending_Hello_Packet(u32 id) { + bool rc; + Ed2kPacket p; + p.BuildHello3Packet( 0x10,userhash,ipport(MY_IP,DEFAULT_CLIENTPORT), 0x01,"bothie tests his xMule v2 core", @@ -693,6 +696,9 @@ } void Server_Tcp_Sending_Login_Request(u32 id) { + bool rc; + Ed2kPacket p; + p.BuildLoginRequest3Packet( userhash,ipport(0,DEFAULT_CLIENTPORT), // <HASH>user<IPPORT>client<DWORD>tagcount 0x01,"bothie tests his xMule v2 core", // <TAG>non-unique user name @@ -806,6 +812,9 @@ } bool Client_Tcp_Waiting_For_Hello_Answer(u32 id) { + bool rc; + Ed2kPacket p; + rc=Connection::GetSocket(id).ReceivePacket(p); if (!rc) { if (get_errno()!=SOCKET_EWOULDBLOCK) { @@ -825,6 +834,9 @@ } bool Client_Tcp_Waiting_For_Hello_Packet(u32 id) { + bool rc; + Ed2kPacket p; + rc=Connection::GetSocket(id).ReceivePacket(p); if (!rc) { if (get_errno()!=SOCKET_EWOULDBLOCK) { @@ -848,7 +860,6 @@ static u32 nc=0xffffffff; bool rc; - Ed2kPacket p; if (id==nc || Connection::IsFree(id)) { return; |