Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open and Use a TCP Port

I need to transfer data between several computers in a network using my app. I thought of using TCP ports. Are there any tutorials on how to open and use them? I only want to make a file transfer and chat app that works offline.

like image 303
Elmo Avatar asked Dec 21 '22 03:12

Elmo


1 Answers

I suggest you look at the documentation for TcpClient and TcpListener, both of which include examples.

It's hard to give a more specific recommendation without a more specific question - are you trying to create your own protocol on top of TCP/IP, or implement an existing one? If it's an existing one, there may well be a higher-level API already available.

like image 170
Jon Skeet Avatar answered Dec 24 '22 02:12

Jon Skeet