Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Connect a client to a server using an IP address (IPv4 or IPv6) with a datagram socket

Files

net_app.h/net_app.c

Prototype

NET_SOCK_ID  NetApp_ClientDatagramOpen (CPU_INT08U               *p_addr,
                                        NET_IP_ADDR_FAMILY        addr_family,
                                        NET_PORT_NBR              remote_port_nbr,
                                        NET_SOCK_ADDR            *p_sock_addr,
                                        NET_ERR                  *p_err)

Arguments

p_addrPointer to variable that contains IP address of the remote host.
addr_familyIP address contained in the address.
remote_port_nbrPort of the remote host.
p_sock_addr Pointer to a variable that will receive the socket address of the remote host. (Can be set to DEF_NULL if the returned value is not required).
p_errPointer to variable that will receive the return error code from this function.

Returned Value

Socket ID, if no errors,

NET_SOCK_ID_NONE, otherwise.

Required Configuration

None.

Notes / Warnings

None.

  • No labels