![]() | ![]() | ![]() | GNet Network Library Reference Manual | ![]() |
---|
GNet was designed so that most of the implementation is hidden from the programmer. You should not have to include any network header files other than gnet.h.
By convention, integers are usually transfered in big-endian,
or network-byte, order. GLib has conversion functions for
shorts and ints: g_ntohs
(network-to-host
short), g_htons
(host-to network short),
g_ntohl
(network-to-host long), and
g_htonl
(host-to-network long).
<<< GNet for developers | Hiding blocking >>> |