Lines Matching refs:netconn

58  * Create a new netconn (of a specific type) that has a callback function.
64 * @return a newly allocated struct netconn or
67 struct netconn*
70 struct netconn *conn;
95 * Close a netconn 'connection' and free its resources.
99 * @param conn the netconn to delete
103 netconn_delete(struct netconn *conn)
124 * Get the local or remote IP address and port of a netconn.
127 * @param conn the netconn to query
135 netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
156 * Bind a netconn to a specific local IP address and port.
157 * Binding one netconn twice might not always be checked correctly!
159 * @param conn the netconn to bind
160 * @param addr the local IP address to bind the netconn to (use IP_ADDR_ANY
162 * @param port the local port to bind the netconn to (not used for RAW)
166 netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port)
184 * Connect a netconn to a specific remote IP address and port.
186 * @param conn the netconn to connect
192 netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port)
211 * Disconnect a netconn from its current peer (only valid for UDP netconns).
213 * @param conn the netconn to disconnect
217 netconn_disconnect(struct netconn *conn)
233 * Set a TCP netconn into listen mode
235 * @param conn the tcp netconn to set to listen mode
237 * @return ERR_OK if the netconn was set to listen (UDP and RAW netconns
241 netconn_listen_with_backlog(struct netconn *conn, u8_t backlog)
269 * Accept a new connection on a TCP listening netconn.
271 * @param conn the TCP listen netconn
277 netconn_accept(struct netconn *conn, struct netconn **new_conn)
280 struct netconn *newconn;
336 * @param conn the netconn from which to receive data
342 netconn_recv_data(struct netconn *conn, void **new_buf)
428 * Receive data (in form of a pbuf) from a TCP netconn
430 * @param conn the netconn from which to receive data
434 * ERR_ARG if conn is not a TCP netconn
437 netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf)
446 * Receive data (in form of a netbuf containing a packet buffer) from a netconn
448 * @param conn the netconn from which to receive data
454 netconn_recv(struct netconn *conn, struct netbuf **new_buf)
472 /* This is not a listening netconn, since recvmbox is set */
513 * @param conn the netconn for which to update the receive window
517 netconn_recved(struct netconn *conn, u32_t length)
542 * @param conn the netconn over which to send data
549 netconn_sendto(struct netconn *conn, struct netbuf *buf, ip_addr_t *addr, u16_t port)
560 * Send data over a UDP or RAW netconn (that is already connected).
562 * @param conn the UDP or RAW netconn over which to send data
567 netconn_send(struct netconn *conn, struct netbuf *buf)
585 * Send data over a TCP netconn.
587 * @param conn the TCP netconn over which to send data
598 netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
656 * Close ot shutdown a TCP netconn (doesn't delete it).
658 * @param conn the TCP netconn to close or shutdown
660 * @return ERR_OK if the netconn was closed, any other err_t on error
663 netconn_close_shutdown(struct netconn *conn, u8_t how)
683 * Close a TCP netconn (doesn't delete it).
685 * @param conn the TCP netconn to close
686 * @return ERR_OK if the netconn was closed, any other err_t on error
689 netconn_close(struct netconn *conn)
696 * Shut down one or both sides of a TCP netconn (doesn't delete it).
698 * @param conn the TCP netconn to shut down
699 * @return ERR_OK if the netconn was closed, any other err_t on error
702 netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx)
711 * @param conn the UDP netconn for which to change multicast addresses
719 netconn_join_leave_group(struct netconn *conn,