This commit is contained in:
Darren Horrocks
2014-01-26 13:46:24 -08:00
parent 97b4d1f539
commit 3b087052d6
2 changed files with 19 additions and 2 deletions
+9 -2
View File
@@ -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)
{
+10
View File
@@ -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)