SendTo() public method

public SendTo ( Server.Network.NetState state ) : void
state Server.Network.NetState
return void
Ejemplo n.º 1
0
 public bool SendHuePicker( HuePicker p, bool throwOnOffline )
 {
     if ( m_NetState != null )
     {
         p.SendTo( m_NetState );
         return true;
     }
     else if ( throwOnOffline )
     {
         throw new MobileNotConnectedException( this, "Hue picker could not be sent." );
     }
     else
     {
         return false;
     }
 }
Ejemplo n.º 2
0
        public bool SendHuePicker( HuePicker p, bool throwOnOffline = false )
        {
            if ( m_Client == null )
            {
                if ( throwOnOffline )
                    throw new MobileNotConnectedException( this, "Hue picker could not be sent." );

                return false;
            }

            p.SendTo( m_Client );
            return true;
        }