Quote:
Originally Posted by HLM
Code:
if((socket_open_t(g_socket, "M.Y.I.P.", 32650, SOCKET_TCP, "Open_Socket")) < 0)
Code:
public Socket_Open( iThreadState, iReturn)
|
Seems like the module could not find the Public CallbackHandler "
Open_Socket". Trying keeping the CallbackHandler name same.
Also to confirm the same try logging out the return value of socket_open_t(), should be -2.
Example,
Code:
iRet = socket_open_t(g_socket, "M.Y.I.P.", 32650, SOCKET_TCP, "Open_Socket")
amx_log(iRet)
if(iRet =.... ) ....
And since the return value of lastSocketError is -1, and doesn't correspond to any ERROR Codes mentioned in 1st Post, I will safely assume that there is no problem with WinSock/LinuxSock APIs
Quote:
Originally Posted by HLM
Code:
In socket_create_t, creating thread obj
In socket_create_t, creating thread
In socket_create_t, attaching thread
In socket_create_t, adding thread item thread
in CThreadedSocketManager::AddItemToList, before
Start ((nil)) ((nil)) END
in CThreadedSocketManager::AddItemToList, Adding item to list with id 0 Addr 0x99473d0
item-Pev = (nil) end : (nil)
item-Pev = (nil) end : (nil)
in CThreadedSocketManager::AddItemToList, after
Start (0x99473d0) | (nil) (0x99473d0) (nil) | (0x99473d0) END
In socket_create_t, returning cast thread 160723920[4]
In Threadmain, arg - 160723920
In ThreadMain, state is 7
In socket_open_t, De-Casting rc
In socket_open_t, De-Casting rc 160723920[4]
In socket_open_t, Assigining hn 66.151.244.170[66.151.244.170]
In socket_open_t, Assigining port
In socket_open_t, Assigining proto
In socket_open_t, Assigining fid
Missing Line: In socket_open_t, Assigining TS
ERROR: Could not open Socket. -1
|
That must also be the reason why "In socket_open_t, Assigining TS"
Assigning ThreadState line didn't get debugged out.
__________________