Interface IConnection
Inherited Members
System.IDisposable.Dispose()
Assembly: MonoTorrent.dll
Syntax
public interface IConnection : IDisposable
Properties
AddressBytes
Declaration
byte[] AddressBytes { get; }
Property Value
| Type |
Description |
| System.Byte[] |
|
CanReconnect
Declaration
bool CanReconnect { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Connected
Declaration
Property Value
| Type |
Description |
| System.Boolean |
|
EndPoint
Declaration
EndPoint EndPoint { get; }
Property Value
| Type |
Description |
| System.Net.EndPoint |
|
IsIncoming
Declaration
Property Value
| Type |
Description |
| System.Boolean |
|
Uri
Declaration
Property Value
| Type |
Description |
| System.Uri |
|
Methods
ConnectAsync()
Declaration
ReusableTask ConnectAsync()
Returns
| Type |
Description |
| ReusableTasks.ReusableTask |
|
ReceiveAsync(ByteBuffer, Int32, Int32)
Declaration
ReusableTask<int> ReceiveAsync(ByteBuffer buffer, int offset, int count)
Parameters
| Type |
Name |
Description |
| ByteBuffer |
buffer |
|
| System.Int32 |
offset |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| ReusableTasks.ReusableTask<System.Int32> |
|
SendAsync(ByteBuffer, Int32, Int32)
Declaration
ReusableTask<int> SendAsync(ByteBuffer buffer, int offset, int count)
Parameters
| Type |
Name |
Description |
| ByteBuffer |
buffer |
|
| System.Int32 |
offset |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| ReusableTasks.ReusableTask<System.Int32> |
|