函数源码: /** * Used for specifying the function that should be called when a * LISTENing connection has been connected to another host. *处于监听状态的连接接通后,指定的函数被调用. * @param pcb tcp_pcb to set the accept callback * @param accept callback function to call for this pcb ...
= NULL。 2.在read()未超时之前调用close()关闭socket,则会报错netconn_accept:invalid recvmboxed。 因此在对socket进行操作的时候,请不要操作已经关闭的socket(在多线程应用中容易发生这种情况);在read还没结束之前,请不要讲socket关闭。