Download EZ80 TCP/IP Ref Manual - Digi-Key

Transcript
Zilog TCP/IP Stack API
Reference Manual
87
SNTP_RZK_DEV_OPEN_ERROR,
SNTP_MEM_ALLOC_FAILURE
SNTP_VERSION_NUMBER_ERROR,
SNTP_MODE_ERROR
}SNTP_ERRORS;
ZTP Macros
This section lists the number of macros defined by ZTP, including macros
for the ZTP core, the ioctlsocket API.
ZTP Core Macros
Table 15 lists the macro codes returned by the networking APIs.
Table 15. ZTP Core Macros
Macro
Code
#define SOCK_STREAM 0
#define SOCK_DGRAM
1
#define AF_INET
1
tcp_FlagPUSH
0x0008
ioctlsocket Macros
Table 16 lists the macro codes used by the ioctlsocket API.
Table 16. ioctlsocket Macros
Macro
Code
#define FIONBIO
1
#define FIONREAD
2
RM004012-0707
Definitions and Codes