How to open and use a socket in C?

前端 未结 8 2075
生来不讨喜
生来不讨喜 2020-12-13 21:19

I would like to know the simplest and most effective way to open and write data to a socket in the C programming language for network programming.

8条回答
  •  心在旅途
    2020-12-13 22:05

    You don't mention what platform you are on, but a copy of Unix Network Programming by Stevens would be a good addition to your bookshelf. Most operating systems implement Berkley Sockets using socket, bind, connect, etc.

提交回复
热议问题