#! /usr/bin/python #James Parks #06-29-04 #genericText_sender.py #the python sender for the Maya Collaboration Tool import socket import os def genericText_sender(text, host, port): remoteHostIP = socket.gethostbyname(host) localHost = socket.gethostname() print localHost sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((remoteHostIP, port)) sock.send(text) sock.close()