public ServerSocketUnet(HostTopology topology)
        {
            _connectedPeers = new Dictionary <int, PeerUnet>();
            _topology       = topology;

            //_msgBuffer = new byte[NetworkMessage.MaxMessageSize];
        }
Esempio n. 2
0
        static BarebonesTopology()
        {
            var config = new ConnectionConfig();

            ReliableChannel          = config.AddChannel(QosType.Reliable);
            UnreliableChannel        = config.AddChannel(QosType.Unreliable);
            ReliableSequencedChannel = config.AddChannel(QosType.ReliableSequenced);

            Topology = new HostTopology(config, 5000);
        }
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 maxDefaultConnections = ptr_of_this_method->Value;
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Networking.ConnectionConfig defaultConfig = (UnityEngine.Networking.ConnectionConfig) typeof(UnityEngine.Networking.ConnectionConfig).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = new UnityEngine.Networking.HostTopology(defaultConfig, maxDefaultConnections);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
 public ClientSocketUnet(HostTopology topology)
 {
     _msgBuffer = new byte[NetworkMessage.MaxMessageSize];
     _topology  = topology;
 }