On January 29, the film is not enough to see the appetite. When you have dinner, your heart is not awkward, your wife looked at me. I am angry. She has an angry, just like a child, her mouth is then I started to train me, I don't care, the hippie smile is staring at her. She has two eyes to say "eat good food!", I just gave a desperate to the mouth of the vegetables, finally saw it. She famed, she couldn't help but laugh, huh, I still have a very handsome, my eyes will discharge, I have a lot of trouble when she laughs every day. After eating, I think that these two days are more ups and mainly for too long, I have been idle. I have been waiting for an opportunity to make an outbreak. I am so crazy. I think this thing is also anxious. This is not my fault, and the number of fingers is that there are only 10 people in the phrase group. It is really unwilling, this can be dried, and now I really have someone else. The days that have not been fighting is really difficult ... It's hard to solve "I am", I believe that "I don't fall in the snow", I have my own place, I have my own road ... ... these two days have been doing IM plug-ins, suddenly wants to study the technology of BT file transfer, here research is a record I chose that libbt is used as my research, because it is C code comparison Key to debug track, additional tools, Source Insight, Cygwin, GDB (1) Compiling the libt library under Cygwin This step does not encounter, mainly to compile two libraries OpenSSL and CURL two libraries, first configure Then, then directly change your Makefile directly to the path of the OpenSSL and CURL library CFLAGS: = - g -wall -i ../ incdude -i ../ OpenSSL-0.9.7E / Include - I $ (top_srcdir) / include, mainly plus this sentence, then edible, you may encounter a few questions, but also solve the syntax problem of C language, just do a small amount of modification, There is an error sha1 is not defined. This is OpenSSL problem. I haven't read it. I may not be less macro definition. I didn't engage him to define an empty macro, so I can compose three files Btcheck.exe, btlist. EXT, BTGET.EXE (2) BT file analysis function Description BT file format is still very interesting, you can refer to two files in libt / doc directory, I also found a Chinese instructions from the Internet, combined with the debug code to say To analyze BT file format, you can debug btlist.exe, first of all, BTS_CREATE_FILESTREAM This function is mainly to generate a BtStream structure. Here is some function pointer, and there is a file handle, then adjust Benc_Get_Object to take the first object. Below is the display of the object part btobject_dump, which is also very simple, is a recursive call to print out all objects, seeing this, you can see the parsing process of the BT file. I will remember this today, I will go skiing tomorrow and my friends, come back to see Bt Tracker's stuff, continue to follow the code.