import com.google.protobuf.RpcCallback;
public class Client {
private static void blockingConnect(InetSocketAddress addr) throws Exception {
RpcClient client = new RpcClient();
RpcChannel channel = client.blockingConnect(addr);
//sendRequest(channel, client);
BlockingInterface remoteService = Sudoku.SudokuService.newBlockingStub(channel);
SudokuRequest request = SudokuRequest.newBuilder().setCheckerboard("001010").build();
SudokuResponse response = remoteService.solve(null, request);
System.out.println(response);
channel.disconnect();
client.stop();
}