Changeset 3f199fc for sock.h


Ignore:
Timestamp:
2006-05-13T23:28:31Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
df70eafa
Parents:
0356ae3
Message:

Added a closesocket() that properly removes event handlers before closing a socket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sock.h

    r0356ae3 r3f199fc  
    1818#define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0)
    1919#define sockerr_again() (errno == EINPROGRESS || errno == EINTR)
     20#ifndef EVENTS_LIBEVENT
    2021#define closesocket(a) close(a)
     22#endif
    2123#else
    2224# include <winsock2.h>
Note: See TracChangeset for help on using the changeset viewer.