Files
protocol_analyzer_vectorized/old/sovket_client.py
2024-04-24 13:28:38 -04:00

16 lines
263 B
Python

import socket
socket_path = '/tmp/my_socket'
# Create the Unix socket server
client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
client.bind(socket_path)
client.send("hello".encode())
while True:
data, addr = client.recvfrom(1024)
print(data)