Top | ![]() |
![]() |
![]() |
![]() |
GQuark | inf_native_socket_error_quark () |
void | inf_native_socket_make_error () |
#define | closesocket() |
typedef | InfNativeSocket |
#define | INF_NATIVE_SOCKET_EAGAIN |
#define | INF_NATIVE_SOCKET_EINPROGRESS |
#define | INF_NATIVE_SOCKET_EINTR |
#define | INF_NATIVE_SOCKET_LAST_ERROR |
#define | INF_NATIVE_SOCKET_SENDRECV_FLAGS |
#define | INVALID_SOCKET |
This module provides a common way to access the BSD socket API. While the API is mostly equivalent on Linux and Windows, there are some subtle differences for which uniform identifiers are provided.
Before InfNativeSocket can be used, on Windows WinSock2 must be
initialized. You can either do this manually, or call inf_init()
which
does it for you.
GQuark
inf_native_socket_error_quark (void
);
Returns a GQuark representing the INF_NATIVE_SOCKET_ERROR domain.
void inf_native_socket_make_error (int code
,GError **error
);
Converts the platform-dependent error code code
into a GError. The
GError will contain the same numerical value and a platform-dependent
human-readable error message.
code |
An error code obtained with INF_NATIVE_SOCKET_LAST_ERROR |
|
error |
Location to store error information. |