public class Ed2kFilelink
Public Class Ed2kFilelink
Dim instance As Ed2kFilelink
public ref class Ed2kFilelink
type Ed2kFilelink = class end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim link As New Ed2kFilelink("ed2k://|file|test_file.mkv|138088|233C571EDD99FE033B8A6105E50DAA65|h=6ZMJUBO2JJYTDZXBOIOGM7WPP6MFT6A6|p=264E6F6B587985D87EB0157A2A7BAF40:17B9A4D1DCE0E4C2B672DF257145E98A|s=http://website/myfile.mp4|s=http://another.website/myfile.mp4|/|sources,1.1.1.1:80,hostname:80|/")
Console.WriteLine($"{NameOf(link.FileName)}: {link.FileName}")
Console.WriteLine($"{NameOf(link.FileSize)}: {link.FileSize}")
Console.WriteLine($"{NameOf(link.FileHash)}: {link.FileHash}")
Console.WriteLine($"{NameOf(link.RootHash)}: {link.RootHash}")
Console.WriteLine($"{NameOf(link.HashSet)}: {String.Join(", ", link.HashSet)}")
Console.WriteLine($"{NameOf(link.Sources)}: {String.Join(", ", From source As DnsEndPoint In link.Sources Select $"{source.Host}:{source.Port}")}")
Console.WriteLine($"{NameOf(link.HttpSources)}: {String.Join(", ", link.HttpSources)}")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Ed2kFilelink | Initializes a new instance of the Ed2kFilelink class. |
FileHash | Gets the MD4 file hash. For every file shared in the eDonkey network an unique identification value is created using the MD4 algorithm. This value is called file hash and is contained in every standard eD2k link. |
FileName | Gets the file name. |
FileSize | Gets the file size. |
HashSet | Gets the MD4 hash set. A hash set ensure that this file is always correct and helps spreading new and rare files. |
HttpSources | Gets the known http sources to the link, providing instant website sources for the download. |
RootHash | Gets the MD4 root hash. The Root Hash allows advanced error correction and check methods by supplying a trusted value for AICH (Intelligent Corruption Handling). |
Sources | Gets the known eMule sources to the link, in the format [IP:port] or [hostname:port], providing instant sources for the download. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
IsValidLink | Determine whether the specified eD2K link has a valid syntax. |
ToString |
Returns a String that represents this Ed2kFilelink.
(Overrides ObjectToString) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |