hunt-raft ~master (2020-07-15T10:51:20Z)
Home
Dub
Repo
Base
common
network
base
Undocumented in source.
class
Base {
enum
PACK_HEAD_LEN
;
this
(NetSocket sock, MessageReceiver receiver);
void
onRead
(ubyte[] data);
void
onClose
();
NetSocket
sock
;
int
msgLen
;
ubyte
[]
buffer
;
int
headLen
;
ubyte
[
PACK_HEAD_LEN
]
header
;
MessageReceiver
receiver
;
}
Constructors
this
this
(NetSocket sock, MessageReceiver receiver)
Undocumented in source.
Members
Functions
onClose
void
onClose
()
Undocumented in source. Be warned that the author may not have intended to support it.
onRead
void
onRead
(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
PACK_HEAD_LEN
enum
PACK_HEAD_LEN
;
Undocumented in source.
Variables
buffer
ubyte
[]
buffer
;
Undocumented in source.
headLen
int
headLen
;
Undocumented in source.
header
ubyte
[
PACK_HEAD_LEN
]
header
;
Undocumented in source.
msgLen
int
msgLen
;
Undocumented in source.
receiver
MessageReceiver
receiver
;
Undocumented in source.
sock
NetSocket
sock
;
Undocumented in source.
Meta
Source
See Implementation
common
network
base
classes
Base