Hi,

i managed to compile everything using MSYS2 for c++ and wrote a small 
example. The only Problem i have, is that AddListeningPort function of 
ServerBuilder does not work.

My code looks like this :

Code hier eingeben...

#include <iostream> 

#include "../protobuff/demo.pb.h"

#include "MathToolsImpl.h"

#include "grpc++/grpc++.h"


using namespace std;


int main()

{

    std::string server_address("127.0.0.1:50051");

    MathToolsImpl impl;

    grpc::ServerBuilder builder;

    builder.AddListeningPort(server_address,grpc::InsecureServerCredentials());

    builder.RegisterService(&impl);

    unique_ptr<grpc::Server> server(builder.BuildAndStart());

    std::cout << "Server started and listening";

    server->Wait();

}

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/a0c52618-359a-4c96-a0aa-a8fd98c051ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to