BeardedManStudios.Network.Networking.SetPrimarySocket C# (CSharp) Метод

SetPrimarySocket() публичный статический Метод

Used to assign the Networking.PrimarySocket object to the specified NetWorker
public static SetPrimarySocket ( BeardedManStudios.Network.NetWorker netWorker ) : void
netWorker BeardedManStudios.Network.NetWorker The NetWorker that will be the primary socket
Результат void
		public static void SetPrimarySocket(NetWorker netWorker)
		{
			PrimarySocket = netWorker;

			if (PrimarySocket is CrossPlatformUDP)
				PrimaryProtocolType = ProtocolType.UDP;
			else
				PrimaryProtocolType = ProtocolType.TCP;
		}