Page 1 of 1

xbp

Posted: Fri Jan 29, 2021 12:05 pm
by omni
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

Re: xbp

Posted: Fri Jan 29, 2021 11:33 pm
by Wolfgang Ciriack
You need to update your xb2net version.

Re: xbp

Posted: Wed Feb 03, 2021 7:39 pm
by omni
How did you know that? Worked for years and all of a sudden it gives that weird error.

Updated to the 2021 version (from 2016) and it worked. Must have been some new security on their server. no clue

Thanks..wish it had been free


Fred
Omni

Re: xbp

Posted: Thu Feb 04, 2021 3:58 am
by Tom
Look here: http://news.xb2.net/ng.php?art_group=xb ... le_id=2437

This is a bug which was in there all the time, but it showed up with a Windows Update.