bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] /inet/tcp receive TCP packet bug


From: Andrew J. Schorr
Subject: Re: [bug-gawk] /inet/tcp receive TCP packet bug
Date: Thu, 31 Dec 2015 18:21:02 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

Hi,

On Tue, Dec 29, 2015 at 11:02:45PM +0300, Владимир Губарев wrote:
>  KK, next time i will use bug-gawk

If you encounter a bug, then please send email to bug-gawk. But if you
just have questions about how gawk works, then the comp.lang.awk usenet
group is probably a more appropriate forum.

Best,
Andy

> 1) I get that
> 2) Yes, they have length field always. But sometimes tiny more diffucult than 
> just few bytes. Case by case it can contain few fields with some links like 
> if first field<125 then it is length, if first field = 125 then next 4 bytes 
> is length(unsigned int32) etc.
> 
> Thank you for your answers! You helped me so much. Good luck to you and gawk!
> >Вторник, 29 декабря 2015, 14:37 -05:00 от "Andrew J. Schorr" 
> ><address@hidden>:
> >
> >Hi,
> >
> >Please CC bug-gawk in the future.
> >
> >On Tue, Dec 29, 2015 at 09:58:56PM +0300, Владимир Губарев wrote:
> >>  Yes, it is correct. 
> >> 1. I saw gawkextlib, it can be helpful for my situation?
> >
> >When used with the gawk master branch, gawkextlib's select library gives you 
> >the tools for non-blocking I/O multiplexing. This should work well with 
> >textual data, if you are willing to use non-released code.
> >
> >> 2. Well, i dont think you should add binary ops into lib. It would be 
> >> interesting awesome feature, but first of all, gawk is text- editor and it 
> >> is too specific task. I dont think somebody else needs that. It's just my 
> >> training project in my University, which is the realization that 
> >> everything is possible to do. 
> >
> >I think it's possible, but would probably require some additional library 
> >functions to support reading binary data. The XDR messages probably have a 
> >record-length field followed by binary data. So you need to do something 
> >like read the first 2 bytes to get the packet length, and then read the 
> >remainder of the record. Unless I'm missing something, that will require 
> >access to the read system call.
> >
> >Regards,
> >Andy
> 
> Regards,
> Vladimir

-- 
Andrew Schorr                      e-mail: address@hidden
Telemetry Investments, L.L.C.      phone:  917-305-1748
545 Fifth Ave, Suite 1108          fax:    212-425-5550
New York, NY 10017-3630



reply via email to

[Prev in Thread] Current Thread [Next in Thread]