Ejemplo n.º 1
0
        public bool Bind(IPAddress address)
        {
            IPEndPoint        endpoint = new IPEndPoint(address, 0);
            SocketBindRoutine routine  = new SocketBindRoutine(endpoint);

            return(routine.Execute(handle));
        }
Ejemplo n.º 2
0
        public bool Bind(int port)
        {
            IPEndPoint        endpoint = new IPEndPoint(IPAddress.Any, port);
            SocketBindRoutine routine  = new SocketBindRoutine(endpoint);

            return(routine.Execute(handle));
        }