1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/socket.h
3 // Purpose: various wxSocket-related private declarations
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PRIVATE_SOCKET_H_
12 #define _WX_PRIVATE_SOCKET_H_
14 // these definitions are for MSW when we don't use configure, otherwise these
15 // symbols are defined by configure
17 #define WX_SOCKLEN_T int
21 #define SOCKOPTLEN_T int
24 // define some symbols which winsock.h defines but traditional BSD headers
26 #ifndef INVALID_SOCKET
27 #define INVALID_SOCKET (-1)
31 #define SOCKET_ERROR (-1)
35 typedef struct sockaddr_storage wxSockAddr
;
37 typedef struct sockaddr wxSockAddr
;
40 #endif // _WX_PRIVATE_SOCKET_H_