Re: [fpc-pascal]reading a unix socket ? - this time without html

2003-03-20 Thread Kenneth Due
At 19:00 20-03-2003 +0100, you wrote: > > >On Thu, 20 Mar 2003, Kenneth Due wrote: > >> Sorry about the 'spam' >> I forgot to remove the html, before sending the mail.. >> >> I have a problem reading a unix-socket > >Please see the examples in the docs, they give examples of how to do t

Re: [fpc-pascal]reading a unix socket ? - this time without html

2003-03-20 Thread Michael . VanCanneyt
On Thu, 20 Mar 2003, Kenneth Due wrote: > Sorry about the 'spam' > I forgot to remove the html, before sending the mail.. > > I have a problem reading a unix-socket Please see the examples in the docs, they give examples of how to do this. The 'sockets' unit gives you everyting you

[fpc-pascal]reading a unix socket ? - this time without html

2003-03-20 Thread Kenneth Due
Sorry about the 'spam' I forgot to remove the html, before sending the mail.. I have a problem reading a unix-socket this snippet (from www.lirc.org) works, but it's in perl (I think) ... :-( fd=socket(AF_UNIX,SOCK_STREAM,0); if(fd==-1) { per

Re: [fpc-pascal]reading a unix socket ?

2003-03-20 Thread Jonas Maebe
On woensdag, maa 19, 2003, at 20:55 Europe/Brussels, Kenneth Due wrote: I have a problem reading a unix-socket this snippet (from www.lirc.org) works, but it's in perl ... :-(     fd=socket(AF_UNIX,SOCK_STREAM,0);     if(fd==-1)  { ;    perror("socket");  

Re: [fpc-pascal]Constructor failing...

2003-03-20 Thread Anton Tichawa
On Thursday 20 March 2003 09:27, you wrote: > >> > Hi again - > >> > > >> > another question; what is the best way to "fail" a constructor call? > >> > >> For > >> > >> > example, I have a constructor "timage.loadimage()", and I want it to > >> > return > >> > "nil" if it encounters a problem (e.g.

RE: [fpc-pascal]Constructor failing...

2003-03-20 Thread Peter Vreman
>> >> > Hi again - >> > >> > another question; what is the best way to "fail" a constructor call? >> For >> > example, I have a constructor "timage.loadimage()", and I want it to >> > return >> > "nil" if it encounters a problem (e.g. the file name doesn't exist). >> My >> >> Use fail :-) > > But,