gSocketListenerNew()
gSocketListenerAddSocket(object, socket, source.object, .errwarn = TRUE)
gSocketListenerAddAddress(object, address, type, protocol, source.object, .errwarn = TRUE)
gSocketListenerAddInetPort(object, port, source.object, .errwarn = TRUE)
gSocketListenerAccept(object, cancellable = NULL, .errwarn = TRUE)
gSocketListenerAcceptAsync(object, cancellable = NULL, callback, user.data = NULL)
gSocketListenerAcceptFinish(object, result, .errwarn = TRUE)
gSocketListenerAcceptSocket(object, cancellable = NULL, .errwarn = TRUE)
gSocketListenerAcceptSocketAsync(object, cancellable = NULL, callback, user.data = NULL)
gSocketListenerAcceptSocketFinish(object, result, .errwarn = TRUE)
gSocketListenerClose(object)
gSocketListenerSetBacklog(object, listen.backlog)
gSocketListener()
GObject +----GSocketListener +----GSocketService
GSocketListener
is an object that keeps track of a set
of server sockets and helps you accept sockets from any of the
socket, either sync or async. If you want to implement a network server, also look at GSocketService
and GThreadedSocketService
which are subclass of GSocketListener
that makes this even easier.gSocketListener
is the equivalent of gSocketListenerNew
.