public override void Open (string path, bool @abstract) { if (String.IsNullOrEmpty (path)) throw new ArgumentException ("path"); if (@abstract) socket = OpenAbstractUnix (path); else socket = OpenUnix (path); //socket.Blocking = true; SocketHandle = (long)socket.Handle; //Stream = new UnixStream ((int)socket.Handle); Stream = new UnixStream (socket); }
internal UnixSocket OpenAbstractUnix (string path) { byte[] sa = GetSockAddrAbstract (path); UnixSocket client = new UnixSocket (); client.Connect (sa); return client; }
public UnixStream(UnixSocket usock) { this.usock = usock; }
public UnixStream(int fd) { this.usock = new UnixSocket (fd); }
public UnixStream(int fd) { this.usock = new UnixSocket(fd); }