Description Methods and Functions Hierarchy Detailed Description Structures Convenient Construction Properties Author(s) References
Helper for accepting network client connections
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()
1 2 3 | GObject
+----GSocketListener
+----GSocketService
|
A 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
undocumented
gSocketListener
is the equivalent of gSocketListenerNew
.
listen-backlog
[integer : Read / Write / Construct]outstanding connections in the listen queue. Allowed values: [0,2000] Default value: 10
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gio/stable/GSocketListener.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.