Exemple #1
0
            private IodineSocket accept(VirtualMachine vm, IodineObject self, IodineObject[] args)
            {
                IodineSocket sock = new IodineSocket(Socket.Accept());

                sock.stream = new NetworkStream(sock.Socket);
                return(sock);
            }
Exemple #2
0
            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;
			}