DaBeef wrote: > it is returning data such as 0x04.
But you need to know what kind of data the other side is sending, i.e. what kind of protocol it speaks. > I am new to python New and starting with socket/network programming ? Brave! > so this is a > pain for me, learning to do this in a language whose llibrary is > somewhat limited. You mean Pythons' library is limited? You know nothing... > >But instead I receieve .... So I wnat to convert to > the original data. Also can you define a constant in Python such as > #define value 0x04 You should look here: http://docs.python.org/ And probably here, too: http://diveintopython.org/toc/index.html What does your 'socket receiver' look like ? Stefan -- Stefan Näwe stefan_AT_naewe_DOT_de -- http://mail.python.org/mailman/listinfo/python-list