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/responses.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'diplomacy/communication/responses.py') diff --git a/diplomacy/communication/responses.py b/diplomacy/communication/responses.py index a928720..58edd6f 100644 --- a/diplomacy/communication/responses.py +++ b/diplomacy/communication/responses.py @@ -161,6 +161,13 @@ class DataGames(UniqueData): strings.DATA: parsing.SequenceType(parsing.JsonableClassType(DataGameInfo)) # list of game info. } +class DataPort(UniqueData): + """ Unique data containing a DAIDE port. """ + __slots__ = [] + params = { + strings.DATA: int # DAIDE port + } + class DataTimeStamp(UniqueData): """ Unique data containing a timestamp. """ __slots__ = [] -- cgit v1.2.3