src/net/net_mod_socket_wrapper.cpp
@@ -20,6 +20,11 @@ delete sockt; } int net_mod_socket_stop(void *_socket) { NetModSocket *sockt = (NetModSocket *)_socket; return sockt->stop(); } /** * 绑定端口到socket, 如果不绑定则系统自动分配一个 * @return 0 成功, 其他值 失败的错误码 @@ -35,8 +40,8 @@ */ int net_mod_socket_force_bind(void * _socket, int key) { NetModSocket *sockt = (NetModSocket *)_socket; // return sockt->force_bind(key); return sockt->bind(key); return sockt->force_bind(key); // return sockt->bind(key); } /**