mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Add Multiple transports system, begin work on WebSockets
This commit is contained in:
parent
e869a23463
commit
e74f66a439
22 changed files with 3752 additions and 3301 deletions
16
HorseIsleServer/LibHISP/Server/Network/ITransport.cs
Normal file
16
HorseIsleServer/LibHISP/Server/Network/ITransport.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace HISP.Server.Network
|
||||
{
|
||||
public interface ITransport
|
||||
{
|
||||
public string Name { get; }
|
||||
public bool Disconnected { get; }
|
||||
public string Ip { get; }
|
||||
|
||||
public void Accept(Socket socket, Action<byte[]> onReceive, Action onDisconnect);
|
||||
public void Send(byte[] data);
|
||||
public void Disconnect();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue