Version: 2017.2

NetworkServerSimple.SetConnectionAtIndex

Switch to Manual
public bool SetConnectionAtIndex (Networking.NetworkConnection conn);

Parameters

conn A new connection object.

Returns

bool True if added.

Description

This adds a connection created by external code to the server's list of connections, at the connection's connectionId index.

Connections are usually added automatically, this is a low-level function for the rare special case of externally created connections.