On Sun, Jan 13, 2008 at 11:42:30AM +0000, 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, > select() etc. so as to be portable under unix? Windows is no problem- > they're all in winsock. > > When using the sockets library I'm getting compiler warnings such as > 'Symbol "RecvFrom" is deprecated'. What exactly is something trying to tell > me here, and what should I be doing about it?
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 http://www.freepascal.org/docs-html/rtl/sockets/index-5.html (though badly, they are not aliases, they are the real thing) The deprecated functions are also possibly buggy, don't use them. There are several bugreports with these functions behaving strange. _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
