Ejemplo n.º 1
0
		public UDPPipe PipeTo(IPEndPoint remoteEndpoint)
		{
			foreach (var pipe in pipes) {
				if (pipe.remoteEndpoint == remoteEndpoint) {
					return pipe;
				}
			}

			var newPipe = new UDPPipe ();
			newPipe.Transport = this;
			newPipe.Client = client;
			newPipe.remoteEndpoint = remoteEndpoint;
			pipes.Add (newPipe);

			return newPipe;
		}
Ejemplo n.º 2
0
        public UDPPipe PipeTo(IPEndPoint remoteEndpoint)
        {
            foreach (var pipe in pipes)
            {
                if (pipe.remoteEndpoint == remoteEndpoint)
                {
                    return(pipe);
                }
            }

            var newPipe = new UDPPipe();

            newPipe.Transport      = this;
            newPipe.Client         = client;
            newPipe.remoteEndpoint = remoteEndpoint;
            pipes.Add(newPipe);

            return(newPipe);
        }