1sock_write(3z) z88dk Programmer's Manual sock_write(3z)
2
3
4
6 sock_write - write bytes to a network socket
7
9 #include <net/socket.h>
10
11 size_t sock_write(SOCKET *s, void *dp , size_t len);
12
14 The parameter s is a descriptor to an open socket created using
15 sock_open(3z) or sock_listen(3z)
16
17 The sock_write() function writes a stream of bytes to the open socket
18 specified by s. The data of length len is taken from address dp which
19 should be in the lower 16k of the memory map.
20
21
23 The sock_write() function returns the number of bytes written to the
24 socket. If an illegal socket is supplied the carry flag will be set and
25 the return value will be EPROTONOSUPPORT.
26
27
28
30 sock_putc(3z), sock_puts(3z)
31
32
34 Dominic Morris <dom@jb.man.ac.uk>
35
36
37
38 18 February 2000 sock_write(3z)