feat: Networking v3 using epoll/kqueue (#813)
* Replaces networking internals with epoll/kqueue
This commit is contained in:
parent
8eaa859332
commit
a845f8a1c0
14 changed files with 686 additions and 198 deletions
|
|
@ -23,6 +23,8 @@ namespace Server.Network
|
|||
{
|
||||
public interface ISocket
|
||||
{
|
||||
public IntPtr Handle { get; }
|
||||
|
||||
public EndPoint LocalEndPoint { get; }
|
||||
|
||||
public EndPoint RemoteEndPoint { get; }
|
||||
|
|
@ -33,6 +35,8 @@ namespace Server.Network
|
|||
|
||||
public Task<int> ReceiveAsync(IList<ArraySegment<byte>> buffer, SocketFlags flags);
|
||||
|
||||
public int Receive(IList<ArraySegment<byte>> buffers, SocketFlags flags);
|
||||
|
||||
public void Shutdown(SocketShutdown how);
|
||||
|
||||
public void Close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue