AMX DESIGN XPRESS V 1.5 - PROGRAMMER GUIDE User's Guide Page 216

  • Download
  • Add to my manuals
  • Print
  • Page
    / 316
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 215
202
K
A
DAK
KwikNet TCP/IP Sockets
kn_getsockopt kn_getsockopt
Purpose Get a Particular Socket Option
Used by
n Task o ISP o Timer Procedure o Restart Procedure o Exit Procedure
Setup Prototype is in file KN_SOCK.H.
#include "KN_SOCK.H"
int kn_getsockopt(int s, int level, int optionid,
void *optionval, int *optionlen);
Description S is a socket descriptor identifying the socket for which the particular
socket information is desired.
Level is an identifier indicating the socket or protocol level for which
information is required. Use SOL_SOCKET for the highest, socket level
options. Use IPPROTO_TCP for TCP protocol level options. The Turbo
Treck TCP/IP Stack also supports the use of IPPROTO_IP for IP
protocol level options. Other protocol levels are not supported.
Optionid identifies the option of interest to the caller. The following
option identifiers can be used to determine the state of the option or to
retrieve its associated parameter. These options are described in
Chapter 5.3. Options marked > are non-standard KADAK extensions.
Only one option can be specified in each call. The Turbo Treck
TCP/IP Stack supports a number of additional socket, TCP and IP
options which are described in the Treck TCP/IP User Manual.
SO_REUSEADDR bool UDP TCP Local address reuse
SO_ACCEPTCONN bool TCP Check for listening socket
SO_KEEPALIVE bool TCP Keep connections alive
SO_BROADCAST bool UDP Permission to broadcast messages
SO_OOBINLINE bool TCP Allow out-of-band data in band
SO_LINGER struct TCP Linger on close if data present
SO_SNDBUF u/s long TCP Buffer size for send
SO_RCVBUF u/s long TCP Buffer size for receive
SO_SNDLOWAT u/s long TCP Buffer low limit for send
SO_RCVLOWAT u/s long TCP Buffer low limit for receive
SO_ERROR int UDP TCP Get and clear error on a socket
SO_NONBLOCK bool UDP TCP > Socket is non-blocking mode
TCP_NODELAY bool TCP Do not delay send to coalesce data
TCP_NOPUSH bool TCP Do not push last byte of data sent
TCP_MAXSEG int TCP Get maximum segment size (MSS)
...more
Page view 215
1 ... 215 216 217 ... 316

Comments to this Manuals

No comments