me, 2.0: jose nazario
beauty and the street
more HiTB code: jtrace
went to the umma exhibit of
o'keefe paintings. i was more impressed with the imogen cunningham and
photographs. plus, it was crowded with the students from a class there
to hear someone talking about the paintings. i can never get used to
someone talking in a museum, i just prefer it to be silent.
now, on to the code ...
jtrace is some
libpcap/libdnet/libevent code which illustrates how to
asynchronously schedule events. in this case we schedule the send event
only if we receive a packet and schedule a receive only if we send.
when we receive a SYN-ACK or a RST packet back (this is a TCP trace tool),
we remove the final event and event_dispatch() returns, closing out the
$ sudo jtrace -d 18.104.22.168 -p 443
tracing from 22.214.171.124/24 to 126.96.36.199 on TCP port 443
1: 188.8.131.52 X!
2: 184.108.40.206 SA
trace completed. total execution time was 2 seconds.
the program doesn't work fully, but that's your take home assignment:
solve the fatal flaws in the program.
this afternoon i fly to san diego for toorcon. i'll
post what i can, keep an eye open for pictures.
Last modified: Thursday, Sep 23, 2004 @ 07:59am
copyright © 2002-2015 jose nazario, all rights reserved.