next up previous contents
Next: getSockName Up: Methods Previous: create   Contents

getPeerName

Description

Gets the address of the peer socket to which the socket is connected.


Syntax

socket.getPeerName()


Parameters

None


Returns

Object. The object has two properties:
address
String A dotted number IP address.
port
Integer
If failed, returns null.




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.