io_func


Description:

public static bool io_func (Socket socket, IOCondition condition, Server server)

A default SocketSourceFunc that creates a new Client to accept and handle a new connection on socket or server.

Parameters:

socket

a Socket

condition

the condition on source

server

a Server

Returns:

TRUE if the source could be connected, FALSE if an error occurred.