PackageC.sys.socket
Classpublic class sockaddr
Inheritancesockaddr Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

A structure containing information about a socket address.

The sockaddr structure is used to define a socket address which is used in the bind(), connect(), getpeername(), getsockname(), recvfrom(), and sendto() functions.



Public Properties
 PropertyDefined By
  sa_data : Vector.<uint>
Socket address (variable-length data).
sockaddr
  sa_family : uint
Address family.
sockaddr
Public Methods
 MethodDefined By
  
sockaddr(sa_family:uint = 0, sa_data:* = null)
sockaddr
 Inherited
_init():*
[static]
_init
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
 Inherited
AS3
  
sockaddr
  
sockaddr
  
sockaddr
  
sockaddr
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
 Inheritedlength : int = 1
[static]
length
Property Detail
sa_dataproperty
public var sa_data:Vector.<uint>

Socket address (variable-length data).

sa_familyproperty 
public var sa_family:uint

Address family.

Constructor Detail
sockaddr()Constructor
public function sockaddr(sa_family:uint = 0, sa_data:* = null)



Parameters
sa_family:uint (default = 0)
 
sa_data:* (default = null)
Method Detail
toSockaddr()method
public function toSockaddr():*

Returns
*
toSockaddr_in()method 
public function toSockaddr_in():sockaddr_in

Returns
sockaddr_in
toSockaddr_in6()method 
public function toSockaddr_in6():sockaddr_in6

Returns
sockaddr_in6
toSockaddr_storage()method 
public function toSockaddr_storage():sockaddr_storage

Returns
sockaddr_storage