| Overview | Namespace | Class | Index | Help |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
Creates socket address of unknown type.
| const SocketAddr & | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
Copy constructor.
| const oslSocketAddr | , |
| __osl_socket_NoCopy | nocopy ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
The SocketAddr takes over the responsibility of the handle ( which means, that the handle gets destructed by the destructor of this reference)
| oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
tcpip-specif constructor.
| strAddrOrHostName | |
| nPort | tcp-ip port number |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
destroys underlying oslSocketAddress
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
checks, if the SocketAddr was created successful.
| oslSocketResult * | pResult = 0 ) const; |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | YES | NO | NO | NO | YES | NO |
Converts the address to a (human readable) domain-name.
| pResult | |
the hostname of this SocketAddr or an empty string on failure.
| const ::rtl::OUString & | sDottedIpOrHostname ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
Returns the port number of the address.
the port in host-byte order or or OSL_INVALID_PORT on errors.
| sal_Int32 | nPort ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
Sets the port number of the address.
true if successfule.
| const ::rtl::ByteSequence & | address ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
Sets the address of the underlying socket address struct in network byte order.
true on success, false signales falure.
| oslSocketResult * | pResult = 0 ) const; |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | YES | NO | NO | NO | YES | NO |
Returns the address of the underlying socket in network byte order
| oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
assign the handle to this reference. The previous handle is release.
| const SocketAddr & | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
| oslSocketAddr | Addr, |
| __osl_socket_NoCopy | nocopy ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
Assigns the socket addr without copyconstructing it.
| oslSocketAddr | Addr ) const; |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | YES | NO | NO | NO | YES | NO |
Returns true if the underlying handle is identical to the Addr handle.
| const SocketAddr & | Addr ) const; |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | YES | NO | NO | NO | YES | NO |
Returns true if the underlying handle is identical to the Addr handle.
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | YES | NO |
Returns the underlying SocketAddr handle without copyconstructing it.
| oslSocketResult * | pResult = 0 ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | YES | YES | NO |
Get the hostname for the local interface.
| after | |
the hostname
| const ::rtl::OUString & | strHostName, |
| SocketAddr & | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | YES | YES | NO |
Tries to find an address for a host.
A new created socket-address or 0 if the name could not be found.
| const ::rtl::OUString & | strServiceName, |
| const ::rtl::OUString & | strProtocolName = :: rtl :: OUString :: createFromAscii "tcp" ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | YES | YES | NO |
Tries to find the port associated with the given service/protocol- pair (e.g. "ftp"/"tcp").
the port number in host-byte order or CVOS_PORT_NONE if no service/protocol pair could be found.
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.