25 #include <sys/types.h>
27 # include <winsock2.h>
30 # include <sys/socket.h>
31 # include <netinet/in.h>
iret = netio_new
(objsize, config, decoder);
sockfd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
ioctlsocket(sockfd, FIONBIO, &iMode);
IETF/IANA Address family assignments.
Implements UDP network I/O (NetIOudp) class.
NetIOudp * netioudp_new(gsize objsize, ConfigContext *config, PacketDecoder *decoder)
Construct new UDP NetIO object (and its socket, etc)
Implements minimal client-oriented Frame and Frameset capabilities.
NetIOudp is a NetIO class subclass specialized to UDP connections.
gpointer proj_class_register_subclassed(gpointer object, const char *static_subclassname)
Log the creation of a subclassed object from a superclassed object.
struct _NetIOudp NetIOudp
Defines interfaces a project Class system for class hierarchies in 'C'.
Base class (NetIO) object.
NetIO * netio_new(gsize objsize, ConfigContext *config, PacketDecoder *decoder)
GIOChannel * giosock
Glib GIOChannel for this socket.
#define CASTTOCLASS(Cclass, obj)
Safely cast 'obj' to C-class 'class' - verifying that it was registerd as being of type class ...
This is a basic NetIO class abstract class for doing network I/O.