message: Add a python helper for constructing O2 compliant headers
diff: @@ -49,6 +49,7 @@ if len(theMessage)<1:
  if len(theMessage)%2==1:
  theMessage.append("")
  +# fill in the header information
  for idx in range(0, len(theMessage)):
  if idx%2:
  continue
  @@ -56,23 +57,7 @@ for idx in range(0, len(theMessage)):
  origin=theMessage[idx][8:12]
  if origin[:3]=="***":
  origin=origin[:3]+'\0'
  - header=struct.pack(
  - "<4sIII8sQ8s8s4sI8sQQ"
  - ,"O2O2"
  - ,80
  - ,0
  - ,0
  - ,"DataHDR"
  - ,0
  - ,""
  - ,theMessage[idx]
  - ,origin
  - ,0
  - ,""
  - ,0
  - ,payloadSize
  - )
  - theMessage[idx]=header
  + theMessage[idx]=o2header.make(theMessage[idx],origin,payloadSize);
  # Prepare our context and sockets
  context = zmq.Context()
  