import grpc
from concurrent import futures
import time

import ssdk_pb2
import ssdk_pb2_grpc

import ssdk

class CameraServicer(ssdk_pb2_grpc.CameraServicer):
    def TakePhoto(self, request, context):
        response = ssdk_pb2.Number()
        response.value = ssdk.take_photo(request.value,request.name)
        return response

server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))

ssdk_pb2_grpc.add_CameraServicer_to_server(
        CameraServicer(), server)

print("Starting server. Listening on port 50051.")
server.add_insecure_port('[::]:50051')
server.start()

try:
    while True:
        time.sleep(86400)
except KeyboardInterrupt:
    server.stop()

0262b6a7456db068cee37a114d643c1758861f58
<mask token>


class CameraServicer(ssdk_pb2_grpc.CameraServicer):

    def TakePhoto(self, request, context):
        response = ssdk_pb2.Number()
        response.value = ssdk.take_photo(request.value, request.name)
        return response


<mask token>

<mask token>


class CameraServicer(ssdk_pb2_grpc.CameraServicer):

    def TakePhoto(self, request, context):
        response = ssdk_pb2.Number()
        response.value = ssdk.take_photo(request.value, request.name)
        return response


<mask token>
ssdk_pb2_grpc.add_CameraServicer_to_server(CameraServicer(), server)
print('Starting server. Listening on port 50051.')
server.add_insecure_port('[::]:50051')
server.start()
try:
    while True:
        time.sleep(86400)
except KeyboardInterrupt:
    server.stop()

<mask token>


class CameraServicer(ssdk_pb2_grpc.CameraServicer):

    def TakePhoto(self, request, context):
        response = ssdk_pb2.Number()
        response.value = ssdk.take_photo(request.value, request.name)
        return response


server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
ssdk_pb2_grpc.add_CameraServicer_to_server(CameraServicer(), server)
print('Starting server. Listening on port 50051.')
server.add_insecure_port('[::]:50051')
server.start()
try:
    while True:
        time.sleep(86400)
except KeyboardInterrupt:
    server.stop()

import grpc
from concurrent import futures
import time
import ssdk_pb2
import ssdk_pb2_grpc
import ssdk


class CameraServicer(ssdk_pb2_grpc.CameraServicer):

    def TakePhoto(self, request, context):
        response = ssdk_pb2.Number()
        response.value = ssdk.take_photo(request.value, request.name)
        return response


server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
ssdk_pb2_grpc.add_CameraServicer_to_server(CameraServicer(), server)
print('Starting server. Listening on port 50051.')
server.add_insecure_port('[::]:50051')
server.start()
try:
    while True:
        time.sleep(86400)
except KeyboardInterrupt:
    server.stop()

import grpc
from concurrent import futures
import time

import ssdk_pb2
import ssdk_pb2_grpc

import ssdk

class CameraServicer(ssdk_pb2_grpc.CameraServicer):
    def TakePhoto(self, request, context):
        response = ssdk_pb2.Number()
        response.value = ssdk.take_photo(request.value,request.name)
        return response

server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))

ssdk_pb2_grpc.add_CameraServicer_to_server(
        CameraServicer(), server)

print("Starting server. Listening on port 50051.")
server.add_insecure_port('[::]:50051')
server.start()

try:
    while True:
        time.sleep(86400)
except KeyboardInterrupt:
    server.stop()
