FirstCommit
This commit is contained in:
parent
e2f287f7c2
commit
5d8f48d3ba
1 changed files with 1 additions and 2 deletions
|
@ -38,11 +38,10 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
|
||||||
private void Init()
|
private void Init()
|
||||||
{
|
{
|
||||||
endPoint = new IPEndPoint(GetIp(), port);
|
endPoint = new IPEndPoint(GetIp(), port);
|
||||||
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
|
socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
|
||||||
managerThread = new Dictionary<Socket, Thread>();
|
managerThread = new Dictionary<Socket, Thread>();
|
||||||
clients = new List<Socket>();
|
clients = new List<Socket>();
|
||||||
updates = new List<UpdateData>();
|
updates = new List<UpdateData>();
|
||||||
managerThread = new Dictionary<Socket, Thread>();
|
|
||||||
socket.Bind(endPoint);
|
socket.Bind(endPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue