3 # SPDX-License-Identifier: GPL-2.0
6 import sys
, os
, os
.path
, getopt
15 try: s
= sock
.recv(rem
)
16 except (socket
.error
), e
: return ''
25 except (socket
.error
), e
: n
= 0
32 serverPort
= int(sys
.argv
[1])
33 HostName
= socket
.gethostname()
35 # create active socket
36 sock
= socket
.socket(socket
.AF_INET6
, socket
.SOCK_STREAM
)
38 sock
.connect((HostName
, serverPort
))
39 except socket
.error
as e
: