더북(TheBook)
BUFFER_SIZE = 1024 ----- ➋

class Sender(Thread):
    def run(self) -> None:
        self.name = "Sender"
        client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) ----- ➌
        client.connect(SOCK_FILE)  ----- ➍

        messages = ["Hello", " ", "world!"]

        for msg in messages:            
            print(f"{current_thread().name}: 메시지 전송: '{msg}'")
            client.sendall(str.encode(msg))
        client.close()

class Receiver(Thread):
    def run(self) -> None:
        self.name = "Receiver"