Loading...
Select Version
&pagelevel(5)&pagelevel
Data can be transferred as soon as a connection is set up. If the communications endpoints of both communication partners are hard-bound with each other via the addressing-pair, a user task can send and receive messages without having to specify the addressing-pair every time.
There are several functions for sending and receiving data:
recv(s, buf, sizeof buf, flags); send(s, buf, sizeof buf, flags); soc_getc(c, s); soc_gets(s, n, d); soc_putc(c, s); soc_puts(s, d); soc_read(s, buf, sizeof buf); soc_write(s, buf, sizeof buf); recvmsg(s,msg,flags); sendmsg(s,msg,flags);
The socket functions are described in detail in the section "Description of functions".