Zoasterboy

Hi, I'm creating a simple chat program. The two instances of the program share a copy of the file located on the computer. This file stores the conversation. Since using this on one computer isnt very usefull, I was wondering how it is possible to transfer data over the network back and fourth, either through a file or directly between programs. Whatever is simpler.


Re: .NET Framework Networking and Communication Network file transfer

CheckRevision

You basically just want to log chat. So why not make it an option for both users. And if they have it enabled then the conversation is written to a text file in the application path. No need to share one text file well that is my opinion Smile





Re: .NET Framework Networking and Communication Network file transfer

Chris128

I dont think he just wanted to log chat, I think he wanted to be able to send the messages over the network, like MSN or windows messenger would.




Re: .NET Framework Networking and Communication Network file transfer

CheckRevision

Yea probably, it seems like he needs help with the sending and receiving of messages and logging chat i will wait for him to confirm though Smile





Re: .NET Framework Networking and Communication Network file transfer

Zoasterboy

What I want to do is be able to transfer information between two computers over a network, and how I want to do this is by having them both read the info from the same file. How can I view files across the network in VB




Re: .NET Framework Networking and Communication Network file transfer

Feng Chen - MSFT

Hi Zoasterboy,

Move the thread from Visual Basic Language in order to get better answers.
Thanks for your understanding!






Re: .NET Framework Networking and Communication Network file transfer

RizwanSharp

You need to explore these classes to get your work done:

Socket http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.aspx

Or TcpClient http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx

and

TcpListener http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx

You can either use Socket or go with TcpListener and TcpClient (for easier coding).

I hope this will help.

Best Regards,

Rizwan aka RizwanSharp