提交 4a651581 authored 作者: Michael Jerris's avatar Michael Jerris

use closesocket on sockets.. not close

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4015 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 151e400e
......@@ -949,7 +949,7 @@ int iax_init(char *ip, int preferredportno)
#ifdef WIN32
flags = 1;
if (ioctlsocket(netfd,FIONBIO,(unsigned long *) &flags)) {
_close(netfd);
closesocket(netfd);
netfd = -1;
DEBU(G "Unable to set non-blocking mode.");
IAXERROR "Unable to set non-blocking mode.");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论