Exemplo n.º 1
0
        public void IPC_Setup()
        {
            IPCManager.Instance.Initialize(100);
            // NOTE: MaxPacketSize should be 64 for all the tests using simulator except needs to account for header size as well (one test has 2x2B headers)
            var simulatorParams = new SimulatorUtility.Parameters()
            {
                MaxPacketSize = 68, MaxPacketCount = 30, PacketDelayMs = 100
            };

            m_ServerDriver = new GenericNetworkDriver <IPCSocket, TestNetworkPipelineStageCollection>(simulatorParams);
            m_ServerDriver.Bind(IPCManager.Instance.CreateEndPoint());
            m_ServerDriver.Listen();
            m_ClientDriver  = new GenericNetworkDriver <IPCSocket, TestNetworkPipelineStageCollection>(simulatorParams);
            m_ClientDriver2 = new GenericNetworkDriver <IPCSocket, TestNetworkPipelineStageCollection>(simulatorParams);
        }
Exemplo n.º 2
0
 public int Bind(NetworkEndPoint endpoint)
 {
     return(m_genericDriver.Bind(endpoint));
 }