Socket address structure for IPV4 addresses. Used to specify socket address information to connect to. Can be cast to sockaddr structure.
#include <socket.h>
Data Fields | |
in_addr | sin_addr |
uint16 | sin_family |
uint16 | sin_port |
uint8 | sin_zero [8] |
in_addr sockaddr_in::sin_addr |
IP Address of the socket. The IP address is of type in_addr structure. Can be set to "0" to accept any IP address for server operation.
Referenced by AppServerCb(), connect_cmd_handler(), connect_to_server(), ConnectNetwork(), demo_start(), handle_dns_found(), handle_start_connect(), http_client_send_request(), http_client_socket_resolve_handler(), iot_tls_connect(), IperfSocketEventHandler(), IperfStart(), IperfTCP_ClientStart(), IperfTCP_ServerStart(), IperfUDP_ClientStart(), IperfUDP_ServerStart(), m2m_ip_cb(), m2m_wifi_socket_handler(), main(), run_udp_client(), sendto(), setup_android_sockets(), smtpConnect(), sslConnect(), test_init(), and wifi_ap_provision().
uint16 sockaddr_in::sin_family |
Specifies the address family(AF). Members of AF_INET address family are IPv4 addresses. Hence,the only supported value for this is AF_INET.
Referenced by AppServerCb(), connect_cmd_handler(), connect_to_server(), ConnectNetwork(), demo_start(), handle_start_connect(), http_client_send_request(), http_client_socket_resolve_handler(), iot_tls_connect(), IperfSocketEventHandler(), IperfStart(), IperfTCP_ClientStart(), IperfTCP_ServerStart(), IperfUDP_ClientStart(), IperfUDP_ServerStart(), m2m_ip_cb(), main(), sendto(), setup_android_sockets(), smtpConnect(), sslConnect(), test_init(), and wifi_ap_provision().
uint16 sockaddr_in::sin_port |
Port number of the socket. Network sockets are identified by a pair of IP addresses and port number. It must be set in the Network Byte Order format , _htons (e.g. _htons(80)). Can NOT have zero value.
Referenced by AppServerCb(), connect_cmd_handler(), connect_to_server(), ConnectNetwork(), demo_start(), handle_start_connect(), http_client_send_request(), http_client_socket_resolve_handler(), iot_tls_connect(), IperfSocketEventHandler(), IperfStart(), IperfTCP_ClientStart(), IperfTCP_ServerStart(), IperfUDP_ClientStart(), IperfUDP_ServerStart(), m2m_ip_cb(), main(), sendto(), setup_android_sockets(), smtpConnect(), sslConnect(), test_init(), and wifi_ap_provision().