lwip_sock::conn is only used within LwIP.
 
Symbols
loading...
Files
loading...

lwip_sock::conn field

sockets currently are built on netconns, each socket has one netconn

Syntax

struct netconn *conn;

References

LocationReferrerText
sockets_priv.h:69
struct netconn *conn;
sockets.c:464tryget_socket()
if (sock->conn) {
sockets.c:511alloc_socket()
if (!sockets[i].conn) {
sockets.c:520alloc_socket()
sockets[i].conn = newconn;
sockets.c:564free_socket_locked()
*conn = sock->conn;
sockets.c:565free_socket_locked()
sock->conn = NULL;
sockets.c:638lwip_accept()
err = netconn_accept(sock->conn, &newconn);
sockets.c:641lwip_accept()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
sockets.c:756lwip_bind()
err = netconn_bind(sock->conn, &local_addr, local_port);
sockets.c:785lwip_close()
if (sock->conn != NULL) {
sockets.c:786lwip_close()
is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
sockets.c:800lwip_close()
err = netconn_prepare_delete(sock->conn);
sockets.c:833lwip_connect()
err = netconn_disconnect(sock->conn);
sockets.c:856lwip_connect()
err = netconn_connect(sock->conn, &remote_addr, remote_port);
sockets.c:896lwip_listen()
err = netconn_listen_with_backlog(sock->conn, (u8_t)backlog);
sockets.c:900lwip_listen()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
sockets.c:927lwip_recv_tcp()
LWIP_ASSERT("this should be checked internally", NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP);
sockets.c:945lwip_recv_tcp()
err = netconn_recv_tcp_pbuf_flags(sock->conn, &p, apiflags);
sockets.c:1014lwip_recv_tcp()
netconn_tcp_recvd(sock->conn, (size_t)recvd);
sockets.c:1072lwip_recv_tcp_from()
netconn_getaddr(sock->conn, &tmpaddr, &port, 0);
sockets.c:1077lwip_recv_tcp_from()
return lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
sockets.c:1111lwip_recvfrom_udp_raw()
err = netconn_recv_udp_raw_netbuf_flags(sock->conn, &buf, apiflags);
sockets.c:1149lwip_recvfrom_udp_raw()
lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
sockets.c:1211lwip_recvfrom()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
sockets.c:1315lwip_recvmsg()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
sockets.c:1397lwip_send()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
sockets.c:1412lwip_send()
err = netconn_write_partly(sock->conn, data, size, write_flags, &written);
sockets.c:1449lwip_sendmsg()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
sockets.c:1456lwip_sendmsg()
err = netconn_write_vectors_partly(sock->conn, (struct netvector *)msg->msg_iov, (u16_t)msg->msg_iovlen, write_flags, &written);
sockets.c:1562lwip_sendmsg()
err = netconn_send(sock->conn, &chain_buf);
sockets.c:1599lwip_sendto()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
sockets.c:1673lwip_sendto()
err = netconn_send(sock->conn, &buf);
sockets.c:2668lwip_shutdown()
if (sock->conn != NULL) {
sockets.c:2669lwip_shutdown()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
sockets.c:2692lwip_shutdown()
err = netconn_shutdown(sock->conn, shut_rx, shut_tx);
sockets.c:2714lwip_getaddrname()
err = netconn_getaddr(sock->conn, &naddr, &port, local);
sockets.c:2904lwip_getsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int);
sockets.c:2905lwip_getsockopt_impl()
if (NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_TCP) {
sockets.c:2909lwip_getsockopt_impl()
if ((sock->conn->pcb.tcp != NULL) && (sock->conn->pcb.tcp->state == LISTEN)) {
sockets.c:2924lwip_getsockopt_impl()
(NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_UDP)) {
sockets.c:2931lwip_getsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int);
sockets.c:2932lwip_getsockopt_impl()
*(int *)optval = ip_get_option(sock->conn->pcb.ip, optname);
sockets.c:2938lwip_getsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, *optlen, int);
sockets.c:2939lwip_getsockopt_impl()
switch (NETCONNTYPE_GROUP(netconn_type(sock->conn))) {
sockets.c:2950lwip_getsockopt_impl()
*(int *)optval = netconn_type(sock->conn);
sockets.c:2961lwip_getsockopt_impl()
*(int *)optval = err_to_errno(netconn_err(sock->conn));
sockets.c:3002lwip_getsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, *optlen, int, NETCONN_UDP);
sockets.c:3010lwip_getsockopt_impl()
*(int *)optval = udp_is_flag_set(sock->conn->pcb.udp, UDP_FLAGS_NOCHKSUM) ? 1 : 0;
sockets.c:3025lwip_getsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int);
sockets.c:3026lwip_getsockopt_impl()
*(int *)optval = sock->conn->pcb.ip->ttl;
sockets.c:3031lwip_getsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int);
sockets.c:3032lwip_getsockopt_impl()
*(int *)optval = sock->conn->pcb.ip->tos;
sockets.c:3080lwip_getsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, *optlen, int, NETCONN_TCP);
sockets.c:3081lwip_getsockopt_impl()
if (sock->conn->pcb.tcp->state == LISTEN) {
sockets.c:3087lwip_getsockopt_impl()
*(int *)optval = tcp_nagle_disabled(sock->conn->pcb.tcp);
sockets.c:3092lwip_getsockopt_impl()
*(int *)optval = (int)sock->conn->pcb.tcp->keep_idle;
sockets.c:3332lwip_setsockopt_impl()
(NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_UDP)) {
sockets.c:3339lwip_setsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int);
sockets.c:3341lwip_setsockopt_impl()
ip_set_option(sock->conn->pcb.ip, optname);
sockets.c:3343lwip_setsockopt_impl()
ip_reset_option(sock->conn->pcb.ip, optname);
sockets.c:3406lwip_setsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, int, NETCONN_UDP);
sockets.c:3415lwip_setsockopt_impl()
udp_set_flags(sock->conn->pcb.udp, UDP_FLAGS_NOCHKSUM);
sockets.c:3417lwip_setsockopt_impl()
udp_clear_flags(sock->conn->pcb.udp, UDP_FLAGS_NOCHKSUM);
sockets.c:3425lwip_setsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, struct ifreq);
sockets.c:3436lwip_setsockopt_impl()
switch (NETCONNTYPE_GROUP(netconn_type(sock->conn))) {
sockets.c:3439lwip_setsockopt_impl()
tcp_bind_netif(sock->conn->pcb.tcp, n);
sockets.c:3444lwip_setsockopt_impl()
udp_bind_netif(sock->conn->pcb.udp, n);
sockets.c:3470lwip_setsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int);
sockets.c:3471lwip_setsockopt_impl()
sock->conn->pcb.ip->ttl = (u8_t)(*(const int *)optval);
sockets.c:3476lwip_setsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int);
sockets.c:3477lwip_setsockopt_impl()
sock->conn->pcb.ip->tos = (u8_t)(*(const int *)optval);
sockets.c:3553lwip_setsockopt_impl()
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, int, NETCONN_TCP);
sockets.c:3554lwip_setsockopt_impl()
if (sock->conn->pcb.tcp->state == LISTEN) {
sockets.c:3561lwip_setsockopt_impl()
tcp_nagle_disable(sock->conn->pcb.tcp);
sockets.c:3563lwip_setsockopt_impl()
tcp_nagle_enable(sock->conn->pcb.tcp);
sockets.c:3569lwip_setsockopt_impl()
sock->conn->pcb.tcp->keep_idle = (u32_t)(*(const int *)optval);
sockets.c:3815lwip_ioctl()
netconn_set_nonblocking(sock->conn, val);
sockets.c:3848lwip_fcntl()
ret = netconn_is_nonblocking(sock->conn) ? O_NONBLOCK : 0;
sockets.c:3851lwip_fcntl()
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
sockets.c:3861lwip_fcntl()
if (sock->conn->pcb.tcp) {
sockets.c:3862lwip_fcntl()
if (!(sock->conn->pcb.tcp->flags & TF_RXCLOSED)) {
sockets.c:3865lwip_fcntl()
if (!(sock->conn->pcb.tcp->flags & TF_FIN)) {
sockets.c:3888lwip_fcntl()
netconn_set_nonblocking(sock->conn, val & O_NONBLOCK);