#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 for specified items using the wildcard. 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 the wildcard using CPS_SocBind(x, 0, 0)
after every reception. Does not block.
CPS_TcpListen
, CPS_TcpConnect
, CPS_SocWho
10/21/2005 Initial version.