C# Class OctoTorrent.Common.TorrentCreator

Inheritance: EditableTorrent
Afficher le fichier Open project: Eskat0n/OctoTorrent Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
CreateReader ( ) : OctoTorrent.Client.PieceWriters.PieceWriter

Private Methods

Méthode 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 méthode

public AbortCreation ( ) : void
Résultat void

BeginCreate() public méthode

public BeginCreate ( ITorrentFileSource fileSource, AsyncCallback callback, object asyncState ) : IAsyncResult
fileSource ITorrentFileSource
callback AsyncCallback
asyncState object
Résultat IAsyncResult

Create() public méthode

public Create ( ITorrentFileSource fileSource ) : BEncodedDictionary
fileSource ITorrentFileSource
Résultat BEncodedDictionary

Create() public méthode

public Create ( ITorrentFileSource fileSource, Stream stream ) : void
fileSource ITorrentFileSource
stream Stream
Résultat void

Create() public méthode

public Create ( ITorrentFileSource fileSource, string savePath ) : void
fileSource ITorrentFileSource
savePath string
Résultat void

CreateReader() protected méthode

protected CreateReader ( ) : OctoTorrent.Client.PieceWriters.PieceWriter
Résultat OctoTorrent.Client.PieceWriters.PieceWriter

EndCreate() public méthode

public EndCreate ( IAsyncResult result ) : BEncodedDictionary
result IAsyncResult
Résultat BEncodedDictionary

EndCreate() public méthode

public EndCreate ( IAsyncResult result, Stream stream ) : void
result IAsyncResult
stream Stream
Résultat void

EndCreate() public méthode

public EndCreate ( IAsyncResult result, string path ) : void
result IAsyncResult
path string
Résultat void

RecommendedPieceSize() public static méthode

public static RecommendedPieceSize ( IEnumerable files ) : int
files IEnumerable
Résultat int

RecommendedPieceSize() public static méthode

public static RecommendedPieceSize ( IEnumerable files ) : int
files IEnumerable
Résultat int

RecommendedPieceSize() public static méthode

public static RecommendedPieceSize ( IEnumerable files ) : int
files IEnumerable
Résultat int

RecommendedPieceSize() public static méthode

public static RecommendedPieceSize ( long totalSize ) : int
totalSize long
Résultat int

TorrentCreator() public méthode

public TorrentCreator ( ) : System
Résultat System