Hi,
Try use TTCPBlockSocket class for TCP Connections? Works fine for me using
Fedora / SuSE.
Regards,
W
On Fri, May 15, 2009 at 4:10 PM, Daniel Simoes de Ameida <
[email protected]> wrote:
> Hi All,
>
> I'm using Synapse on a cross-plataform project, with Lazarus/FPC
>
> On Linux, I always got "Error 9" with this simple code:
>
> Var
> Sock : TBlockSocket ;
> Error : Integer ;
> begin
> Sock := TBlockSocket.Create;
>
> Sock.Connect( 'localhost', '3050' ) ;
> Error := Sock.LastError ;
> Memo1.Lines.Add('Connect Error: '+IntToStr(Error)+
> ' - '+Sock.GetErrorDesc(Error));
> Sock.CloseSocket;
> Error := Sock.LastError ;
> Memo1.Lines.Add('Close Error: '+IntToStr(Error)+
> ' - '+Sock.GetErrorDesc(Error));
>
> Sock.Free
> end;
>
> Connect Error: 9 - Bad file number
> Close Error: 9 - Bad file number
>
>
> The same code runs OK on Win32 + Lazarus/FPC
>
> I use Mandriva 2009 and
> Free Pascal Compiler version 2.2.5 [2009/04/10] for i386
>
>
>
> The function: GetLocalIPs always return only 127.0.0.1 on Linux ?
>
>
> []s Daniel
>
> Conheça o Projeto ACBr - Automaçao Comercial
> Brasil<http://acbr.sourceforge.net>
> DJSystem a Loja Patrocinadora do ACBr <http://www.djsystem.com.br>
>
>
> ------------------------------
> Veja quais são os assuntos do momento no Yahoo! + Buscados: Top
> 10<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/>-
> Celebridades<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/>-
> Música<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/>-
> Esportes<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public