|
|
|
@ -13,7 +13,7 @@ public class TCPClientExample : MonoBehaviour,ITCPClient
@@ -13,7 +13,7 @@ public class TCPClientExample : MonoBehaviour,ITCPClient
|
|
|
|
|
Debug.Log("TestGetMsg:"+e.msg); |
|
|
|
|
Debug.Log("IpAddress:"+sender); |
|
|
|
|
//应答 |
|
|
|
|
this.sendRequest(new StringRequest("Received!")); |
|
|
|
|
this.sendRequest<StringRequest,TCPClientModel>(new StringRequest("Received!")); |
|
|
|
|
//取消接收该数据 |
|
|
|
|
this.offReceive<YourResponse>(); |
|
|
|
|
}); |
|
|
|
|