public static SetPrimarySocket ( BeardedManStudios.Network.NetWorker netWorker ) : void | ||
netWorker | BeardedManStudios.Network.NetWorker | The NetWorker that will be the primary socket |
return | void |
public static void SetPrimarySocket(NetWorker netWorker)
{
PrimarySocket = netWorker;
if (PrimarySocket is CrossPlatformUDP)
PrimaryProtocolType = ProtocolType.UDP;
else
PrimaryProtocolType = ProtocolType.TCP;
}