private IodineSocket accept(VirtualMachine vm, IodineObject self, IodineObject[] args) { IodineSocket sock = new IodineSocket(Socket.Accept()); sock.stream = new NetworkStream(sock.Socket); return(sock); }
private IodineSocket acceptSsl(VirtualMachine vm, IodineObject self, IodineObject[] args) { IodineSocket sock = new IodineSocket(this.Socket.Accept()); sock.stream = new SslStream(new NetworkStream(Socket), false, ValidateServerCertificate, null); // I have no idea what I'm doing lol ((SslStream)sock.stream).AuthenticateAsClient(host); return(sock); }
private IodineSocket acceptSsl (VirtualMachine vm, IodineObject self, IodineObject[] args) { IodineSocket sock = new IodineSocket (this.Socket.Accept ()); sock.stream = new SslStream (new NetworkStream (Socket), false, ValidateServerCertificate, null); // I have no idea what I'm doing lol ((SslStream)sock.stream).AuthenticateAsClient (host); return sock; }
private IodineSocket accept (VirtualMachine vm, IodineObject self, IodineObject[] args) { IodineSocket sock = new IodineSocket (Socket.Accept ()); sock.stream = new NetworkStream (sock.Socket); return sock; }