xbp
Posted: Fri Jan 29, 2021 12:05 pm
Been using this since 2006, but all of a sudden as of this week its erroring out.
oSock := xbSocket():New(AF_INET, SOCK_STREAM, IPPROTO_TCP)
if oSock:ErrorCode > 0
MsgBox("Unable to create a socket!" + chr(10) +;
"Error code: " + NTrim(oSock:ErrorCode) + " (" + oSock:ErrorText(oSock:ErrorCode) + ")" )
oSock:destroy()
select 50
use
Return
endif
if ! oSock:Connect(cHost, nPort)
//gets an error here on the osock:connect
-> VALTYPE: N VALUE: 1549847
oError:description : Parameter has a wrong value
oError:filename :
oError:genCode : 1
oError:operation : w2Bin
CALLSTACK:
Called from __SOCKADDRENCODE(1835)
Called from XBSOCKET:CONNECT(2417)
No idea what the value is or what w2bin is, or why it would do this Monday.
We believe it may be the site url connection, but we only have that one still using that method.
No idea how to test it elsewhere(?)
'That same value comes up regardless of what server we are on, at the users site or ours.
Update: I think it is the outgoing port no longer being open. Works on 80, but then the web site declines. They had a hacker and made
some hardware changes the prior week.
Fred
Omni
oSock := xbSocket():New(AF_INET, SOCK_STREAM, IPPROTO_TCP)
if oSock:ErrorCode > 0
MsgBox("Unable to create a socket!" + chr(10) +;
"Error code: " + NTrim(oSock:ErrorCode) + " (" + oSock:ErrorText(oSock:ErrorCode) + ")" )
oSock:destroy()
select 50
use
Return
endif
if ! oSock:Connect(cHost, nPort)
//gets an error here on the osock:connect
-> VALTYPE: N VALUE: 1549847
oError:description : Parameter has a wrong value
oError:filename :
oError:genCode : 1
oError:operation : w2Bin
CALLSTACK:
Called from __SOCKADDRENCODE(1835)
Called from XBSOCKET:CONNECT(2417)
No idea what the value is or what w2bin is, or why it would do this Monday.
We believe it may be the site url connection, but we only have that one still using that method.
No idea how to test it elsewhere(?)
'That same value comes up regardless of what server we are on, at the users site or ours.
Update: I think it is the outgoing port no longer being open. Works on 80, but then the web site declines. They had a hacker and made
some hardware changes the prior week.
Fred
Omni