[fpc-devel] https support; call for testers

Dimitrios Chr. Ioannidis d.ioannidis at nephelae.eu
Mon May 12 09:28:10 CEST 2014


Hi,

Στις 12/5/2014 10:11 πμ, ο/η Michael Van Canneyt έγραψε:
>
>
> On Mon, 12 May 2014, Marco van de Voort wrote:
>
>> In our previous episode, Michael Van Canneyt said:
>>>>
>>>> #0 HANDLEERRORADDRFRAME(201, 0x15ff0dc, 0x2e2f48) at 
>>>> ..\inc\system.inc:962
>>>> #1 HANDLEERRORFRAME(201, 0x15ff0dc) at ..\inc\system.inc:992
>>>> #2 fpc_rangeerror at ..\inc\system.inc:653
>>>> #3 CONNECT(0x2e72a8) at ..\source\ssockets.pp:860
>>>
>>> That is the line:
>>>
>>> addr.sin_addr.s_addr := HostToNet(a.s_addr);
>>
>> HostToNet is only defined for in_addr and longint, and s_addr is 
>> cuint32.
>
> On all platforms ?
>
> Strange then that this error didn't happen before. Well, a simple 
> typecast will solve this.

you're correct if changed it to

addr.sin_addr.s_addr := HostToNet(LongInt(a.s_addr));

i get a 504 Error also.

regards,

-- 
Dimitrios Chr. Ioannidis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4261 bytes
Desc: Κρυπτογραφημένη υπογραφή S/MIME
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140512/5c593808/attachment.bin>


More information about the fpc-devel mailing list