lwip/core/raw.c
/**
 * Connect an RAW PCB. This function is required by upper layers
 * of lwip. Using the raw api you could use raw_send_to() instead
 *
 * This will associate the RAW PCB with the remote address.
 *
 * @param pcb RAW PCB to be connected with remote address ipaddr and port.
 * @param ipaddr remote IP address to connect with.
 *
 * @return lwIP error code
 *
 * @see raw_disconnect() and raw_send_to()
 */
Connect an RAW PCB. This function is required by upper layers
of lwip. Using the raw api you could use raw_send_to() instead

This will associate the RAW PCB with the remote address.

@param pcb RAW PCB to be connected with remote address ipaddr and port.
@param ipaddr remote IP address to connect with.

@return lwIP error code


Connect an RAW PCB . This function is required by upper layers of lwip . Using the raw api you could use raw_send_to () instead This will associate the RAW PCB with the remote address . @param pcb RAW PCB to be connected with remote address ipaddr and port . @param ipaddr remote IP address to connect with . @return lwIP error code
err_t
raw_connect(struct raw_pcb *pcb, struct ip_addr *ipaddr)
{
  ip_addr_set(&pcb->remote_ip, ipaddr);
  return ERR_OK;
}
err_t raw_connect ( struct raw_pcb * pcb , struct ip_addr * ipaddr ) { ip_addr_set ( & pcb -> remote_ip , ipaddr ) ; return ERR_OK ; }
Connect an RAW PCB.
Connect an RAW PCB .