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