From: Francis Cianfrocca Date: 2007-11-29T22:37:04+09:00 Subject: Re: Custom Protocol ------=_Part_7714_15693809.1196343426924 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Nov 28, 2007 5:38 PM, thefed wrote: > I understand that I've asked a similar question that of custom packets. > But this is different. This is __protocol__. > > Has anyone constructed a custom protocol, such as UDT, in Ruby? > What would one use to construct a custom protocol? > > I took a very quick look at UDT and I think it's quite interesting. The basic approach has appeared before (people were discussing the "long-fat-pipe" problem in TCP even before the WWW came along), but I like the optimizations in this one. If I read their material correctly, UDT is based completely on UDP so there's no need for you to create another protocol at the IP level (analogous to TCP, UDP, ICMP, etc). That means you don't need raw sockets, which makes your task considerably easier. You don't need to construct the IP header either. Instead, implementing UDT is analogous to rebuilding TCP inside of sets of related UDP packets. Is there any particular reason you want to do this in Ruby rather than just wrapping a C or Java implementation? ------=_Part_7714_15693809.1196343426924--