XMLSocket class
221
XMLSocket.connect()
Availability
Flash Media Server 2.
Usage
myXMLSocket
.connect(
host, port
)
Parameters
host
A string; a fully qualified DNS domain name or an IP address in the form
aaa.bbb.ccc.ddd
. You can also specify
null
to connect to the local host.
port
A number; the TCP port number on the host used to establish a connection. The port
number must be 1024 or greater.
Returns
A Boolean value;
true
if successful,
false
if not.
Description
Method; establishes a connection to the specified Internet host using the specified TCP port
(must be 1024 or higher), and returns
true
or
false,
depending on whether a connection is
successfully established. If you don’t know the port number of the Internet host computer,
contact your network administrator.
If you specify
null
for the
host
parameter, the local host is contacted.
The server-side ActionScript
XMLSocket.connect()
method can connect to computers that
are not in the same domain as the SWF file.
If
XMLSocket.connect()
returns a value of
true
, the initial stage of the connection process is
successful; later, the
XMLSocket.onConnect
handler is invoked to determine whether the final
connection succeeded or failed. If
XMLSocket.connect()
returns
false
, a connection could
not be established.
NO
TE
The client-side ActionScript
XMLSocket.connect()
method has restrictions. For more
information, see the XMLSocket class in
ActionScript 2.0 Language Reference
.
Содержание FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT...
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...