diff --git a/frameserver/servertest.py b/frameserver/servertest.py new file mode 100644 index 0000000..3f681b6 --- /dev/null +++ b/frameserver/servertest.py @@ -0,0 +1,22 @@ +# Client program + +from socket import * + +# Set the socket parameters +host = "localhost" +port = 4321 +buf = 382 +addr = (host,port) + +# Create socket +UDPSock = socket(AF_INET,SOCK_DGRAM) + +# Send messages +while (1): + data = raw_input('>> ') + if not data: + break + else: + UDPSock.sendto(data,addr) + +UDPSock.close() \ No newline at end of file diff --git a/frameserver/servertest.sh~ b/frameserver/servertest.sh~ deleted file mode 100644 index c95a23d..0000000 --- a/frameserver/servertest.sh~ +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -while [ 1 ] -do - echo "$1" | cat - display | netcat -q 0.1 -u 127.0.0.1 4321 -done