diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-06 11:31:42 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-06 11:31:42 +0000 |
commit | 27a3b5eb022c8f2efffa061701c0162fc1ab5d0b (patch) | |
tree | 2dee18756a4650263d78b1f85a6a9787c04fa024 /src/net/network.cpp | |
parent | 8dd53f61516293347c2eb6641bf874b75d6e6f81 (diff) | |
download | mana-client-27a3b5eb022c8f2efffa061701c0162fc1ab5d0b.tar.gz mana-client-27a3b5eb022c8f2efffa061701c0162fc1ab5d0b.tar.bz2 mana-client-27a3b5eb022c8f2efffa061701c0162fc1ab5d0b.tar.xz mana-client-27a3b5eb022c8f2efffa061701c0162fc1ab5d0b.zip |
Fixing inventory (still needed to add a proper way to choose items, now creating a item widget)
Diffstat (limited to 'src/net/network.cpp')
-rw-r--r-- | src/net/network.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp index 0162d246..7124073c 100644 --- a/src/net/network.cpp +++ b/src/net/network.cpp @@ -149,10 +149,15 @@ void flush() { out_size -= ret; } } - if(ret==SOCKET_ERROR) { + if (ret == SOCKET_ERROR) { error("Socket Error"); #ifdef WIN32 log("Error", "Socket error: %i ", WSAGetLastError()); + if (WSAGetLastError() == 10053) + log("Error", "Packet size error"); + /** Probably the last packet you sent, was defined with + * wrong size: WFIFOSET(size); + */ #else log("Error", "socket_error", "Undefined socket error"); #endif |