You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lloopback.pas 706B

12345678910111213141516171819202122232425262728293031323334
  1. unit lloopback;
  2. interface
  3. uses lcore,classes;
  4. type
  5. tlloopback=class(tlasio)
  6. public
  7. constructor create(aowner:tcomponent); override;
  8. end;
  9. implementation
  10. uses
  11. {$ifdef ver1_0}
  12. linux;
  13. {$else}
  14. baseunix,unix,unixutil;
  15. {$endif}
  16. {$i unixstuff.inc}
  17. constructor tlloopback.create(aowner:tcomponent);
  18. begin
  19. inherited create(aowner);
  20. closehandles := true;
  21. assignpipe(fdhandlein,fdhandleout);
  22. eventcore.rmasterset(fdhandlein,false);//fd_set(fdhandlein,fdsrmaster);
  23. eventcore.wmasterclr(fdhandlein);//fd_clr(fdhandleout,fdswmaster);
  24. eventcore.setfdreverse(fdhandlein,self);
  25. eventcore.setfdreverse(fdhandleout,self);
  26. state := wsconnected;
  27. end;
  28. end.