Lines Matching defs:from

19  *    derived from this software without specific prior written permission.
281 /** This counter is increased from lwip_select when the list is changed
379 /* In full-duplex mode,sock->fd_used != 0 prevents a socket descriptor from being
380 * released (and possibly reused) when used from more than one thread
945 /* Helper function to loop over receiving pbufs from netconn
969 /* Check if there is data left from the last recv operation. */
973 /* No data was left from the previous operation, so we try to get
974 some from the network. */
981 /* already received data, return that (this trusts in getting the same error from
1054 struct sockaddr *from, socklen_t *fromlen)
1062 LWIP_ASSERT("from != NULL", from != NULL);
1080 MEMCPY(from, &saddr, *fromlen);
1087 lwip_recv_tcp_from(struct lwip_sock *sock, struct sockaddr *from, socklen_t *fromlen, const char *dbg_fn, int dbg_s, ssize_t dbg_ret)
1097 if (from && fromlen)
1100 /* get remote addr/port from tcp_pcb */
1107 if (!err && from && fromlen) {
1108 return lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
1115 /* Helper function to receive a netbuf from a udp or raw netconn.
1137 /* Check if there is data left from the last recv operation. */
1140 /* No data was left from the previous operation, so we try to get
1141 some from the network. */
1171 /* Check to see from where the data was.*/
1231 struct sockaddr *from, socklen_t *fromlen)
1235 return lwip_recvfrom_internal(s, mem, len, flags, from, fromlen);
1237 return distributed_net_recvfrom(s, mem, len, flags, from, fromlen);
1242 struct sockaddr *from, socklen_t *fromlen)
1256 lwip_recv_tcp_from(sock, from, fromlen, "lwip_recvfrom", s, ret);
1273 msg.msg_name = from;
1307 /* Hack: we have to cast via number to cast from 'const' pointer to non-const.
1576 /* create a chained netbuf from the IO vectors. NOTE: we assemble a pbuf chain
1828 /* Hack: we have to cast via number to cast from 'const' pointer to non-const.
1863 /* Remove select_cb from select_cb_list. */
1998 /* Mark all sockets passed to select as used to prevent them from being freed
1999 * from other threads while select is running.
3876 /* Check if there is data left from the last recv operation. /maq 041215 */
4070 * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK).
4100 * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK).
4127 * ATTENTION: this function is NOT called from tcpip_thread (or under CORE_LOCK).
4158 * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK).
4188 * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK).
4215 * ATTENTION: this function is NOT called from tcpip_thread (or under CORE_LOCK).