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();
		}
Esempio n. 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((LocalAddress != null ? LocalAddress.GetHashCode() : 0) * 397) ^ (RemoteAddress != null ? RemoteAddress.GetHashCode() : 0));
     }
 }
Esempio n. 5
0
 public override void Connect(RemoteAddress address)
 {
 }
Esempio n. 6
0
 void ISocket.Connect(RemoteAddress address)
 {
     this._remoteAddress = address;
     SocialAPI.Network.Connect(address);
 }
Esempio n. 7
0
 public override bool IsDataAvailable(RemoteAddress address)
 {
     return(this._reader.IsDataAvailable(this.RemoteAddressToSteamId(address)));
 }
Esempio n. 8
0
 protected CSteamID RemoteAddressToSteamId(RemoteAddress address)
 {
     return(((SteamAddress)address).SteamId);
 }
Esempio n. 9
0
 // Token: 0x06000B77 RID: 2935
 public abstract void Close(RemoteAddress address);
Esempio n. 10
0
 public void SetUp()
 {
     mSut = new RemoteAddress(new ReadOnlyCollection <IProperty>(new List <IProperty>()));
 }
Esempio n. 11
0
 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));
 }
Esempio n. 12
0
 protected RailID RemoteAddressToRailId(RemoteAddress address)
 {
     return(((WeGameAddress)address).rail_id);
 }
Esempio n. 13
0
 void ISocket.Close()
 {
     this._remoteAddress = null;
     this._connection.Close();
 }
Esempio n. 14
0
        public override void Close(RemoteAddress address)
        {
            RailID remote_peer = RemoteAddressToRailId(address);

            CloseAndUpdateUserState(remote_peer);
        }
Esempio n. 15
0
 /// <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;
		}
Esempio n. 17
0
 // Token: 0x06000B78 RID: 2936
 public abstract bool IsConnected(RemoteAddress address);
		void ISocket.Connect(RemoteAddress address)
		{
			this._remoteAddress = address;
			SocialAPI.Network.Connect(address);
		}
Esempio n. 19
0
 // Token: 0x06000B79 RID: 2937
 public abstract void Connect(RemoteAddress address);
Esempio n. 20
0
 public override bool Send(RemoteAddress address, byte[] data, int length)
 {
     this._writer.QueueSend(this.RemoteAddressToSteamId(address), data, length);
     return(true);
 }
Esempio n. 21
0
 // Token: 0x06000B7A RID: 2938
 public abstract bool Send(RemoteAddress address, byte[] data, int length);
Esempio n. 22
0
 public SocialSocket(RemoteAddress remoteAddress)
 {
     this._remoteAddress = remoteAddress;
 }
Esempio n. 23
0
 // Token: 0x06000B7B RID: 2939
 public abstract int Receive(RemoteAddress address, byte[] data, int offset, int length);
Esempio n. 24
0
 public override void Close(RemoteAddress address)
 {
     SteamFriends.ClearRichPresence();
     this.Close(this.RemoteAddressToSteamId(address));
 }
Esempio n. 25
0
 // Token: 0x06000B7C RID: 2940
 public abstract bool IsDataAvailable(RemoteAddress address);
 public override int GetHashCode()
 {
     return(RemoteAddress.GetHashCode());
 }
Esempio n. 27
0
 public void Connect(RemoteAddress address)
 {
     throw new NotImplementedException();
 }
Esempio n. 28
0
 public override void Close(RemoteAddress address)
 {
     this.CleanMyMetaData();
     this.Close(this.RemoteAddressToRailId(address));
 }
Esempio n. 29
0
 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));
        }