Lines Matching refs:netconn

61 /* Flags for struct netconn.flags (u8_t) */
66 /** Should this netconn avoid blocking? */
70 /** If this is set, a TCP netconn must call netconn_recved() to update
74 check if the netconn is writable again */
82 /** Protocol family and type of the netconn */
95 /** Current state of the netconn. Non-TCP netconns are always
127 struct netconn;
130 /** A callback prototype to inform about events for a netconn */
131 typedef void (* netconn_callback)(struct netconn *, enum netconn_evt, u16_t len);
133 /** A netconn descriptor */
134 struct netconn {
135 /** type of the netconn (TCP, UDP or RAW) */
137 /** current state of the netconn */
146 /** the last error this netconn had */
151 by the netconn application thread (can grow quite big) */
181 /** flags holding more netconn-internal state, see NETCONN_FLAG_* defines */
192 /** A callback function that is informed about events for this netconn */
215 netconn *netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto,
217 err_t netconn_delete(struct netconn *conn);
218 /** Get the type of a netconn (as enum netconn_type). */
221 err_t netconn_getaddr(struct netconn *conn, ip_addr_t *addr,
226 err_t netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port);
227 err_t netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port);
228 err_t netconn_disconnect (struct netconn *conn);
229 err_t netconn_listen_with_backlog(struct netconn *conn, u8_t backlog);
231 err_t netconn_accept(struct netconn *conn, struct netconn **new_conn);
232 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf);
233 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf);
234 void netconn_recved(struct netconn *conn, u32_t length);
235 err_t netconn_sendto(struct netconn *conn, struct netbuf *buf,
237 err_t netconn_send(struct netconn *conn, struct netbuf *buf);
238 err_t netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
242 err_t netconn_close(struct netconn *conn);
243 err_t netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx);
246 err_t netconn_join_leave_group(struct netconn *conn, ip_addr_t *multiaddr,
256 /** Set the blocking status of netconn calls (@todo: write/send is missing) */
261 /** Get the blocking status of netconn calls (@todo: write/send is missing) */
264 /** TCP: Set the no-auto-recved status of netconn calls (see NETCONN_FLAG_NO_AUTO_RECVED) */
269 /** TCP: Get the no-auto-recved status of netconn calls (see NETCONN_FLAG_NO_AUTO_RECVED) */