void runServer()
{
	int port = 7776;
	XmlRpc::setVerbosity(5);
	s.bindAndListen(port);
	s.enableIntrospection(true);
	s.work(-1.0);
}
Example #2
0
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;
}
Example #3
0
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; 



} 
Example #4
0
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;
}
Example #5
0
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;

}
Example #6
0
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;
}