Skip to content
Snippets Groups Projects
Commit 4cf98a6e authored by Stranger3333's avatar Stranger3333
Browse files

modify input

parent d1f6b989
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,9 @@ import socket ...@@ -2,8 +2,9 @@ import socket
import sys import sys
import time import time
import os import os
HOST = '127.0.0.1' HOST = sys.argv[1]
PORT = 5566 PORT = int(sys.argv[2])
print(HOST,PORT)
class Node: class Node:
def client(self): def client(self):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment