13 lines
255 B
Haxe
13 lines
255 B
Haxe
package leenkx.network.torrent.peer;
|
|
|
|
import haxe.io.Bytes;
|
|
|
|
interface IPeerChannel {
|
|
function send(data:Bytes):Void;
|
|
function close():Void;
|
|
var isOpen(get, never):Bool;
|
|
var onOpen:Void -> Void;
|
|
var onData:Bytes -> Void;
|
|
var onClose:Void -> Void;
|
|
}
|