BSD Wrapper Public Members

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
BSD Wrapper Public Members

The following functions and variables are available to the stack application.

Functions
 
Name 
Description 
 
This function accepts connection requests queued for a listening socket. 
 
bind 
This function assigns a name to the socket descriptor. 
 
The closesocket function closes an existing socket. 
 
This function connects to the peer communications end point. 
 
Returns the standard host name for the system. 
 
The listen function sets the specified socket in a listen mode 
 
recv 
The recv() function is used to receive incoming data that has been queued for a socket. 
 
The recvfrom() function is used to receive incoming data that has been queued for a socket. 
 
send 
The send function is used to send outgoing data on an already connected socket. 
 
This function used to send the data for both connection oriented and connection-less sockets. 
 
This function creates a new Berkeley socket. 
Macros
 
Name 
Description 
 
Internet Address Family - UDP, TCP, etc. 
 
IP address for server binding. 
 
Invalide TCP port 
 
IP Address for server binding 
 
Indicates IP pseudo-protocol. 
 
Indicates TCP for the internet address family. 
 
Indicates UDP for the internet address family. 
 
Connectionless datagram socket. Use UDP for the internet address family. 
 
Connection based byte streams. Use TCP for the internet address family. 
 
Socket connection state. 
 
Socket disconnected 
 
Socket error 
Module
Structures
 
Name 
Description 
 
Berkeley Socket structure 
 
in_addr structure 
 
generic address structure for all address families 
 
In the Internet address family 
Types
 
Name 
Description 
 
generic address structure for all address families 
 
In the Internet address family 
 
Socket descriptor 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.