Pipe.hx 531 B

12345678910111213141516
  1. package lua.lib.luv;
  2. import haxe.extern.EitherType;
  3. @:luaRequire("luv")
  4. extern class Pipe extends Stream {
  5. static function new_pipe(ipc : Bool) : Pipe;
  6. @:native("new_pipe") function new(ipc : Bool) : Void;
  7. function open(file : EitherType<FileHandle,Handle>) : Pipe;
  8. function bind(name : String) : Pipe;
  9. function connect(name : String, cb: String->Bool->Void) : Int;
  10. function getsockname() : String;
  11. function pending_instances(count : Int) : Int;
  12. function pending_count() : Int;
  13. function pending_type() : Int;
  14. }