An attempt at working the TCP sockets in python.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
501 B

2 years ago
from multiprocessing.context import Process
from multiprocessing.spawn import freeze_support
from time import sleep
from echo_client import EchoClient
from echo_server import EchoServer
if __name__ == '__main__':
# freeze_support()
s = Process(target=EchoServer)
s.start()
sleep(1) # need to figure out a way to make this intelligent.
c = EchoClient()
c.echo("Now is the time for all good men.")
c.echo("You load 14 tons, and what do you get?")
c.echo("!quit")