6.1.2 Socket Properties
Each ATWINC15x0 socket is identified by a unique combination of the following:
- Socket ID – a unique identifier for each socket. This is the return value of the socket API.
- Local socket address – a combination of the ATWINC15x0 IP address and port number assigned by the ATWINC15x0 firmware for the socket.
- Protocol – transport layer protocol, either TCP or UDP.
- Remote socket address – applicable only for TCP stream sockets. This is necessary since TCP is connection oriented. Each connection made to a specific IP address and port number requires a separate socket. The remote socket address can be obtained in the socket event callback which is described in the succeeding section.
Note: TCP port 53 and UDP port 53 represent two different sockets.