added grpc to get emane event channel being used

This commit is contained in:
Blake Harnden 2020-02-14 16:22:28 -08:00
parent ebafa228ff
commit 1375af51cb
4 changed files with 38 additions and 2 deletions

View file

@ -26,6 +26,10 @@ from core.api.grpc.configservices_pb2 import (
SetNodeConfigServiceRequest,
SetNodeConfigServiceResponse,
)
from core.api.grpc.core_pb2 import (
GetEmaneEventChannelRequest,
GetEmaneEventChannelResponse,
)
class InterfaceHelper:
@ -1139,6 +1143,10 @@ class CoreGrpcClient:
)
return self.stub.SetNodeConfigService(request)
def get_emane_event_channel(self, session_id: int) -> GetEmaneEventChannelResponse:
request = GetEmaneEventChannelRequest(session_id=session_id)
return self.stub.GetEmaneEventChannel(request)
def connect(self) -> None:
"""
Open connection to server, must be closed manually.