RDPClientNetworkManager

This commit is contained in:
rawer470 2024-08-19 11:09:40 +03:00
parent d5494b3f97
commit 36ec49f04b

View file

@ -39,7 +39,11 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
public void Init() //create endPoint, socket public void Init() //create endPoint, socket
{ {
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
endPoint = new IPEndPoint(GetIp(), 0);
socket.Bind(endPoint);
Thread thread = new Thread(StartListening);
thread.Start();
} }
public void SendData() public void SendData()