Curios issues with Editors

rodmc userprogoogle-139 at yahoo.co.uk
Thu Feb 9 07:46:21 EST 2006


As I said I am most likely to have made an error, being a newbie and
all that. Here is the offending function. I said i would not post
source code but there you go...

As I said I plan to change this function, so it will no doubt be out of
date quite soon.

def senddata(msg):
    host = "localhost"
    port = 21568
    buf = 1024
    addr = (host,port)

    UDPSock = socket(AF_INET,SOCK_DGRAM)
    UDPSock.sendto(msg,addr)
    UDPSock.close()

cheers,

rod




More information about the Python-list mailing list