I may be misreading but it appears that the current method collects an
integer array of the index positions of the packets within a message and
then composes the byte array in the order which the packets came in. The
new method sorts the packet array based off of each packet's Seq number and
then composes the byte array.
On Apr 23, 2014 2:00 AM, "Leonid Bugaev" <notifications@github.com> wrote:

> In raw_socket_listener/tcp_message.go:
>
> >
> > -	i := 0
> > -	for k, _ := range t.packets {
> > -		mk[i] = k
> > -		i++
> > -	}
> > -
> > -	sort.Ints(mk)
>
> What is the difference from sorting that i already doing?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/buger/gor/pull/94/files#r11887582>
> .
>