OnHasConnect
/// <summary>
/// 当有客户端连接
/// </summary>
/// <param name="client">客户端套接字</param>
protected virtual void OnHasConnect(Player client)
{
if (client.RemotePoint != null)
Debug.Log("有客户端连接:" + client.RemotePoint.ToString());
else if (client.Client != null)
Debug.Log("有客户端连接:" + client.Client.RemoteEndPoint.ToString());
}
最后更新于
这有帮助吗?