mirror of
https://github.com/zhangkong828/DHTSpider.git
synced 2026-10-17 04:30:44 +08:00
17 lines
315 B
C#
17 lines
315 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Tancoder.Torrent.Client.Messages
|
|
{
|
|
interface IMessage
|
|
{
|
|
int ByteLength { get;}
|
|
|
|
byte[] Encode();
|
|
int Encode(byte[] buffer, int offset);
|
|
|
|
void Decode(byte[] buffer, int offset, int length);
|
|
}
|
|
}
|