Know of any cross platform socket library (windows & Linux) in C?

前端 未结 6 1091
自闭症患者
自闭症患者 2021-02-07 12:23

I am looking to do socket communications (listen, accept, connect, recv, send, disconnect) in both linux and windows. My project is in C, so unless someone can think of a way fo

6条回答
  •  野性不改
    2021-02-07 13:03

    The plibsys library provides all the requested features: cross-platform and portable, lightweight, provides socket IPv4 and IPv6 support as well as many other useful things like multithreading. Works with sockets in non-blocking mode (though you can switch to a blocking one, too). Has quite a good documentation with the test code examples.

提交回复
热议问题