Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: UDP Multicast to TCP

From: lmeyer:bltech:za at: 19-Nov-2009 19:42

Hi Although the TCPtoMulticast and MulticastToUDP applications are working, we have picked up an small problem. The Payload size of the UDP output packets after the conversion does not seem to be exactly the same as the incoming TCP Payload size (always a couple of bytes extra). The larger the incoming TCP payload size, the more bytes seem to be added to the output UDP payload. We have confirmed this using Windump (windows version of tcpdump). For example, a 16 bytes TCP payload becomes a 17 bytes UDP payload A 771 bytes payload becomes a 778 UDP payload. Does anyone have any idea what could be causing the additional bytes in the UDP payload? Here is the TCPtoUDP script: REBOL[Title: "Port 4550"] listen: open/no-wait tcp://:4550 waitports: [listen] odata: open udp://239.2.0.80:6550 ; udp broadcast port set-modes odata [multicast-ttl: 10] set-modes odata [multicast-interface: 192.168.20.23] forever [ port: wait waitports either same? port listen [ active-port: first listen append waitports active-port ] [ incoming-from-remote: copy port either incoming-from-remote [ insert odata incoming-from-remote ;print incoming-from-remote ] [ remove find waitports port close port ] ] ] Thank you Leon PS - I have removed the "read requests" from my email now- sorry if it caused any problems yesterday.