Skip to main content

IpGetSocketAddressFamily

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

The function returns the address family of the given socket.

Parameters

  • socket: The socket handle.

Return Values

  • AF_INET (2): The socket belongs to the IPv4 address family.
  • AF_INET6 (28): The socket belongs to the IPv6 address family.
  • SOCKET_ERROR (-1): Invalid socket handle.

Example

IpGetAdapterAddressCount