Titanium.Network.createTCPSocket

Function of Titanium.Network.
Platform Since
iPhone 0.1
iPad 0.1
Mobile Web 1.8
Deprecated since 1.7.0

Summary

create and return an instance of Titanium.Network.TCPSocket

Arguments

Name Type Summary
hostName String

the host name to connect to/listen on

port Number

the port for the socket

mode Number

the socket's mode; one of Titanium.Network.READ_MODE, Titanium.Network.WRITE_MODE, Titanium.Network.READ_WRITE_MODE

parameters Object

A dictionary object with properties defined in Titanium.Network.TCPSocket

Return Type