frappy/protocol/interface/tcp.py: use SECoP_DEFAULT_PORT
import SECoP_DEFAULT_PORT instead of defining DEF_PORT Change-Id: I02ee420d200f90b61f8c79e1cb5ee3e0913955e9 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/31913 Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
parent
4f28e5555c
commit
acc7580dc6
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# *****************************************************************************
|
# *****************************************************************************
|
||||||
# This program is free software; you can redistribute it and/or modify it under
|
# This program is free software; you can redistribute it and/or modify it under
|
||||||
# the terms of the GNU General Public License as published by the Free Software
|
# the terms of the GNU General Public License as published by the Free Software
|
||||||
@ -32,13 +31,12 @@ import time
|
|||||||
from frappy.datatypes import BoolType, StringType
|
from frappy.datatypes import BoolType, StringType
|
||||||
from frappy.errors import SECoPError
|
from frappy.errors import SECoPError
|
||||||
from frappy.lib import formatException, formatExtendedStack, \
|
from frappy.lib import formatException, formatExtendedStack, \
|
||||||
formatExtendedTraceback
|
formatExtendedTraceback, SECoP_DEFAULT_PORT
|
||||||
from frappy.properties import Property
|
from frappy.properties import Property
|
||||||
from frappy.protocol.interface import decode_msg, encode_msg_frame, get_msg
|
from frappy.protocol.interface import decode_msg, encode_msg_frame, get_msg
|
||||||
from frappy.protocol.messages import ERRORPREFIX, HELPREPLY, HELPREQUEST, \
|
from frappy.protocol.messages import ERRORPREFIX, HELPREPLY, HELPREQUEST, \
|
||||||
HelpMessage
|
HelpMessage
|
||||||
|
|
||||||
DEF_PORT = 10767
|
|
||||||
MESSAGE_READ_SIZE = 1024
|
MESSAGE_READ_SIZE = 1024
|
||||||
HELP = HELPREQUEST.encode()
|
HELP = HELPREQUEST.encode()
|
||||||
|
|
||||||
@ -201,7 +199,7 @@ class TCPServer(DualStackTCPServer):
|
|||||||
# for cfg-editor
|
# for cfg-editor
|
||||||
configurables = {
|
configurables = {
|
||||||
'uri': Property('hostname or ip address for binding', StringType(),
|
'uri': Property('hostname or ip address for binding', StringType(),
|
||||||
default=f'tcp://{DEF_PORT}', export=False),
|
default=f'tcp://{SECoP_DEFAULT_PORT}', export=False),
|
||||||
'detailed_errors': Property('Flag to enable detailed Errorreporting.', BoolType(),
|
'detailed_errors': Property('Flag to enable detailed Errorreporting.', BoolType(),
|
||||||
default=False, export=False),
|
default=False, export=False),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user