mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 12:39:35 +08:00
28 lines
821 B
C#
28 lines
821 B
C#
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Interface.Base
|
|
{
|
|
public interface ISocket
|
|
{
|
|
public System.Net.Sockets.Socket Instance { get; }
|
|
public int Runtime { get; }
|
|
public string Token { get; }
|
|
public string ServerIP { get; }
|
|
public int ServerPort { get; }
|
|
public string ServerName { get; }
|
|
public string ServerNotice { get; }
|
|
public bool Connected
|
|
{
|
|
get
|
|
{
|
|
return Instance != null && Instance.Connected;
|
|
}
|
|
}
|
|
public bool Receiving { get; }
|
|
public SocketResult Send(SocketMessageType type, params object[] objs);
|
|
public object[] Receive();
|
|
public void Close();
|
|
public void StartReceiving(Task t);
|
|
}
|
|
}
|