Dim clientsocket As New TcpClient(tbServer.Text, 1000) 'creates the connection to socket Dim networkstream As NetworkStrea networkstream = clientsocket.GetStream() Using reader As New BinaryReader(File.Open(OpenFileDialog1.FileName, FileMode.Open)) Dim pos As Integer = 0 Dim length As Integer = reader.BaseStream.Length Dim temp(txtbytes.Text) As Byte While pos < length networkstream.Write(temp, 0, temp.Length) Threading.Thread.Sleep(200) ' control speed pos += txtbytes.Text End Using
System.Net.Sockets.TcpListener
System.Net.Sockets.TcpClient
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)