Compacted code: moved the code creating a netconn (without pcb) from netconn_new_with_proto_and_callback to new (synchroneous) function netconn_alloc_with_proto_and_callback and call this function from netconn_new_with_proto_and_callback and accept_function.

This commit is contained in:
goldsimon
2007-11-30 12:54:10 +00:00
parent 92aa004b75
commit 6746beb2a3
3 changed files with 80 additions and 71 deletions

View File

@@ -142,6 +142,10 @@ void do_join_leave_group( struct api_msg_msg *msg);
void do_gethostbyname(void *arg);
#endif /* LWIP_DNS */
struct netconn* netconn_alloc_with_proto_and_callback(
enum netconn_type t, u8_t proto,
void (*callback)(struct netconn *, enum netconn_evt, u16_t len));
#ifdef __cplusplus
}
#endif