示例#1
0
 Commander::Commander(model::Selections &selections):
     selections_(selections)
 {
     MetaState::nameFilter = &nameFilter_;
     MetaState::contentFilter = &contentFilter_;
     MetaState::command = &command_;
     connect_(Control::NameFilter,  boost::bind(&Commander::nameFilterChanged_, this, _1));
     connect_(Control::ContentFilter, boost::bind(&Commander::contentFilterChanged_, this, _1));
     connect_(Control::Command, boost::bind(&Commander::commandChanged_, this, _1));
     changeState(Control::NameFilter);
 }
示例#2
0
void Gx_detune_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  detune->connect_ports(port,  data, detune);
}
示例#3
0
void Gx_duck_delay_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  duck_delay->connect_ports(port,  data, duck_delay);
}
示例#4
0
文件: Hook.cpp 项目: amohanta/pwnypot
int
WSAAPI
Hookedconnect(
	SOCKET s,
    const struct sockaddr *name,
	int namelen
    )
{
	if ( DbgGetShellcodeFlag() == MCEDP_STATUS_SHELLCODE_FLAG_SET )
	{
		PXMLNODE XmlLogNode;
		PXMLNODE XmlIDLogNode;
		CHAR szPort[20];
		sockaddr_in *sdata;
		sdata = (sockaddr_in *)name;
		
		XmlIDLogNode = mxmlNewElement( XmlShellcode, "row");
		// type
		XmlLogNode = mxmlNewElement( XmlIDLogNode, "type");
		mxmlNewText( XmlLogNode, 0, "4");
		// connect
		XmlLogNode = mxmlNewElement( XmlIDLogNode, "connect_ip");
		mxmlNewText( XmlLogNode, 0, inet_ntoa(sdata->sin_addr));
		XmlLogNode = mxmlNewElement( XmlIDLogNode, "connect_port");
		mxmlNewText( XmlLogNode, 0, itoa(htons(sdata->sin_port), szPort, 10));
		// save
		SaveXml( XmlLog );
	}

	return (connect_(s, name, namelen));
}
示例#5
0
文件: gx_muff.cpp 项目: dafx/guitarix
void Gx_muff_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  muff->connect_ports(port,  data, muff);
}
示例#6
0
void Gx_shimmizita_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  shimmizita->connect_ports(port,  data, shimmizita);
}
示例#7
0
void Gx_rangem_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  rangem->connect_ports(port,  data, rangem);
}
示例#8
0
void Gx_fuzzfacefm_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  fuzzfacefm->connect_ports(port,  data, fuzzfacefm);
}
示例#9
0
void Gx_digital_delay_st_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  digital_delay_st->connect_ports(port,  data, digital_delay_st);
}
示例#10
0
	boost::shared_ptr< Connection > Connector::connect(const std::string & remote_address, boost::uint16_t port)
	{
		boost::format fmt("%1%:%2%");
		fmt % remote_address % port;
		Scorpion::BIO * bio(connect_(fmt.str()));
		return boost::shared_ptr< Connection > (new Connection(bio));
	}
示例#11
0
void Gx_mbdistortion_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  mbdistortion->connect_ports(port,  data, mbdistortion);
}
示例#12
0
	boost::shared_ptr< Connection > Connector::connect(const Details::Address & remote_address, boost::uint16_t port)
	{
		boost::format fmt("%1%.%2%.%3%.%4%:%5%");
		fmt % (unsigned int)remote_address[0] % (unsigned int)remote_address[1] % (unsigned int)remote_address[2] % (unsigned int)remote_address[3] % port;
		Scorpion::BIO * bio(connect_(fmt.str()));
		return boost::shared_ptr< Connection > (new Connection(bio));
	}
