I am in a situation where I must use a particular port for firewall reasons on one side to make a peer to peer connection. I was wondering if it's possible to open a connection with a client on a particular port. I know about the listen()
and accept()
functions.
Thanks
You need to use bind ( http://linux.die.net/man/2/bind ).
There are many examples of servers on the web.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.