[fpc-pascal]win32 server socket problem
Balázs Csaba
csbalazs at ccs.hu
Fri Aug 15 12:45:41 CEST 2003
Yes, maybe it is a text file problem, but I cannot solve it. Did somebody
make same program on win32?
Could I try it with recv(), send()? In this case how can i detect the end of
communication?
#Tsch : Balázs Csaba
>
> > I found a problem at night, and ia cannot solve it in 5 hours.
> >
> > I wrote the simple server side on linux (socket, bind, listen....
> > accept). I connect to this server with a simple Delphi5
> client on port
> > 2001 (i tried any other). The "while (not eof(sin))" stops
> and waits
> > for the forst packet, and so on. But on windows (with win32
> compiler)
> > the same program can read garbage data from sin (text type) and the
> > data is infinity, so i cannot be the end of data.
> > What is the difference betwwen win32 and linux socket
> units? What can I do
> > to compile the program perfectly on win32?
>
> The problem is not in the sockets unit, I think, but in the
> handling of text files on Win32. I don't know whether there
> is a simple solution for this.
>
> Michael.
More information about the fpc-pascal
mailing list