mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 03:59:35 +08:00
18 lines
551 B
C#
18 lines
551 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 SocketRuntimeType Runtime { get; }
|
|
public Guid Token { get; }
|
|
public string ServerIP { get; }
|
|
public int ServerPort { get; }
|
|
public string ServerName { get; }
|
|
public string ServerNotice { get; }
|
|
public bool Connected => Instance != null && Instance.Connected;
|
|
public void Close();
|
|
}
|
|
}
|