예제 #1
0
 protected void Connect()
 {
     _connectStream = UniRxUtils.StartCoroutine(ConnectEnumerator, () =>
     {
         Debug.Log($"Success tcp connect : IpAddress = {_host} Port = {_port}");
         _connectStream = null;
     });
 }
예제 #2
0
 protected void StartServer()
 {
     _startServerStream = UniRxUtils.StartCoroutine(StartServerEnumerator, () =>
     {
         Debug.Log($"Success start tcp server : IpAddress = {_host} Port = {_port}");
         _startServerStream        = null;
         _updateListenPacketStream = Observable.EveryUpdate().Subscribe(_ => UpdateListenPacket());
     });
 }