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;
		}
Example #3
0
 public UnixStream(UnixSocket usock)
 {
     this.usock = usock;
 }
Example #4
0
 public UnixStream(int fd)
 {
     this.usock = new UnixSocket (fd);
 }
Example #5
0
 public UnixStream(UnixSocket usock)
 {
     this.usock = usock;
 }
Example #6
0
 public UnixStream(int fd)
 {
     this.usock = new UnixSocket(fd);
 }