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