2023-02-21 23:19:47 +08:00

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);
}
}