Added venv and .ignore
This commit is contained in:
1 parent
ca9722eaa3
commit
6d065a193c
897 files changed
+143245
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# client.py
|
||||
import socket
|
||||
|
||||
HOST = "127.0.0.1"
|
||||
PORT = 5000
|
||||
|
||||
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
client_socket.connect((HOST, PORT))
|
||||
|
||||
client_socket.sendall(b"Hello from client!")
|
||||
|
||||
data = client_socket.recv(1024)
|
||||
print("Received:", data.decode())
|
||||
|
||||
client_socket.close()
|
||||
Reference in new issue
Block a user