private void fileSendToolStripMenuItem_Click(object sender, EventArgs e) { TCPSender sendertemp = new TCPSender("127.0.0.1", 3000, "C:\\Dumps\\CS\\SMETestClient-0.0-2015-08-18-16-48-37.xml", "SMETestClient-0.0-2015-08-18-16-48-37.xml", 10); sendertemp.FileSend(); }
public async void SendToServer(string ServerIP, int ServerPort) { SaveSemaphore.WaitOne(); TCPSender tcpsender = new TCPSender(ServerIP, ServerPort, XMLFilePath, XMLFileName, 10); //tcpsender.FileSend(); //tcpsender.Dispose(); }