IOChannel.win32_NewSocket

Creates a new GIOChannel given a socket on Windows. This function works for sockets created by Winsock. It's available only in GLib on Windows. Polling a GSource created to watch a channel for a socket puts the socket in non-blocking mode. This is a side-effect of the implementation and unavoidable.

class IOChannel
static
win32_NewSocket
(
int socket
)

Parameters

socket int

a Winsock socket

Return Value

Type: IOChannel

a new GIOChannel

Meta