Search
Preparing search index...
The search index is not available
pinus-rpc
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
TCPAcceptor
Class TCPAcceptor
Hierarchy
EventEmitter
TCPAcceptor
Index
Constructors
constructor
Properties
_interval
buffer
Msg
cb
closed
inited
interval
msg
Queues
pkg
Size
rpc
Debug
Log
rpc
Logger
server
sockets
default
Max
Listeners
Methods
add
Listener
clone
Error
close
emit
enqueue
event
Names
flush
get
Max
Listeners
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
process
Msg
process
Msgs
remove
All
Listeners
remove
Listener
set
Max
Listeners
listener
Count
Constructors
constructor
new TCPAcceptor
(
opts
:
AcceptorOpts
, cb
:
function
)
:
TCPAcceptor
Parameters
opts:
AcceptorOpts
cb:
function
(
tracer
:
Tracer
, msg
?:
any
, cb
?:
Function
)
:
void
Parameters
tracer:
Tracer
Optional
msg:
any
Optional
cb:
Function
Returns
void
Returns
TCPAcceptor
Properties
_interval
_interval
:
any
buffer
Msg
buffer
Msg
:
any
cb
cb
:
function
Type declaration
(
tracer
:
any
, msg
?:
any
, cb
?:
Function
)
:
void
Parameters
tracer:
any
Optional
msg:
any
Optional
cb:
Function
Returns
void
closed
closed
:
boolean
inited
inited
:
boolean
interval
interval
:
number
msg
Queues
msg
Queues
:
object
Type declaration
[
key:
string
]:
any
pkg
Size
pkg
Size
:
number
rpc
Debug
Log
rpc
Debug
Log
:
any
rpc
Logger
rpc
Logger
:
any
server
server
:
any
sockets
sockets
:
object
Type declaration
[
key:
string
]:
any
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
clone
Error
clone
Error
(
origin
:
object
)
:
object
Parameters
origin:
object
msg
:
any
stack
:
any
Returns
object
msg
:
any
stack
:
any
close
close
(
)
:
void
Returns
void
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
enqueue
enqueue
(
socket
:
any
, acceptor
:
TCPAcceptor
, msg
:
Msg
)
:
void
Parameters
socket:
any
acceptor:
TCPAcceptor
msg:
Msg
Returns
void
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
flush
flush
(
acceptor
:
TCPAcceptor
)
:
void
Parameters
acceptor:
TCPAcceptor
Returns
void
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listen
listen
(
port
:
string
|
number
)
:
void
Parameters
port:
string
|
number
Returns
void
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
on
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
process
Msg
process
Msg
(
socket
:
any
, acceptor
:
TCPAcceptor
, pkg
:
AcceptorPkg
)
:
void
Parameters
socket:
any
acceptor:
TCPAcceptor
pkg:
AcceptorPkg
Returns
void
process
Msgs
process
Msgs
(
socket
:
any
, acceptor
:
TCPAcceptor
, pkgs
:
Array
<
AcceptorPkg
>
)
:
void
Parameters
socket:
any
acceptor:
TCPAcceptor
pkgs:
Array
<
AcceptorPkg
>
Returns
void
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
TCPAcceptor
constructor
_interval
buffer
Msg
cb
closed
inited
interval
msg
Queues
pkg
Size
rpc
Debug
Log
rpc
Logger
server
sockets
default
Max
Listeners
add
Listener
clone
Error
close
emit
enqueue
event
Names
flush
get
Max
Listeners
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
process
Msg
process
Msgs
remove
All
Listeners
remove
Listener
set
Max
Listeners
listener
Count