next up previous contents
Next: getSockOpt Up: Methods Previous: getPeerName   Contents

getSockName

Description

Gets the local name for the socket


Syntax

socket.getSockName()


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.