简体   繁体   中英

sockets tcp example in c

I'm looking for a good example of a simple TCP server/client that can deliver messages from one client to another. I have looked at many examples, but I can only find really complex ones, or one's where only one client talks to the server and back, and not to each other.

See selectserver.c at http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html . Clients are defined earlier on the page and server seems pretty easy to expand.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM