]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/gsockmsw.h
38105d5fa281edfb6f73d4bff34ed6bd49c337e4
1 /* -------------------------------------------------------------------------
2 * Project: GSocket (Generic Socket) for WX
4 * Purpose: GSocket MSW header
6 * -------------------------------------------------------------------------
12 #ifndef __GSOCKET_STANDALONE__
13 #include "wx/gsocket.h"
25 /* Definition of GSocket */
37 struct timeval m_timeout
;
40 GSocketCallback m_cbacks
[GSOCK_MAX_EVENT
];
41 char *m_data
[GSOCK_MAX_EVENT
];
45 /* Definition of GAddress */
48 struct sockaddr
*m_addr
;
51 GAddressType m_family
;
60 GSocketError
_GSocket_Input_Timeout(GSocket
*socket
);
61 GSocketError
_GSocket_Output_Timeout(GSocket
*socket
);
62 int _GSocket_Recv_Stream(GSocket
*socket
, char *buffer
, int size
);
63 int _GSocket_Recv_Dgram(GSocket
*socket
, char *buffer
, int size
);
64 int _GSocket_Send_Stream(GSocket
*socket
, const char *buffer
, int size
);
65 int _GSocket_Send_Dgram(GSocket
*socket
, const char *buffer
, int size
);
69 void _GSocket_Configure_Callbacks(GSocket
*socket
);
70 LRESULT CALLBACK
_GSocket_Internal_WinProc(HWND
, UINT
, WPARAM
, LPARAM
);
74 GSocketError
_GAddress_translate_from(GAddress
*address
,
75 struct sockaddr
*addr
, int len
);
77 GSocketError
_GAddress_translate_to(GAddress
*address
,
78 struct sockaddr
**addr
, int *len
);
80 GSocketError
_GAddress_Init_INET(GAddress
*address
);
81 GSocketError
_GAddress_Init_UNIX(GAddress
*address
);
87 #endif /* __GSOCK_MSW_H */