Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Ti
Network
Socket
UDP
Interface UDP
Hierarchy
IOStream
UDP
Index
Properties
bubbleParent
data
error
port
started
Methods
addEventListener
applyProperties
close
fireEvent
getBubbleParent
getData
getError
getPort
getStarted
isReadable
isWriteable
read
removeEventListener
sendBytes
sendString
setBubbleParent
setData
setError
setPort
setStarted
start
stop
write
Properties
public
bubbleParent
:
boolean
public
data
:
(...args: any[]) => any
public
error
:
(...args: any[]) => any
public
port
:
number
public
started
:
(...args: any[]) => any
Methods
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
fireEvent
(
name
:
string
, event
:
Dictionary
)
Parameters
name:
string
event:
Dictionary
public
getBubbleParent
(
)
:
boolean
Returns
boolean
public
getData
(
)
:
(...args: any[]) => any
Returns
(...args: any[]) => any
public
getError
(
)
:
(...args: any[]) => any
Returns
(...args: any[]) => any
public
getPort
(
)
:
number
Returns
number
public
getStarted
(
)
:
(...args: any[]) => any
Returns
(...args: any[]) => any
public
isReadable
(
)
:
boolean
Returns
boolean
public
isWriteable
(
)
:
boolean
Returns
boolean
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
sendBytes
(
port
:
number
, host
:
string
, data
:
Array<Number>
)
Parameters
port:
number
host:
string
data:
Array<Number>
public
sendString
(
port
:
number
, host
:
string
, data
:
string
)
Parameters
port:
number
host:
string
data:
string
public
setBubbleParent
(
bubbleParent
:
boolean
)
Parameters
bubbleParent:
boolean
public
setData
(
data
:
(...args: any[]) => any
)
Parameters
data:
(...args: any[]) => any
public
setError
(
error
:
(...args: any[]) => any
)
Parameters
error:
(...args: any[]) => any
public
setPort
(
port
:
number
)
Parameters
port:
number
public
setStarted
(
started
:
(...args: any[]) => any
)
Parameters
started:
(...args: any[]) => any
public
start
(
port
:
number
)
Parameters
port:
number
public
stop
(
)
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
UDP
bubbleParent
data
error
port
started
addEventListener
applyProperties
close
fireEvent
getBubbleParent
getData
getError
getPort
getStarted
isReadable
isWriteable
read
removeEventListener
sendBytes
sendString
setBubbleParent
setData
setError
setPort
setStarted
start
stop
write
addEventListener
applyProperties
createTCP
createUDP
fireEvent
getBubbleParent
removeEventListener
setBubbleParent