private void StartSendingData(IPAddress ServerIP, string FileName) { Socket MySocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); byte[] bt = File.ReadAllBytes(FileName); //Thread.Sleep(5000); MySocket.Connect(new IPEndPoint(ServerIP, 33000)); MySocket.Send(bt); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)