0
Answer

tcpListener Network IM Program

Thomas

Thomas

17y
1.5k
1
Hi,

I'm trying to create a simple program in c# that makes a P2P connection with another computer running the same program, and allows the users to chat.

I've got reasonably far, mainly by looking at similar examples on the internet. I'm using tcpListener to look for messages, and streamreader and streamwriter to send and receive messages. I think the messages are sent successfully, but not received. I've narrowed it down to line 173 that it causing the problem, but I don't know why!

If possible, could anyone please have a look and tell me what I'm doing wrong? It would be greatly appreciated!!!

Thanks, Thomas

LINKS:
-------

www.wormalds.co.uk/chat.zip - All project files

www.wormalds.co.uk/source.txt - Just the source code.