summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 44bd744..1bd7228 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -39,13 +39,16 @@ typedef struct {
39} ot_vector; 39} ot_vector;
40 40
41typedef struct { 41typedef struct {
42 ot_ip ip; 42 ot_byte data[8];
43 ot_dword port_flags;
44} ot_peer; 43} ot_peer;
45static const ot_byte PEER_FLAG_SEEDING = 0x80; 44static const ot_byte PEER_FLAG_SEEDING = 0x80;
46static const ot_byte PEER_FLAG_COMPLETED = 0x40; 45static const ot_byte PEER_FLAG_COMPLETED = 0x40;
47static const ot_byte PEER_FLAG_STOPPED = 0x20; 46static const ot_byte PEER_FLAG_STOPPED = 0x20;
48 47
48#define OT_SETIP( peer, ip ) MEMMOVE((peer),(ip),4);
49#define OT_SETPORT( peer, port ) MEMMOVE((peer),(port),2);
50#define OT_FLAG(peer) (((ot_byte*)(peer))[6])
51
49typedef struct { 52typedef struct {
50 ot_time base; 53 ot_time base;
51 unsigned long seed_count[ OT_POOLS_COUNT ]; 54 unsigned long seed_count[ OT_POOLS_COUNT ];