当前位置: 首页>>代码示例>>C++>>正文


C++ XmlRpcServer::enableIntrospection方法代码示例

本文整理汇总了C++中XmlRpcServer::enableIntrospection方法的典型用法代码示例。如果您正苦于以下问题:C++ XmlRpcServer::enableIntrospection方法的具体用法?C++ XmlRpcServer::enableIntrospection怎么用?C++ XmlRpcServer::enableIntrospection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XmlRpcServer的用法示例。


在下文中一共展示了XmlRpcServer::enableIntrospection方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: runServer

void runServer()
{
	int port = 7776;
	XmlRpc::setVerbosity(5);
	s.bindAndListen(port);
	s.enableIntrospection(true);
	s.work(-1.0);
}
开发者ID:RyokoAkizuki,项目名称:SWCUServerPlugin,代码行数:8,代码来源:RPCServer.cpp

示例2: main

int main(int argc, char* argv[])
{
  XmlRpc::setVerbosity(5);

  // Create the server socket on the specified port
  s.bindAndListen(0);

  // Enable introspection
  s.enableIntrospection(true);

  // Wait for requests indefinitely
  s.work(-1.0);

  return 0;
}
开发者ID:Aand1,项目名称:ROSCH,代码行数:15,代码来源:port_zero_server.cpp

示例3: main

int main(int argc, char* argv[]) 
{
    cout << "=========================================================" << endl;
    cout << "===               CHAT SERVER XMLRPC                  ===" << endl;
    cout << "===          Prof. Me. Petrônio Cândido               ===" << endl;
    cout << "===      Sistemas Distribuídos, FACIT 2012            ===" << endl;
    cout << "=========================================================" << endl;
 
  
    int port = 8000; 

    //XmlRpc::setVerbosity(5); 

    s.bindAndListen(port); 

    s.enableIntrospection(true); 

    s.work(-1.0); 
 
    /*
    
    ChatServer server;
    
    char *usr1 = "teste1";
    char *usr2 = "teste2";
    
    server.Registrar(usr1);
    
    server.Registrar(usr2);
   
    server.Enviar(usr2, usr1, "Teste1");
    server.Enviar(usr2, usr1, "Teste2");
    server.Enviar(usr2, usr1, "Teste3");
    
    mensagem m1 = server.Receber(usr1);    
    
    cout << m1.corpo << endl;
    
    string s;

    cin >> s;
    */

    //return 0; 



} 
开发者ID:petroniocandido,项目名称:SD,代码行数:48,代码来源:main.cpp

示例4: main

int main(int argc, char* argv[])
{
	std::vector<std::string> lst;

	ImageSearchServer imageSearch(&s);

	//std::string datasetPath = "/Users/jquequezana/workspace/files/flickr";
	//std::string dataExtension  = ".rgb";

	std::string datasetPath = "/Users/jquequezana/workspace/files/facedb2";
	std::string dataExtension  = ".sfi.pca";
	
    imageSearch.setConfiguration(datasetPath, dataExtension);
	//imageSearch.getRandomSet(datasetPath);
	imageSearch.query("01.jpg", 20 );
/*
	datasetPath = "C:/xampp/htdocs/cbir/Caltech-256";
	dataExtension  =   ".jpg.oRGBHistograms";

	imageSearch.setConfiguration(datasetPath, dataExtension);
	//imageSearch.getRandomSet(datasetPath);
	imageSearch.query("024_0056.jpg", 10 );*/



/*	datasetPath = "C:/xampp/htdocs/cbir/PIBAP";
	dataExtension  =   ".jpg.eGeometricFeatures2";

	imageSearch.setConfiguration(datasetPath, dataExtension);
	imageSearch.getRandomSet(datasetPath);
	imageSearch.query("1_2_1.jpg", 10 );*/

	int port = 9090;

	XmlRpc::setVerbosity(5);

	// Create the server socket on the specified port
	s.bindAndListen(port);

	// Enable introspection
	s.enableIntrospection(true);

	// Wait for requests indefinitely
	s.work(-1.0);

	return 0;
}
开发者ID:jquequezana,项目名称:satree,代码行数:47,代码来源:main.cpp

示例5: RPCListener

static DWORD RPCListener(LPVOID lpData) 
{
	int port=12345;

	//  XmlRpc::setVerbosity(5);

	// Create the server socket on the specified port
	s.bindAndListen(port);

	// Enable introspection
	s.enableIntrospection(true);

	// Wait for requests indefinitely
	s.work(-1.0);
	Log(1,L"XMLRPC Server exit");
	return 1;

}
开发者ID:hjgode,项目名称:ITE_xml_rpc,代码行数:18,代码来源:ITEScreenWatch.cpp

示例6: main

int main(int argc, char* argv[])
{
    if (argc != 2) {
        std::cerr << "Usage: HelloServer serverPort\n";
        return -1;
    }
    int port = atoi(argv[1]);

    XmlRpc::setVerbosity(5);

    // Create the server socket on the specified port
    s.bindAndListen(port, "");

    // Enable introspection
    s.enableIntrospection(true);

    // Wait for requests indefinitely
    s.work(-1.0);

    return 0;
}
开发者ID:Quiplit,项目名称:sems,代码行数:21,代码来源:HelloServer.cpp


注:本文中的XmlRpcServer::enableIntrospection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。