|
from xmlrpc.client import ServerProxy
|
|
import sys
|
|
|
|
if __name__ == '__main__':
|
|
username = input('Username: ')
|
|
with ServerProxy('http://localhost:9000') as proxy:
|
|
while True:
|
|
message = input('Message: ')
|
|
remote_call = proxy.post(message, username)
|
|
print(remote_call)
|