public Client(string serverIP, int serverPort, NetworkCollection entries) { server = serverIP; port = serverPort; Entries = entries; formatter = new BinaryFormatter(); sendQueue = new ConcurrentQueue <CollectionMessage>(); Thread clientThread = new Thread(new ThreadStart(Run)); clientThread.Start(); }
public void StartClient(NetworkCollection localCollection, string ipDestination) { client = new Client(ipDestination, 8888, localCollection); localCollection.client = client; }