From 08b9469e2c71e06fdd70d607f281686746755073 Mon Sep 17 00:00:00 2001 From: Satya Ortiz-Gagne Date: Mon, 10 Jun 2019 10:20:39 -0400 Subject: DAIDE - Added connection_handler and server - Ability to open and close port when DAIDE games are started and stopped - Can get the DAIDE port using a request --- diplomacy/communication/requests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'diplomacy/communication/requests.py') diff --git a/diplomacy/communication/requests.py b/diplomacy/communication/requests.py index b7f7671..a6bb622 100644 --- a/diplomacy/communication/requests.py +++ b/diplomacy/communication/requests.py @@ -114,6 +114,17 @@ class _AbstractGameRequest(_AbstractChannelRequest): # Connection requests. # ==================== +class GetDaidePort(_AbstractRequest): + """ Get game DAIDE port """ + __slots__ = ['game_id'] + params = { + strings.GAME_ID: str + } + + def __init__(self, **kwargs): + self.game_id = None + super(GetDaidePort, self).__init__(**kwargs) + class SignIn(_AbstractRequest): """ SignIn request. Expected response: responses.DataToken -- cgit v1.2.3