private static bool SendFileRawData(Socket socketClient, String filepath, IPAddress address, int port) { FileSendOnNet file = new FileSendOnNet(filepath); if (socketClient.Connected == false) { socketClient.Connect(address, port); } file.SendFileInfo(socketClient); file.SendFile(socketClient); return(true); }