Re: [fpc-pascal] SOLVED fpSelect fails with UDP sockets?

2016-04-03 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: NOTE: i've not done any research to see what dadr.sin_addr.s_bytes is but i assume that it is an array of bytes to contain each of the IP address parts... It's usually an untagged variant record so you can also do something like target.s_addr:= HToNL($7F01)

Re: [fpc-pascal] SOLVED fpSelect fails with UDP sockets?

2016-04-03 Thread wkitty42
On 04/03/2016 12:32 PM, Klaus Hartnegg wrote: dadr.sin_family := AF_INET; dadr.sin_addr.s_bytes[1] := 127; dadr.sin_addr.s_bytes[2] := 0; dadr.sin_addr.s_bytes[2] := 0; dadr.sin_addr.s_bytes[2] := 1; shouldn't this be dadr.sin_addr.s_bytes[1] := 127; dadr.sin_addr.s_bytes[2]

Re: [fpc-pascal] SOLVED fpSelect fails with UDP sockets?

2016-04-03 Thread Klaus Hartnegg
Am 03.04.2016 um 18:32 schrieb Klaus Hartnegg: dadr.sin_addr.s_bytes[1] := 127; dadr.sin_addr.s_bytes[2] := 0; dadr.sin_addr.s_bytes[2] := 0; dadr.sin_addr.s_bytes[2] := 1; The array index numbers are of course garbage (from incomplete copy&paste editing), but somehow it worked nev

Re: [fpc-pascal] SOLVED fpSelect fails with UDP sockets?

2016-04-03 Thread Klaus Hartnegg
It works with rc := fpSelect (sock+1,@FDS,nil,nil,5000); I did not understand the description of the first argument in the docs, so I used the value from the sample, this was not a good idea. For reference here is the source that works: Uses UnixType, BaseUnix, Sockets; procedure abort

Re: [fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-04-03 Thread Björn Lundin
On 2016-04-02 20:29, Bo Berglund wrote: > On Mon, 28 Mar 2016 15:30:36 +0200, Björn Lundin > wrote: > >> That speaks for trying to compile 3.0.0. >> The pi is on wheezy, so there is no .deb package >> for it. > > I made a script for installing FPV 3.0.0 and Lazarus 1.6 release on an > RPi. > htt

Re: [fpc-pascal] Write Applet with FPC JVM

2016-04-03 Thread Ingemar Ragnemalm
Message: 1 Date: Sat, 2 Apr 2016 03:39:41 -0700 (MST) From: leledumbo To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Write Applet with FPC JVM Message-ID: <1459593581645-5724733.p...@n5.nabble.com> Content-Type: text/plain; charset=us-ascii It compiles with both Java and FPC, b