English
Language : 

DS80C400 Datasheet, PDF (78/97 Pages) Dallas Semiconductor – DS80C400 Network Microcontroller
DS80C400 Network Microcontroller
TCP/IP Stack and Berkeley Sockets
The ROM firmware implements TCP/IP Ethernet networking over an industry-standard/Berkeley socket interface.
The stack supports TCP and UDP transport protocols, allowing a maximum of 24 client/server sockets for either
IPv4 or IPv6. Table 19 lists the socket functions implemented and accessible in the ROM firmware. The full details
of each socket function are contained in the High-Speed Microcontroller User’s Guide: Network Microcontroller
Supplement.
Figure 19 illustrates the typical sequences for using TCP/UDP client/server sockets. The IPv4 implementation
supports multicasting, ICMP echo request (“ping”), DHCP client, and TFTP client. It does not, however, allow IP
packet fragmentation or reassembly, and it ignores the extended IP options field. The IPv6 implementation
supports ICMP and the TFTP client protocols.
Table 19. Socket Functions
FUNCTION
socket
closesocket
sendto
recvfrom
connect
bind
listen
accept
recv
send
getsockopt
setsockopt
getsockname
getpeername
cleanup
avail
join
leave
ping
setnetworkparams
getnetworkparams
getipv6params
getethernetstatus
gettftpserver
settftpserver
DESCRIPTION
Creates the specified TCP or UDP network socket
Closes the specified socket
Sends a UDP datagram to the specified address
Receives a UDP datagram
Connects a TCP socket to the specified address
Binds a socket to the specified address, port
Listens for connections on the specified socket
Accepts a TCP connection on the specified socket
Reads data from the specified TCP socket connection
Sends data to the specified TCP socket connection
Gets options for the specified socket
Sets options for the specified socket
Gets current local address for the specified socket
Gets current remote address for the specified TCP socket
Closes all sockets associated with the specified task ID
Returns the number of bytes available for reading on the specified TCP socket
Adds the specified UDP socket to a specified multicast group
Removes the specified UDP socket from a specified multicast group
Sends ICMP echo request to the specified address
Sets the IPv4 address and configuration parameters
Gets the IPv4 address and configuration parameters
Gets the IPv6 address
Gets the status of the Ethernet link
Gets the IP address of the TFTP server
Sets the IP address of the TFTP server
Figure 19. Typical TCP/UDP Sockets
TCP
Server
TCP
Client
UDP
Unicast
UDP
Multicast
socket
bind, getsockopt, setsockopt (optional)
listen (max. 16)
join
accept
connect
avail, send, recv
sendto, recvfrom
leave
closesocket
78 of 97