Home Forums Support Best way to store multiple connections (bit of a newbie question) Reply To: Best way to store multiple connections (bit of a newbie question)

#2685
Anonymous
Inactive

Heyup Ailwyn,

Sorry for the slow reply. You could do the following:

//Get a list of all existing connections, please see the many overrides to getting different groups of connection
List<Connection> connections = NetworkComms.GetExistingConnection(ConnectionType.UDP);
foreach (Connection conn in connections)
{
    //Do work using conn
}

Regards,
Marc