Example #1
0
    public bool TryConnectSocket(Socket target)
    {
        //Test for connection policy
        if (AllowsConnectionOneDirection(target) && target.AllowsConnectionOneDirection(this))
        {
            ClearOutPort();
            OutPort        = target;
            target.OutPort = this;

            return(true);
        }

        return(false);
    }