internal void SetCore(NetCore core)
{
this.core = core;
}
public NetPeer AddConnection(IPEndPoint endpoint, string token) { if (token == null) { token = ""; } if (Encoding.UTF8.GetByteCount(token) > NetConfig.MAX_TOKEN_BYTES) { throw new ApplicationException("Token string too long"); } NetPeer pending = this.controller.BeginConnect(endpoint, token); pending.SetCore(this); return(pending); }