#include <nitroWiFi/cps.h>
void CPS_SocBind (u16 local_port, u16 remote_port, CPSInAddr remote_ip);
local_port |
Own port |
remote_port |
Partner's port |
remote_ip |
Partner's address |
None.
Allocates own port, partner's port, and partner's address to socket.
CPS_SocBind () used in TCP
CPS_SocWho(). This is used to find the actual partner that is using a wildcard for specified items. CPS_SocBind () used in UDP
CPS_SocBind(). In this case, the partner’s IP is treated as a wildcard for reception. CPS_SocBind(x, 0, 0), and communication with the partner’s IP and port that sent the first packet is automatically enabled. If this operation is not convenient, change back to using the wildcard by employing CPS_SocBind(x, 0, 0) after every reception. Does not block.
CPS_TcpListen, CPS_TcpConnect, CPS_SocWho
2005/10/21 Initial version.
CONFIDENTIAL