mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-01 17:46:52 -04:00
Removed debug info fom bdnet (Patch from electron)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8002 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f7d3730080
commit
7b43f53a5e
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
|||
/********************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
||||
#if defined(_WIN32) || defined(__MINGW32__)
|
||||
|
||||
//#define BDNET_DEBUG
|
||||
|
||||
/* error handling */
|
||||
int bdnet_int_errno;
|
||||
|
@ -188,7 +189,9 @@ int bdnet_setsockopt(int s, int level, int optname,
|
|||
ssize_t bdnet_recvfrom(int s, void *buf, size_t len, int flags,
|
||||
struct sockaddr *from, socklen_t *fromlen)
|
||||
{
|
||||
#ifdef BDNET_DEBUG
|
||||
std::cerr << "bdnet_recvfrom()" << std::endl;
|
||||
#endif
|
||||
int ret = recvfrom(s, (char *) buf, len, flags, from, fromlen);
|
||||
if (ret == SOCKET_ERROR)
|
||||
{
|
||||
|
@ -201,7 +204,9 @@ ssize_t bdnet_recvfrom(int s, void *buf, size_t len, int flags,
|
|||
ssize_t bdnet_sendto(int s, const void *buf, size_t len, int flags,
|
||||
const struct sockaddr *to, socklen_t tolen)
|
||||
{
|
||||
#ifdef BDNET_DEBUG
|
||||
std::cerr << "bdnet_sendto()" << std::endl;
|
||||
#endif
|
||||
int ret = sendto(s, (const char *) buf, len, flags, to, tolen);
|
||||
if (ret == SOCKET_ERROR)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue