pushed TcpClient crap into NetworkOrderSource

This commit is contained in:
Chris Forbes
2010-01-18 17:52:43 +13:00
parent b54aedc287
commit b7c5b9e265
2 changed files with 3 additions and 4 deletions

View File

@@ -13,9 +13,9 @@ namespace OpenRa.Orders
Dictionary<int, List<byte[]>> orderBuffers = new Dictionary<int, List<byte[]>>();
Dictionary<int, bool> gotEverything = new Dictionary<int, bool>();
public NetworkOrderSource(TcpClient socket)
public NetworkOrderSource(string host, int port)
{
this.socket = socket;
socket = new TcpClient(host, port);
this.socket.NoDelay = true;
var reader = new BinaryReader(socket.GetStream());