]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/gsockmsw.h
1 /* -------------------------------------------------------------------------
2 * Project: GSocket (Generic Socket) for WX
4 * Purpose: GSocket MSW header
6 * -------------------------------------------------------------------------
13 #include "wx/gsocket.h"
21 /* Definition of GSocket */
33 struct timeval m_timeout
;
36 GSocketCallback m_cbacks
[GSOCK_MAX_EVENT
];
37 char *m_data
[GSOCK_MAX_EVENT
];
41 /* Definition of GAddress */
44 struct sockaddr
*m_addr
;
47 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 */