CPS_SocWho

C Specification

#include <nitroWiFi/cps.h>
CPSInAddr CPS_SocWho (u16 *remote_port, CPSInAddr *local_ip);

Arguments

remote_port Partner's port
local_ip Own IPv4 address that is the actual send target the partner uses

Return Values

The partner's IPv4 address.

Description

Gets information about the communication partner. Returns the partner's IPv4 address as the return value. If remote_port is not NULL, the partner’s port is set. If local_ip is not NULL, the function sets its own IPv4 address, which is the actual send target the partner uses. This provides a method to differentiate between unicast and multicast. Does not block.

See Also

CPS_SocBind

Revision History

10/21/2005 Initial version.