mirror of
https://github.com/bizzehdee/bzTorrent.git
synced 2026-10-27 12:12:03 +08:00
This commit is contained in:
+9
-2
@@ -56,7 +56,7 @@ namespace System.Net.Torrent
|
||||
public bool RemoteUsesFast { get; private set; }
|
||||
public bool UseFast { get; set; }
|
||||
public String LocalPeerID { get; set; }
|
||||
public String RemotePeerID { get; set; }
|
||||
public String RemotePeerID { get; private set; }
|
||||
public String Hash { get; set; }
|
||||
|
||||
public event Action<PeerWireClient> KeepAlive;
|
||||
@@ -144,7 +144,14 @@ namespace System.Net.Torrent
|
||||
|
||||
byte[] sendBuf = (new[] { (byte)_bitTorrentProtocolHeader.Length }).Concat(_bitTorrentProtocolHeader).Concat(reservedBytes).Concat(hash).Concat(peerId).ToArray();
|
||||
|
||||
Socket.Send(sendBuf);
|
||||
try
|
||||
{
|
||||
Socket.Send(sendBuf);
|
||||
}
|
||||
catch (SocketException ex)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (UseExtended)
|
||||
{
|
||||
|
||||
@@ -8,6 +8,16 @@ Open source bittorrent scraper and peer wire implementation written in C#
|
||||
- [x] HTTP Announce
|
||||
- [x] HTTP Scrape
|
||||
- [x] PeerWire (TCP) Client
|
||||
- [x] Choke
|
||||
- [x] Unchoke
|
||||
- [x] Interested
|
||||
- [x] Not Interested
|
||||
- [x] Have
|
||||
- [x] Bitfield (Optional obsfucation)
|
||||
- [x] Request
|
||||
- [x] Piece
|
||||
- [x] Fast Protocol Extensions
|
||||
- [x] Extended Protocol Extensions
|
||||
- [ ] Local Peer Discovery
|
||||
- [x] Peer Exchange (utPEX)
|
||||
- [x] Trackerless Metadata (utMetadata)
|
||||
Reference in New Issue
Block a user