mirror of
https://github.com/esiur/esiur-js.git
synced 2026-04-04 05:58:22 +00:00
1.6.0
This commit is contained in:
34
src/Net/Sockets/ISocket.js
Normal file
34
src/Net/Sockets/ISocket.js
Normal file
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
|
||||
import IDestructible from "../../Core/IDestructible.js";
|
||||
import SocketState from "./SocketState.js";
|
||||
|
||||
export default class ISocket extends IDestructible
|
||||
{
|
||||
//SocketState State { get; }
|
||||
//INetworkReceiver<ISocket> Receiver { get; set; }
|
||||
|
||||
constructor(){
|
||||
super();
|
||||
this.state = SocketState.Initial;
|
||||
}
|
||||
// get state() {}
|
||||
|
||||
sendAsync(message, offset, length) { }
|
||||
|
||||
send(message, offset, length) {}
|
||||
close() {}
|
||||
connect(hostname, port) {}
|
||||
|
||||
begin() {}
|
||||
beginAsync() {}
|
||||
acceptAsync() {}
|
||||
accept() {}
|
||||
|
||||
get remoteEndPoint(){}
|
||||
get localEndPoint() {}
|
||||
|
||||
hold() {}
|
||||
|
||||
unhold() {}
|
||||
}
|
||||
Reference in New Issue
Block a user