I have to code a Python server which listen on the port 5000 and interpret data.
Here the code :
# -*- coding: utf-8 -*-
import binascii
import socket
UDP_IP = ""
UDP_PORT = 5000
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while true:
data, addr = sock.recvfrom(150)
Currently I can't interpret data, i try this funtion : binascii.b2a_uu() without result. Data in all frame have the same size, and are coded on 32 bits.
Thank you for your help.
Nicolas.
Edit : I use Python 2.7