Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-01

Re: socket not ready help

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

MPDJ
to J. Eduardo Garcia Torres: Hello list. been trying to do a conexion by socket without success, that has two errors…

Hi,

If you change Line:-

if (connect(sock_fd, their_addr, sizeof(their_addr))  -1) then

to:-

 if connect(sock_fd, their_addr, sizeof(their_addr)) = FALSE then

it compiles with no errors. I have not had a chance to try it as I gave up driving sockets this way, and simply used the WinSock API directly. I'm by no stretch of the imagination an 'm sure someone has a better solution.......... ;-)

Andy

>>>>>>>>>>>>>

Hello list.

been trying to do a conexion by socket without success,

I send the code that myself,
that has two errors of compilation to see if they help me to resolve it, The errors are in the lines 39 and 44.

I expect thanks they help myself

thanks

enzo J. Eduardo Garcia T. icq: 69885612 Messenger : Current Proyect : gcafe - http://gcafe.es.gnome.org web site: www.geocities.com/netenzo tel: +57 4 4150570 Medellin - Colombia - Sur America --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.313 / Virus Database: 174 - Release Date: 02/01/02

Reply by email

J. Eduardo Garcia Torres

Hello list.

been trying to do a conexion by socket without success,

I send the code that myself,
that has two errors of compilation to see if they help me to resolve it, The errors are in the lines 39 and 44.

I expect thanks they help myself

thanks

enzo J. Eduardo Garcia T. icq: 69885612 Messenger : Current Proyect : gcafe - http://gcafe.es.gnome.org web site: www.geocities.com/netenzo tel: +57 4 4150570 Medellin - Colombia - Sur America

Reply by email