| Overview | Namespace | Class | Index | Help |
| oslSocket | Socket, |
| oslSocketAddr * | pAddr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| pAddr | if pAddr is != 0, the peers address is returned. |
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketSet | Set, |
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Set | the set were the socket is added. |
| Socket | the socket to be added. |
| oslSocket | Socket, |
| oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | |
| Address |
sal_False if the bind failed, sal_True if successful.
| oslSocketSet | Set ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Set | the set to be cleared. |
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocket | Socket, |
| oslSocketAddr | Addr, |
| const TimeValue * | pTimeout ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | a bound socket.
|
| Addr | the peer address.
|
| pTimeout | Timeout value or NULL for blocking.
|
osl_Socket_Ok on successful connection,
osl_Socket_TimedOut if operation timed out,
osl_Socket_Interrupted if operation was interrupted
osl_Socket_Error if the connection failed.
| const oslHostAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslAddrFamily | Family ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| family | If family == osl_Socket_FamilyInet the address is
set to INADDR_ANY port 0.
|
| rtl_uString * | strHostname, |
| const oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strHostname | The hostname to be stored. |
| Addr | The socket address to be stored. |
| const oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Addr | The socket address to be reverse resolved. |
| rtl_uString * | strHostname ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strHostname | The hostname to be resolved. |
| rtl_uString * | strDottedAddr, |
| sal_Int32 | Port ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strDottedAddr | dotted decimal internet address, may be 0. |
| Port | port number in host byte order. |
| rtl_uString * | strDottedAddr, |
| sal_Int32 | Port ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strDottedAddr | String with dotted address. |
| Port | portnumber in host byte order. |
| oslAddrFamily | Family, |
| oslSocketType | Type, |
| oslProtocol | Protocol ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| void | ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketSet | IncomingSet, |
| oslSocketSet | OutgoingSet, |
| oslSocketSet | OutOfBandSet, |
| const TimeValue * | pTimeout ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| IncomingSet | Checks the sockets in this set for incoming events (read, accept). If the set is 0, it is just skipped. |
| OutgoingSet | Checks the sockets in this set for outgoing events (write, connect). If the set is 0, it is just skipped. |
| OutOfBandSet | Checks the sockets in this set for out-of-band events. If the set is 0, it is just skipped. |
| msTimeout | Number of milliseconds to wait for events. If msTimeout is -1, the call will block until an event or an error occurs. |
| oslHostAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketSet | Set ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | Change mode for this socket. |
| On |
|
sal_True if mode could be changed.
| oslSocketAddr | Addr, |
| sal_Sequence * * | ppByteSeq ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| ppByteSeq | out parameter. After the call, *ppByteSeq contains the ipadrress
in network byteorder. *ppByteSeq may be 0 in case of an invalid socket handle.
|
osl_Socket_Ok or osl_Socket_Error
| oslSocketAddr | Addr, |
| rtl_uString * * | strDottedInetAddr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strDottedInetAddr | out-parameter. Contains the dotted decimal address
(e.g. 141.99.20.34) represented by the address.
If the address is invalid or not of type |
osl_Socket_Ok or osl_Socket_Error
| oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
osl_Socket_FamilyInvalid.
| const oslHostAddr | Addr, |
| rtl_uString * * | strHostname ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketAddr | Addr, |
| rtl_uString * * | strHostname ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strHostname | out-parameter. The hostname represented by the address. If there is no hostname to be found, it returns 0. |
| oslSocketAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
osl_Socket_FamilyInet, it returns OSL_INVALID_PORT
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
osl_Socket_E_NONE if no error occured,
osl_invalid_SocketError if an unknown (unmapped)
error occured, otherwise an enum describing the error.
| oslSocket | Socket, |
| rtl_uString * * | strError ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strError | out-parameter. The string that receives the error message. |
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| rtl_uString * * | strLocalHostname ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strLocalHostname | out-parameter. The string that receives the local host name. |
sal_True upon success, sal_False otherwise.
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| rtl_uString * | strServicename, |
| rtl_uString * | strProtocol ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| const oslHostAddr | Addr ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocket | Socket, |
| oslSocketOptionLevel | Level, |
| oslSocketOption | Option, |
| void * | pBuffer, |
| sal_uInt32 | BufferLen ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | is the socket to query. |
| Level | selects the level for which an option should be queried. Valid values are:
|
| Option | denotes the option to query. Valid values (depending on the Level) are:
osl_Socket_LevelSocket.
|
| pBuffer | Pointer to a buffer large enough to take the desired attribute-value. |
| BufferSize | contains the length of the Buffer. |
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketAddr | Addr1, |
| oslSocketAddr | Addr2 ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
sal_True if both addresses denote the same socket address,
sal_False otherwise.
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
sal_True if OOB-request operations (recv with appropriate flags)
on the Socket will NOT block; sal_False if it would block or if an error occured.
| Socket | the Socket to perfom the operation on. |
| pTimeout | if NULL, the operation will block without a timeout. |
| oslSocketSet | Set, |
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Set | the set to be checked. |
| Socket | check if this socket is in the set. |
sal_True if socket is in the set.
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | Query mode for this socket. |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
sal_True if read operations (recv, recvFrom, accept) on the Socket
will NOT block; sal_False if it would block or if an error occured.
| Socket | the Socket to perfom the operation on. |
| pTimeout | if NULL, the operation will block without a timeout. |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
sal_True if send operations (send, sendTo) on the Socket
will NOT block; sal_False if it would block or if an error occured.
| Socket | the Socket to perfom the operation on. |
| pTimeout | if NULL, the operation will block without a timeout. Otherwise the time define by timeout value. |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| MaxPendingConnections | denotes the length of the queue of pending connections for this socket. If MaxPendingConnections is -1, the systems default value will be used (Usually 5). |
sal_False if the listen failed.
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| pBuffer | receives the read data. |
| n | the number of bytes to read. pBuffer must be large enough to hold the n bytes! |
| oslSocket | Socket, |
| oslSocketAddr | SenderAddr, |
| void * | pBuffer, |
| sal_uInt32 | BufferSize, |
| oslSocketMsgFlag | Flag ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | A bound socket to be used to listen for a datagram. |
| pSenderAddr | An pointer to a created oslSocketAddr handle or to a null handle. After the call, it will contain the constructed oslSocketAddr of the datagrams sender. If pSenderAddr itself is 0, it is ignored. |
| pBuffer | Points to a buffer that will be filled with the received datagram. |
| BufferSize | The size of pBuffer. |
| Flag | Modifier for the call. Valid values are:
|
| oslSocket | Socket, |
| void * | pBuffer, |
| sal_uInt32 | BytesToRead, |
| oslSocketMsgFlag | Flag ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | A connected socket to be used to listen on. |
| pBuffer | Points to a buffer that will be filled with the received data. |
| BytesToRead | The number of bytes to read. pBuffer must have at least this size. |
| Flag | Modifier for the call. Valid values are:
|
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketSet | Set, |
| oslSocket | Socket ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Set | the set were the socket is removed from. |
| Socket | the socket to be removed. |
| rtl_uString * | strHostname ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| strHostname | The name for which you search for an address. |
| oslSocket | Socket, |
| const void * | pBuffer, |
| sal_uInt32 | BytesToSend, |
| oslSocketMsgFlag | Flag ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | A connected socket. |
| pBuffer | Points to a buffer that contains the send-data. |
| BytesToSend | The number of bytes to send. pBuffer must have at least this size. |
| Flag | Modifier for the call. Valid values are:
|
| oslSocket | Socket, |
| oslSocketAddr | ReceiverAddr, |
| const void * | pBuffer, |
| sal_uInt32 | BytesToSend, |
| oslSocketMsgFlag | Flag ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | A bound or unbound socket. Socket will be bound after a successful call. |
| ReceiverAddr | An initialized oslSocketAddress that contains the destination address for this send. |
| pBuffer | Points to a buffer that contains the send-data. |
| BytesToSend | The number of bytes to send. pBuffer must have at least this size. |
| Flag | Modifier for the call. Valid values are:
|
| oslSocketAddr | Addr, |
| sal_Sequence * | pByteSeq ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| oslSocketAddr | Addr, |
| sal_Int32 | Port ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Port | is expected in host byte-order. |
sal_False if Addr is not an inet-addr.
| oslSocket | Socket, |
| oslSocketOptionLevel | Level, |
| oslSocketOption | Option, |
| void * | pBuffer, |
| sal_uInt32 | BufferLen ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Socket | is the socket to modify.
|
| Level | selects the level for which an option should be changed.
Valid values are:
|
| Option | denotes the option to modify. See osl_setSocketOption() for more
details.
|
| pBuffer | Pointer to a Buffer which contains the attribute-value.
|
| BufferSize | contains the length of the Buffer.
|
| oslSocket | Socket, |
| oslSocketDirection | Direction ); |
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| Direction | denotes which end of the socket should be closed:
|
sal_True if the socket could be closed down.
| virtual | abstract | const | volatile | template | static | inline | C-linkage |
| NO | NO | NO | NO | NO | NO | NO | YES |
| pBuffer | contains the data to be written. |
| n | the number of bytes to write. |
Copyright © 1995, 2010, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.