enet.host:connect

Connects a host to a remote host. Returns peer object associated with remote host. The actual connection will not take place until the next host:service() is done, in which a "connect" event will be generated.

Function

Synopsis

event = host:service( timeout )

Arguments

number timeout
The max number of milliseconds to be waited for an event. Default is 0.

Returns

table event
An event or nil if no events occured.

See Also

Other Languages