mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-30 23:59:15 +01:00
adds client example
This commit is contained in:
@@ -101,9 +101,8 @@ def get_method(index):
|
||||
|
||||
def main():
|
||||
args = build_arg_parser().parse_args()
|
||||
print(args)
|
||||
|
||||
bind_socket = socket.socket()
|
||||
bind_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
|
||||
bind_socket.bind(("" if args.b else "localhost", args.p))
|
||||
bind_socket.listen(5)
|
||||
|
||||
@@ -141,7 +140,6 @@ def main():
|
||||
|
||||
finally:
|
||||
if secure_socket:
|
||||
secure_socket.shutdown(socket.SHUT_RDWR)
|
||||
secure_socket.close()
|
||||
|
||||
if not args.i:
|
||||
|
||||
Reference in New Issue
Block a user