[ ]
 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS Labs FreeRTOS+TCP FreeRTOS+FAT Contact / Enquiries

FreeRTOS+TCP is still in the lab
FreeRTOS+TCP is already used in commercial products and we encourage you to try it yourself. Be aware however that we are still refining its design, and the source code and documentation do not yet meet Real Time Engineers Ltd's strict quality standards.
Please use the forum for support, feedback and ideas, or contact us directly if you have a specific business interest.

Network Sockets

A socket is conceptually an end point for communication, and the Berkeley sockets API is the defacto cross platform standard API used to create, configure, read from, write to, and otherwise manage sockets.

A socket is identified using the IP address of the network node, and the port number within the network node.

If a network node wants to send UDP data onto the network it first creates a socket, then sends the data to that socket. If a network node wants to receive UDP data it first creates a socket on an address that is known by the node that will send the data, then reads the data from that socket.

If a network node wants to send TCP data onto the network it first creates a socket, connects that socket to a socket on a remote node, then sends the data to that socket. If a network node wants to receive TCP data is first creates a socket, then listens on that socket for incoming connections. When a connection is received it may (optionally) create a new socket to handle the connection and then receive the data on the new socket - leaving the original socket listening for additional incoming connections.

It can be seen then that any one network node can be involved in multiple network conversations simultaneously - with a socket being used at each end of each unique conversation.

Sockets can also be used to send and receive broadcast and multicast communications - which are both a form of one to many communications.

The API function FreeRTOS_socket() is used to create a socket.

The FreeRTOS+TCP networking tutorial demonstrates how to use sockets.

Useful links:

Other networking basics pages:

[ Back to the top ]    [ About FreeRTOS ]    [ FreeRTOS Labs Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.