C# Class OctoTorrent.Common.TorrentCreator

Inheritance: EditableTorrent
Mostra file Open project: Eskat0n/OctoTorrent Class Usage Examples

Public Methods

Method Description
AbortCreation ( ) : void
BeginCreate ( ITorrentFileSource fileSource, AsyncCallback callback, object asyncState ) : IAsyncResult
Create ( ITorrentFileSource fileSource ) : BEncodedDictionary
Create ( ITorrentFileSource fileSource, Stream stream ) : void
Create ( ITorrentFileSource fileSource, string savePath ) : void
EndCreate ( IAsyncResult result ) : BEncodedDictionary
EndCreate ( IAsyncResult result, Stream stream ) : void
EndCreate ( IAsyncResult result, string path ) : void
RecommendedPieceSize ( IEnumerable files ) : int
RecommendedPieceSize ( IEnumerable files ) : int
RecommendedPieceSize ( IEnumerable files ) : int
RecommendedPieceSize ( long totalSize ) : int
TorrentCreator ( ) : System

Protected Methods

Method Description
CreateReader ( ) : OctoTorrent.Client.PieceWriters.PieceWriter

Private Methods

Method Description
AddCommonStuff ( BEncodedDictionary torrent ) : void
BeginCreate ( MainLoopJob task, AsyncCallback callback, object asyncState ) : IAsyncResult
CalcPiecesHash ( List files, OctoTorrent.Client.PieceWriters.PieceWriter writer ) : byte[]
Create ( string name, List files ) : BEncodedDictionary
CreateMultiFileTorrent ( BEncodedDictionary dictionary, List mappings, OctoTorrent.Client.PieceWriters.PieceWriter writer, string name ) : void
CreateSingleFileTorrent ( BEncodedDictionary dictionary, List mappings, OctoTorrent.Client.PieceWriters.PieceWriter writer, string name ) : void
RaiseHashed ( TorrentCreatorEventArgs e ) : void
ToFileInfoDict ( TorrentFile file ) : BEncodedValue
ToTorrentFile ( OctoTorrent.Common.FileMapping mapping ) : TorrentFile
Validate ( IList maps ) : void

Method Details

AbortCreation() public method

public AbortCreation ( ) : void
return void

BeginCreate() public method

public BeginCreate ( ITorrentFileSource fileSource, AsyncCallback callback, object asyncState ) : IAsyncResult
fileSource ITorrentFileSource
callback AsyncCallback
asyncState object
return IAsyncResult

Create() public method

public Create ( ITorrentFileSource fileSource ) : BEncodedDictionary
fileSource ITorrentFileSource
return BEncodedDictionary

Create() public method

public Create ( ITorrentFileSource fileSource, Stream stream ) : void
fileSource ITorrentFileSource
stream Stream
return void

Create() public method

public Create ( ITorrentFileSource fileSource, string savePath ) : void
fileSource ITorrentFileSource
savePath string
return void

CreateReader() protected method

protected CreateReader ( ) : OctoTorrent.Client.PieceWriters.PieceWriter
return OctoTorrent.Client.PieceWriters.PieceWriter

EndCreate() public method

public EndCreate ( IAsyncResult result ) : BEncodedDictionary
result IAsyncResult
return BEncodedDictionary

EndCreate() public method

public EndCreate ( IAsyncResult result, Stream stream ) : void
result IAsyncResult
stream Stream
return void

EndCreate() public method

public EndCreate ( IAsyncResult result, string path ) : void
result IAsyncResult
path string
return void

RecommendedPieceSize() public static method

public static RecommendedPieceSize ( IEnumerable files ) : int
files IEnumerable
return int

RecommendedPieceSize() public static method

public static RecommendedPieceSize ( IEnumerable files ) : int
files IEnumerable
return int

RecommendedPieceSize() public static method

public static RecommendedPieceSize ( IEnumerable files ) : int
files IEnumerable
return int

RecommendedPieceSize() public static method

public static RecommendedPieceSize ( long totalSize ) : int
totalSize long
return int

TorrentCreator() public method

public TorrentCreator ( ) : System
return System