Browse Source

implement ping functionality

master
Wayne 5 years ago
parent
commit
0126299b02
  1. 3
      src/server.py

3
src/server.py

@ -18,6 +18,9 @@ class Handler_TCPServer(socketserver.BaseRequestHandler):
# just send back ACK for data arrival confirmation
self.request.sendall("ACK from TCP Server".encode())
def ping(self, param):
return "PONG"
if __name__ == "__main__":
HOST, PORT = "localhost", 9999

Loading…
Cancel
Save