Server.acceptIostream

Add a new client stream to the @server.

class Server
bool
acceptIostream
(
IOStream stream
,
SocketAddress localAddr
,
SocketAddress remoteAddr
)

Parameters

stream IOStream

a #GIOStream

localAddr SocketAddress

the local #GSocketAddress associated with the @stream

remoteAddr SocketAddress

the remote #GSocketAddress associated with the @stream

Return Value

Type: bool

%TRUE on success, %FALSE if the stream could not be accepted or any other error occurred (in which case @error will be set).

Throws

GException on failure.

Meta

Since

2.50