Beispiel #1
0
        public override bool Equals(object obj)
        {
            FakeEndPoint other = obj as FakeEndPoint;

            if (other == null)
            {
                return(false);
            }

            return((this.address == other.address) && (this.port == other.port));
        }
 public void Bind(string address, int port)
 {
     boundAddress = new FakeEndPoint(address, port);
 }