Changeset 93 in flair-src for trunk/lib/FlairCore


Ignore:
Timestamp:
Sep 29, 2016, 10:06:22 AM (8 years ago)
Author:
Sanahuja Guillaume
Message:

socket debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/Socket_impl.cpp

    r92 r93  
    177177  written =
    178178      sendto(fd, src, src_len, 0, (struct sockaddr *)&sock_in, sizeof(sock_in));
    179 
    180   if (written != (ssize_t)src_len) {
     179  if(written==-1) {
     180    self->Err("sendto error (%s)\n",strerror(-errno));
     181  } else if (written != (ssize_t)src_len) {
    181182    self->Err("sendto error %i/%i\n",written,src_len);
    182183  }
Note: See TracChangeset for help on using the changeset viewer.