Server.acceptIostream

bool acceptIostream(gio.iostream.IOStream stream, gio.socket_address.SocketAddress localAddr = null, gio.socket_address.SocketAddress remoteAddr = null)

Adds a new client stream to the server.

Parameters

streama #GIOStream
localAddrthe local #GSocketAddress associated with the stream
remoteAddrthe remote #GSocketAddress associated with the stream

Returns

true on success, false if the stream could not be

accepted or any other error occurred (in which case error will be set).

Throws

[ErrorWrap]