|
@@ -105,6 +105,7 @@ PUBLIC int socketListen(char *ip, int port, SocketAccept accept, int flags)
|
|
if (port > SOCKET_PORT_MAX) {
|
|
if (port > SOCKET_PORT_MAX) {
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
+ printf(">>>>>ip value is \n: %s", ip);
|
|
if ((sid = socketAlloc(ip, port, accept, flags)) < 0) {
|
|
if ((sid = socketAlloc(ip, port, accept, flags)) < 0) {
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
@@ -966,6 +967,7 @@ PUBLIC void socketFree(int sid)
|
|
*/
|
|
*/
|
|
WebsSocket *socketPtr(int sid)
|
|
WebsSocket *socketPtr(int sid)
|
|
{
|
|
{
|
|
|
|
+ printf("?>>>>>>>>>>%d11\n", sid);
|
|
if (sid < 0 || sid >= socketMax || socketList[sid] == NULL) {
|
|
if (sid < 0 || sid >= socketMax || socketList[sid] == NULL) {
|
|
assert(NULL);
|
|
assert(NULL);
|
|
errno = EBADF;
|
|
errno = EBADF;
|