*port option
*tcp
*udp
- -work out how and when to send requests back to epoll
- -struct with partially written buffer? <-- THIS PREFERABLE
- -struct with request parameters
- -i.e. hash request
- -infohash
- -peer id
- -etc.
*start
- *register shutdown
- *spawn threads?
- -request loops
- *epoll fds
+ *net_queue
-strategy for partial requests - HERE
- -net_queue
-net_wait
-stop
-figure out how to do this properly
-loop
- -handshake handling? - HERE
+ *handshake
-pointers to peer functions
-peer
*rate limit interface