Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Ti
Network
Socket
TCP
Interface TCP
Hierarchy
IOStream
TCP
Index
Properties
accepted
bubbleParent
connected
error
host
listenQueueSize
port
state
timeout
Methods
accept
addEventListener
applyProperties
close
connect
fireEvent
getAccepted
getBubbleParent
getConnected
getError
getHost
getListenQueueSize
getPort
getState
getTimeout
isReadable
isWriteable
listen
read
removeEventListener
setAccepted
setBubbleParent
setConnected
setError
setHost
setListenQueueSize
setPort
setTimeout
write
Properties
public
accepted
:
(...args: any[]) => any
public
bubbleParent
:
boolean
public
connected
:
(...args: any[]) => any
public
error
:
(...args: any[]) => any
public
host
:
string
public
listenQueueSize
:
number
public
port
:
number
public
state
:
number
public
timeout
:
number
Methods
public
accept
(
options
:
AcceptDict
)
Parameters
options:
AcceptDict
public
addEventListener
(
name
:
string
, callback
:
(...args: any[]) => any
)
Parameters
name:
string
callback:
(...args: any[]) => any
public
applyProperties
(
props
:
Dictionary
)
Parameters
props:
Dictionary
public
close
(
)
public
connect
(
)
public
fireEvent
(
name
:
string
, event
:
Dictionary
)
Parameters
name:
string
event:
Dictionary
public
getAccepted
(
)
:
(...args: any[]) => any
Returns
(...args: any[]) => any
public
getBubbleParent
(
)
:
boolean
Returns
boolean
public
getConnected
(
)
:
(...args: any[]) => any
Returns
(...args: any[]) => any
public
getError
(
)
:
(...args: any[]) => any
Returns
(...args: any[]) => any
public
getHost
(
)
:
string
Returns
string
public
getListenQueueSize
(
)
:
number
Returns
number
public
getPort
(
)
:
number
Returns
number
public
getState
(
)
:
number
Returns
number
public
getTimeout
(
)
:
number
Returns
number
public
isReadable
(
)
:
boolean
Returns
boolean
public
isWriteable
(
)
:
boolean
Returns
boolean
public
listen
(
)
public
read
(
buffer
:
Buffer
, offset
?:
number
, length
?:
number
)
:
number
Parameters
buffer:
Buffer
offset?:
number
optional
length?:
number
optional
Returns
number
public
removeEventListener
(
name
:
string
, callback
:
(...args: any[]) => any
)
Parameters
name:
string
callback:
(...args: any[]) => any
public
setAccepted
(
accepted
:
(...args: any[]) => any
)
Parameters
accepted:
(...args: any[]) => any
public
setBubbleParent
(
bubbleParent
:
boolean
)
Parameters
bubbleParent:
boolean
public
setConnected
(
connected
:
(...args: any[]) => any
)
Parameters
connected:
(...args: any[]) => any
public
setError
(
error
:
(...args: any[]) => any
)
Parameters
error:
(...args: any[]) => any
public
setHost
(
host
:
string
)
Parameters
host:
string
public
setListenQueueSize
(
listenQueueSize
:
number
)
Parameters
listenQueueSize:
number
public
setPort
(
port
:
number
)
Parameters
port:
number
public
setTimeout
(
timeout
:
number
)
Parameters
timeout:
number
public
write
(
buffer
:
Buffer
, offset
?:
number
, length
?:
number
)
:
number
Parameters
buffer:
Buffer
offset?:
number
optional
length?:
number
optional
Returns
number
Globals
Global
Ti
Ti.Android
Ti.Android.Calendar
Ti.App
Ti.App.iOS
Ti.Calendar
Ti.Cloud
Ti.Contacts
Ti.Contacts.Tizen
Ti.Database
Ti.Facebook
Ti.Filesystem
Ti.Geolocation
Ti.Geolocation.Android
Ti.Map
Ti.Media
Ti.Network
Ti.Network.Socket
Ti.Platform
Ti.UI
Ti.UI.Android
Ti.UI.MobileWeb
Ti.UI.iOS
Ti.UI.iPad
Ti.UI.iPhone
Ti.XML
CLOSED
CONNECTED
ERROR
INITIALIZED
LISTENING
bubbleParent
TCP
accepted
bubbleParent
connected
error
host
listenQueueSize
port
state
timeout
accept
addEventListener
applyProperties
close
connect
fireEvent
getAccepted
getBubbleParent
getConnected
getError
getHost
getListenQueueSize
getPort
getState
getTimeout
isReadable
isWriteable
listen
read
removeEventListener
setAccepted
setBubbleParent
setConnected
setError
setHost
setListenQueueSize
setPort
setTimeout
write
UDP
addEventListener
applyProperties
createTCP
createUDP
fireEvent
getBubbleParent
removeEventListener
setBubbleParent