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 220.127.116.11 -p 443
tracing from 18.104.22.168/24 to 22.214.171.124 on TCP port 443
1: 126.96.36.199 X!
2: 188.8.131.52 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.
next Friday, Sep 24, 2004 @ 09:53am |
previous Wednesday, Sep 22, 2004 @ 08:54am
Last modified: Thursday, Sep 23, 2004 @ 07:59am
copyright © 2002-2005 jose nazario, all rights reserved.