import socket

address=('127.0.0.1',9000)

client=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)


while True:    
    try:        
        client.sendto("client data", address)
        buf, addr=client.recvfrom(512)
        if buf:
            print buf
    except:
        pass



6ce3d76c0b86760adeac9b173eda62a95a370cf4
import socket

address=('127.0.0.1',9000)

client=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)


while True:    
    try:        
        client.sendto("client data", address)
        buf, addr=client.recvfrom(512)
        if buf:
            print buf
    except:
        pass