示例#13
0
void Gx_barkgraphiceq_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  barkgraphiceq->connect_ports(port,  data, barkgraphiceq);
}
示例#14
0
void Gx_hogsfoot_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  hogsfoot->connect_ports(port,  data, hogsfoot);
}
示例#15
0
文件: Hook.cpp 项目: ohio813/Pwnypot
int
WSAAPI
Hookedconnect(
	SOCKET s,
    const struct sockaddr *name,
	int namelen
    )
{
	if ( DbgGetShellcodeFlag() == PWNYPOT_STATUS_SHELLCODE_FLAG_SET )
	{
		PXMLNODE XmlIDLogNode;
		CHAR szPort[20];
		sockaddr_in *sdata;
		sdata = (sockaddr_in *)name;
		
		XmlIDLogNode = mxmlNewElement( XmlShellcode, "row");
		// type
		mxmlElementSetAttr(XmlIDLogNode, "type", ANALYSIS_TYPE_CONNECT);
		// connect
		mxmlElementSetAttrf(XmlIDLogNode, "socket", "%d", s);
		mxmlElementSetAttr( XmlIDLogNode, "connect_ip", inet_ntoa(sdata->sin_addr));
		mxmlElementSetAttr( XmlIDLogNode, "connect_port", _itoa(htons(sdata->sin_port), szPort, 10));

		// save
		SaveXml( XmlLog );
	}

	return (connect_(s, name, namelen));
}
void OnkyoRemoteItem::cmd(const QString &str)
{
    if( getConnected()==false )
        connect_(true);

    if( getConnected() )
        onkyo_->request(str);
}
示例#17
0
void Gx_colwah_::connect_all__ports(uint32_t port, void* data)
{
  // connect the Ports used by the plug-in class
  connect_(port,data); 
  // connect the Ports used by the DSP class
  for(uint32_t i=0; i<WAH_COUNT; i++) {
        wah[i]->connect_ports(port, data, wah[i]);
    }
}
示例#18
0
/**
 * Now we can connect with or without structural plasticity
 */
void
nest::ConnBuilder::connect()
{
  if ( symmetric_ && not supports_symmetric() )
    throw NotImplemented(
      "This connection rule does not support symmetric connections." );

  if ( pre_synaptic_element_name != "" && post_synaptic_element_name != "" )
  {
    if ( symmetric_ )
      throw NotImplemented(
        "Symmetric connections are not supported in combination with "
        "structural plasticity." );
    sp_connect_();
  }
  else
  {
    connect_();
    if ( symmetric_ )
    {
      // call reset on all parameters
      if ( weight_ )
        weight_->reset();
      if ( delay_ )
        delay_->reset();
      for ( ConnParameterMap::const_iterator it = synapse_params_.begin();
            it != synapse_params_.end();
            ++it )
      {
        it->second->reset();
      }

      std::swap( sources_, targets_ );
      connect_();
      std::swap( sources_, targets_ ); // re-establish original state
    }
  }

  // check if any exceptions have been raised
  for ( size_t thr = 0; thr < kernel().vp_manager.get_num_threads(); ++thr )
    if ( exceptions_raised_.at( thr ).valid() )
      throw WrappedThreadException( *( exceptions_raised_.at( thr ) ) );
}
示例#19
0
void
nest::SPBuilder::sp_connect( GIDCollection sources, GIDCollection targets )
{
  connect_( sources, targets );

  // check if any exceptions have been raised
  for ( size_t thr = 0; thr < kernel().vp_manager.get_num_threads(); ++thr )
    if ( exceptions_raised_.at( thr ).valid() )
      throw WrappedThreadException( *( exceptions_raised_.at( thr ) ) );
}
示例#20
0
bool SybConnection::connect(const char *host, const char *user,
                            const char *password, const char *db_name, unsigned int port) {
    bool retcode;
    char addr[50];
    char cmd[128];

    if (strlen(host) > 30) {
        return false;
    }
    sprintf(addr, "%s %u", host, port);

    if (sContext_ == NULL) {
        if (init_() != CS_SUCCEED) {
            return false;
        }
    }

    if (connect_("ewp_sybase_drv", NULL, user, password, db_name)!=CS_SUCCEED) {
        return false;
    }

    if (stmt_) {
        terminate_statement(stmt_);
        stmt_ = NULL;
    }
    stmt_ = create_statement();
    if (db_name != NULL) {
        if (strlen(db_name) > 120) {
            return false;
        }
        sprintf(cmd, "use %s", db_name);
        retcode = stmt_->execute_cmd(cmd);

        if (!retcode) {
            return false;
        }
    }

    limit_row_count_ = 0;

    return true;
}
示例#21
0
文件: graph.c 项目: orumin/Graph
//Connect both to represent an undirected path
void connect(Node *node1, Node *node2) {
    connect_(node1, node2);
    connect_(node2, node1);
}
示例#22
0
		backend::connection *static_driver::open(connection_info const &ci)
		{
			return connect_(ci);
		}