PDA

Click to See Complete Forum and Search --> : help about sending and receiving data thru ip adressess


nighthawk
Aug 18th, 2005, 08:27 AM
hello guys,
i am working on two very simple programs right now. both programs do exactly the same thing, send and receive files from a certain specified directory.
what i dont know how to achieve, is that, i would like to put a textbox field in the program asking the ip address of the receiver. whereas on the receiver side asking the ip address of the sender. the file that i would like to send is only a .txt file. probably 50kb max. what do you guys suggest? i dont know where to start and what API to use, your help i greatly needed and appreciated. thanks in advance! :thumb:

k1ll3rdr4g0n
Aug 18th, 2005, 11:12 AM
Why don't you just setup a winsock to listen on port X TCP and do whatever you want then?

WinsockVB (http://www.winsockvb.com) is a good resource for winsock information.

nighthawk
Aug 19th, 2005, 10:39 AM
ok thanks your link was helpfull. i tried searching in msdn. they have a sample there in which all i do i copy paste it into my app. add now the strings that i type from the client program appears in the server program in the other side. thanks. thats all i needed..