LibUv Networking (#65)

This commit is contained in:
Kamron Batman 2019-12-26 18:08:50 -08:00 • committed by GitHub
parent ec6629fbe9
commit 5e2be2d7b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 5612 additions and 586 deletions

View file

@ -22,6 +22,7 @@ using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using Microsoft.AspNetCore.Connections;
using Server.Accounting;
using Server.Guilds;
using Server.Network;
@ -380,13 +381,13 @@ namespace Server
public class SocketConnectEventArgs : EventArgs
{
public SocketConnectEventArgs(Socket s)
public SocketConnectEventArgs(ConnectionContext c)
{
Socket = s;
Context = c;
AllowConnection = true;
}
public Socket Socket{ get; }
public ConnectionContext Context{ get; }
public bool AllowConnection{ get; set; }
}