public TcpSocket(TcpClient tcpClient) { this._connection = tcpClient; this._connection.NoDelay = true; IPEndPoint iPEndPoint = (IPEndPoint)tcpClient.Client.RemoteEndPoint; this._remoteAddress = new TcpAddress(iPEndPoint.Address, iPEndPoint.Port); }
void ISocket.Close() { if (this._remoteAddress == null) { return; } SocialAPI.Network.Close(this._remoteAddress); this._remoteAddress = null; }
void ISocket.Close() { this._remoteAddress = null; this._connection.Close(); }
public override int GetHashCode() { unchecked { return(((LocalAddress != null ? LocalAddress.GetHashCode() : 0) * 397) ^ (RemoteAddress != null ? RemoteAddress.GetHashCode() : 0)); } }
public override void Connect(RemoteAddress address) { }
void ISocket.Connect(RemoteAddress address) { this._remoteAddress = address; SocialAPI.Network.Connect(address); }
public override bool IsDataAvailable(RemoteAddress address) { return(this._reader.IsDataAvailable(this.RemoteAddressToSteamId(address))); }
protected CSteamID RemoteAddressToSteamId(RemoteAddress address) { return(((SteamAddress)address).SteamId); }
// Token: 0x06000B77 RID: 2935 public abstract void Close(RemoteAddress address);
public void SetUp() { mSut = new RemoteAddress(new ReadOnlyCollection <IProperty>(new List <IProperty>())); }
public override int Receive(RemoteAddress address, byte[] data, int offset, int length) { return(address == null ? 0 : this._reader.Receive(this.RemoteAddressToRailId(address), data, offset, length)); }
protected RailID RemoteAddressToRailId(RemoteAddress address) { return(((WeGameAddress)address).rail_id); }
public override void Close(RemoteAddress address) { RailID remote_peer = RemoteAddressToRailId(address); CloseAndUpdateUserState(remote_peer); }
/// <summary> /// String representation of the proxy socket. /// </summary> /// <returns></returns> public override string ToString() { return("Proxy connection to: " + RemoteAddress.ToString()); }
public SocialSocket(RemoteAddress remoteAddress) { this._remoteAddress = remoteAddress; }
// Token: 0x06000B78 RID: 2936 public abstract bool IsConnected(RemoteAddress address);
// Token: 0x06000B79 RID: 2937 public abstract void Connect(RemoteAddress address);
public override bool Send(RemoteAddress address, byte[] data, int length) { this._writer.QueueSend(this.RemoteAddressToSteamId(address), data, length); return(true); }
// Token: 0x06000B7A RID: 2938 public abstract bool Send(RemoteAddress address, byte[] data, int length);
// Token: 0x06000B7B RID: 2939 public abstract int Receive(RemoteAddress address, byte[] data, int offset, int length);
public override void Close(RemoteAddress address) { SteamFriends.ClearRichPresence(); this.Close(this.RemoteAddressToSteamId(address)); }
// Token: 0x06000B7C RID: 2940 public abstract bool IsDataAvailable(RemoteAddress address);
public override int GetHashCode() { return(RemoteAddress.GetHashCode()); }
public void Connect(RemoteAddress address) { throw new NotImplementedException(); }
public override void Close(RemoteAddress address) { this.CleanMyMetaData(); this.Close(this.RemoteAddressToRailId(address)); }
public override void Close(RemoteAddress address) { this.Close(this.RemoteAddressToSteamId(address)); }
void ISocket.Connect(RemoteAddress address) { TcpAddress tcpAddress = (TcpAddress)address; this._connection.Connect(tcpAddress.Address, tcpAddress.Port); this._remoteAddress = address; }
public override bool IsDataAvailable(RemoteAddress address) { RailID id = RemoteAddressToRailId(address); return(_reader.IsDataAvailable(id)); }