Hi, I am making a LAN messaging program and I want to add file transfer. I know how to send text with winsock. But I was just wondering how do you actually open the file you want and send it. And how does the client go about receiving the file????
Thanks.
hi
use a protocol (UDP is easiest)
and something like...
With udpIN
.RemoteHost = vbNullString ' set SERVER to listen
.RemotePort = 1003 'Port to connect to.
.Bind 1004 'Bind to the local port.
End With
With udpOUT
.RemoteHost = remotecomputername ' CLIENT - talk
.RemotePort = 1004 ' Port to connect to.
.Bind 1003 ' Bind to the local port.
End With
udpOUT.SendData filename
(not tested this yet, know with text it works)