Changeset 6876


Ignore:
Timestamp:
Oct 10, 2008, 12:38:37 AM (13 years ago)
Author:
charles
Message:

(libT) #1338: EMSGSIZE and EPROTO not found on Windows

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-common.h

    r6842 r6876  
    5858tr_peer_event;
    5959
     60#ifdef WIN32
     61 #define EMSGSIZE WSAEMSGSIZE
    6062#endif
     63
     64#endif
  • trunk/libtransmission/peer-mgr.c

    r6857 r6876  
    994994                peer->doPurge = 1;
    995995            }
    996             else if( ( e->err == EPROTO )
    997                   || ( e->err == ERANGE )
     996            else if( ( e->err == ERANGE )
    998997                  || ( e->err == EMSGSIZE )
    999998                  || ( e->err == ENOTCONN ) )
  • trunk/libtransmission/peer-msgs.c

    r6865 r6876  
    14321432        dbgmsg( msgs, "bad packet - BT message #%d with a length of %d",
    14331433                (int)id, (int)msglen );
    1434         fireError( msgs, EPROTO );
     1434        fireError( msgs, EMSGSIZE );
    14351435        return READ_ERR;
    14361436    }
Note: See TracChangeset for help on using the changeset viewer.