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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 316
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 204
KwikNet TCP/IP Sockets
K
A
DAK
191
5.4 KwikNet Socket Services
KwikNet Socket Service Summary
The following list summarizes all of the KwikNet sockets procedures which are accessible
to the user. They are grouped functionally for easy reference.
kn_socket Create a socket (an endpoint for communication)
kn_bind Bind a local address to a socket
kn_connect Connect a socket to a specific address
kn_listen Request a socket to listen for connection requests
kn_accept Accept a connection request and establish a new socket
kn_close Close a socket
kn_recv Receive data from a connected socket
kn_recvfrom Receive data from a socket (gets sender's address)
kn_readv Receive scattered data from a socket (gets sender's address)
kn_send Send data to a socket
kn_sendto Send data to a socket (with destination address)
kn_writev Send scattered data to a socket (with destination address)
kn_errno Fetch most recent status result (error) recorded for a socket
kn_shutdown Shut down all or part of a full duplex socket connection
kn_select Select sockets ready to receive or send data
kn_getpeername Get the address of the remote end of a connected socket
kn_getsockname Get the local address of a socket
kn_getsockopt Get a particular socket option
kn_setsockopt Set a particular socket option
The following BSD-like services, available from the KwikNet Library, are also of use
when programming applications which use UDP or TCP as their protocol.
netlong = htonl(hostlong) Convert long from host to network endian form
netshort = htons(hostshort) Convert short from host to network endian form
hostlong = ntohl(netlong) Convert long from network to host endian form
hostshort = ntohs(netshort) Convert short from network to host endian form
Page view 204
1 ... 204 205 206 ... 316

Comments to this Manuals

No comments