![](https://seccdn.libravatar.org/avatar/611bd989d149a3e0494973c19bfaba2c.jpg?s=120&d=mm&r=g)
Hallo Liste. Ich habe da mal eine frage. Kennt jemand eine einfache API zum Programmieren von Sockets in C. Wenn ja währe ich dankbar über eine Antwort Klaus
![](https://seccdn.libravatar.org/avatar/8576ac1b72af7a8d7391dbaa48c37e65.jpg?s=120&d=mm&r=g)
Am Mon, 2002-07-01 um 15.26 schrieb Klaus Diehl:
Hallo Liste.
Ich habe da mal eine frage. Kennt jemand eine einfache API zum Programmieren von Sockets in C.
Die Standard-API zur Socket-Programmierung ist Bestandteil der libc und standardsiert: Aus IEEE-1003.1-2001: * accept - accept a new connection on a socket * bind - bind a name to a socket * connect - connect a socket * getpeername - get the name of the peer socket * getsockname - get the socket name * getsockopt - get the socket options * listen - listen for socket connections and limit the queue of incoming connections * net/if.h - sockets local interfaces * recv - receive a message from a connected socket * recvfrom - receive a message from a socket * recvmsg - receive a message from a socket * send - send a message on a socket * sendmsg - send a message on a socket using a message structure * sendto - send a message on a socket * setsockopt - set the socket options * shutdown - shut down socket send and receive operations * sockatmark - determine whether a socket is at the out-of-band mark * socket - create an endpoint for communication * socketpair - create a pair of connected sockets * sys/socket.h - main sockets header * sys/un.h - definitions for UNIX domain sockets Zur Einführung unter Linux; man 2 select_tut und _alle_ (!!) dort angegebene Man-pages lesen Ralf
participants (2)
-
Klaus Diehl
-
Ralf Corsepius