Re: [lazarus] Sockets programming

2008-01-14 Thread Mark Morgan Lloyd
Marco van de Voort wrote: Any thoughts on how to get select() and associated procedures working? Yes. Use them from baseunix (fpselect fpset* etc). See docs. Thanks, I think I'm slowly getting there. Also fpFD_ZERO() and so on. Under Unix they are not just for sockets, hence they are not

[lazarus] Sockets programming

2008-01-13 Thread Mark Morgan Lloyd
Sorry but this is another where do I find question. I'm doing various stuff which is best done at the level of the sockets library, I might wrap it as a component later. What is the correct way to get TFDSET, FD_ZERO, select() etc. so as to be portable under unix? Windows is no problem- they're

Re: [lazarus] Sockets programming

2008-01-13 Thread Marco van de Voort
On Sun, Jan 13, 2008 at 11:42:30AM +, Mark Morgan Lloyd wrote: Sorry but this is another where do I find question. I'm doing various stuff which is best done at the level of the sockets library, I might wrap it as a component later. What is the correct way to get TFDSET, FD_ZERO,

Re: [lazarus] Sockets programming

2008-01-13 Thread Mark Morgan Lloyd
Marco van de Voort wrote: On Sun, Jan 13, 2008 at 11:42:30AM +, Mark Morgan Lloyd wrote: Sorry but this is another where do I find question. I'm doing various stuff which is best done at the level of the sockets library, I might wrap it as a component later. What is the correct way to get

Re: [lazarus] Sockets programming

2008-01-13 Thread Marco van de Voort
On Sun, Jan 13, 2008 at 11:42:30AM +, Mark Morgan Lloyd wrote: The old 1.0.x symbols have been deprecated in 2.2.0+, new variants exist that have proper typing and (standarized) errorhandling. These new variants are called prefix with fp, so fprecvfrom. These are all documented in

Re: [lazarus] Sockets programming

2007-12-17 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: I'm looking at something that uses UDP directly, It's being built from the ground up in Delphi and Lazarus for both Win-32 and Linux. In Delphi I can control sockets directly by using USES WinSock. However Lazarus/FPC appears to have at least two libraries with similar