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 |
Waits for an ingoing connection on the socket. This call blocks if there is no incoming connection present.
pAddr | if pAddr is != 0, the peers address is returned. |
0 if the accept-call failed, otherwise you get a socket representing the new connection.
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
increases the refcount of the socket handle by one
oslSocketSet | Set, |
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Adds a socket to the set.
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 |
Binds the given address to the socket.
Socket | |
Address |
False if the bind failed.
oslSocketSet | Set ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Clears the set from all previously added sockets.
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 |
Connects the socket to the given address.
Socket | a bound socket. |
Addr | the peer address. |
pTimeout | Timeout value or NULL for blocking. |
osl_sock_result_ok on successful connection, osl_sock_result_timeout if operation timed out, osl_sock_result_interrupted if operation was interrupted osl_sock_result_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 |
Create a copy of the given Addr.
The copied address or 0 upon failure.
oslSocketAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create a new SocketAddress and fill it from Addr.
oslAddrFamily | Family ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Creates a socket-address for the given family. If family == osl_af_inet the address is set to INADDR_ANY port 0.
0 if address could not be created.
rtl_uString * | strHostname, |
const oslSocketAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create an oslHostAddr from given hostname and socket address.
strHostname | The hostname to be stored. |
Addr | The socket address to be stored. |
The created address or 0 upon failure.
const oslSocketAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create an oslHostAddr by reverse resolution of the given Addr. Successful name resolution should result in the fully qualified domain name (FQDN) and it's address as hostname and socket address members of the resulting oslHostAddr.
Addr | The socket address to be reverse resolved. |
The resulting address or 0 upon failure.
rtl_uString * | strHostname ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create an oslHostAddr by resolving the given strHostname. Successful name resolution should result in the fully qualified domain name (FQDN) and it's address as hostname and socket address members of the resulting oslHostAddr.
strHostname | The hostname to be resolved. |
The resulting address or 0 upon failure.
rtl_uString * | strDottedAddr, |
sal_Int32 | Port ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create an internet address usable for sending broadcast datagrams. To limit the broadcast to your subnet, pass your hosts IP address in dotted decimal notation as first argument.
strDottedAddr | dotted decimal internet address, may be 0. |
Port | port number in host byte order. |
0 if address could not be created.
rtl_uString * | strDottedAddr, |
sal_Int32 | Port ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create an internet-address, consisting of hostaddress and port. We interpret strDottedAddr as a dotted-decimal inet-addr (e.g. "141.99.128.50").
strDottedAddr | String with dotted address. |
Port | portnumber in host byte order. |
0 if address could not be created.
rtl_uString * | strNetNumber, |
rtl_uString * | strNodeNumber, |
sal_uInt32 | SocketNumber ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create an IPX address.
oslAddrFamily | Family, |
oslSocketType | Type, |
oslProtocol | Protocol ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Create a socket of the specified Family and Type. The semantic of the Protocol parameter depends on the given family and type.
0 if socket could not be created, otherwise you get a handle to the allocated socket-datastructure.
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Creates a set of sockets to be used with osl_demultiplexSocketEvents().
A oslSocketSet or 0 if creation failed.
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 |
Checks multiple sockets for events.
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. |
-1 on errors, otherwise the number of sockets with pending events. In case of timeout, the number might be 0.
oslHostAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Free all memory allocated by Addr.
oslSocketAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Free all memory allocated by pAddress.
oslSocketSet | Set ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Destroys a oslSocketSet.
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Enables/disables non-blocking-mode of the socket.
Socket | Change mode for this socket. |
On | True: enable non-blocking mode, False: disable non-blocking mode. |
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 |
Returns the addr field in the struct sockaddr. ppByteSeq is in network byteorder. *ppByteSeq may either be 0 or contain a constructed sal_Sequence.
oslSocketAddr | Addr, |
rtl_uString * * | strDottedInetAddr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Gets the address in dotted decimal format.
the dotted decimal address (e.g. 141.99.20.34) represented by the address. If the address is invalid or not of type osl_af_inet, it returns 0.
oslSocketAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Retrieves the address-family from the Addr.
the family of the socket-address. In case of an unknown family you get osl_invalid_AddrFamily.
const oslHostAddr | Addr, |
rtl_uString * * | strHostname ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Get the hostname member of Addr.
The hostname or 0 upon failure.
oslSocketAddr | Addr, |
rtl_uString * * | strHostname ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Gets the hostname represented by Addr.
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 |
Retrieves the internet port-number of Addr.
the port-number of the address in host-byte order. If Addr is not an address of type osl_af_inet, it returns OSL_INVALID_PORT
oslSocketAddr | Addr, |
oslSocketIpxNetNumber | NetNumber ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Gets the IPX Net-Number of the address.
the (4 bytes long) net-number or 0 if not an IPX address.
oslSocketAddr | Addr, |
oslSocketIpxNodeNumber | NodeNumber ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Gets the IPX Node-Number of the address.
the (6 bytes long) net-number or 0 if not an IPX address.
oslSocketAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Gets the IPX Socket-Number of the address.
the IPX socket number or OSL_INVALID_IPX_SOCKET_NO if not an IPX address.
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Delivers a constant decribing the last error for the socket system.
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 |
Delivers a string which describes the last socket error.
strError | The string that receives the error message. than the provided buffer, it will be cut short. Buffer sizes about 128 chars should be large enough. |
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Retrieves the Address of the local end of the socket. Note that a socket must be bound or connected before a vaild address can be returned.
0 if socket-address could not be created, otherwise you get the created Socket-Address.
rtl_uString * * | strLocalHostname ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Retrieve this machines hostname. May not always be a fully qualified domain name (FQDN).
strLocalHostname | The string that receives the local host name. |
True upon success, False otherwise.
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Retrieves the Address of the remote end of the socket. Note that a socket must be connected before a vaild address can be returned.
0 if socket-address could not be created, otherwise you get the created Socket-Address.
rtl_uString * | strServicename, |
rtl_uString * | strProtocol ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Looks up the port-number designated to the specified service/protocol-pair. (e.g. "ftp" "tcp").
OSL_INVALID_PORT if no appropriate entry was found, otherwise the port-number.
const oslHostAddr | Addr ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Get the socket address member of Addr.
The socket address or 0 upon failure.
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 |
Retrieves attributes associated with the socket.
Socket | is the socket to query. |
Level | selects the level for which an option should be queried. Valid values are: <ul> <li> osl_sol_socket: Socket Level <li> osl_sol_tcp: Level of Transmission Control Protocol </ul> |
Option | denotes the option to query. Valid values (depending on the Level) are: <ul> <li> osl_so_debug, <li> osl_so_acceptconn, <li> osl_so_reuseaddr, <li> osl_so_keepalive, <li> osl_so_dontroute, <li> osl_so_broadcast, <li> osl_so_useloopback, <li> osl_so_linger, <li> osl_so_oobinline, <li> osl_so_sndbuf, <li> osl_so_rcvbuf, <li> osl_so_sndlowat, <li> osl_so_rcvlowat, <li> osl_so_sndtimeo, <li> osl_so_rcvtimeo, <li> osl_so_error, <li> osl_so_type, <li> osl_so_tcp_nodelay, (sol_tcp) </ul> If not above mentioned otherwise, the options are only valid for level sol_socket. |
pBuffer | Pointer to a Buffer with enough room to take the desired attribute-value. |
BufferSize | contains the length of the Buffer. |
-1 if an error occured or else the size of the data copied into pBuffer.
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Queries the socket for its type.
one of: <ul> <li> osl_sock_stream, <li> osl_sock_dgram, <li> osl_sock_raw, <li> osl_sock_rdm, <li> osl_sock_seqpacket, <li> osl_invalid_SocketType, if an error occured </ul>
oslSocketAddr | Addr1, |
oslSocketAddr | Addr2 ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Compare to SocketAddress.
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Checks if a request for out-of-band data will block. You can specify a timeout-value in seconds/microseconds that denotes how long the operation will block if the Socket has no pending OOB data.
True if OOB-request operations (recv with appropriate flags) on the Socket will NOT block; 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. |
oslSocketSet | Set, |
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Checks if socket is in the set.
Set | the set to be checked. |
Socket | check if this socket is in the set. |
True if socket is in the set.
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Query state of non-blocking-mode of the socket.
Socket | Query mode for this socket. |
True if non-blocking-mode is enabled.
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Checks if read operations will block. You can specify a timeout-value in seconds/microseconds that denotes how long the operation will block if the Socket is not ready.
True if read operations (recv, recvFrom, accept) on the Socket will NOT block; 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 |
Checks if send operations will block. You can specify a timeout-value in seconds/microseconds that denotes how long the operation will block if the Socket is not ready.
True if send operations (send, sendTo) on the Socket will NOT block; 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 |
Prepares the socket to act as an acceptor of incoming connections. You should call "listen" before you use "accept".
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). |
False if the listen failed.
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Retrieves n bytes from the stream and copies them into pBuffer. The function avoids incomplete reads due to packet boundaries.
pBuffer | receives the read data. |
n | the number of bytes to read. pBuffer must be large enough to hold the n bytes! |
the number of read bytes. The number will only be smaller than n if an exceptional condition (e.g. connection closed) occurs.
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 |
Tries to receives BufferSize data from the (usually unconnected) (datagram-)socket, if no error occurs.
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: <ul> <li> osl_msg_normal, <li> osl_msg_oob, <li> osl_msg_peek, <li> osl_msg_dontroute, <li> osl_msg_maxiovlen, </ul> |
the number of received bytes.
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 |
Tries to receive BytesToRead data from the connected socket, if no error occurs. Note that incomplete recvs due to packet boundaries may occur.
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: <ul> <li> osl_msg_normal, <li> osl_msg_oob, <li> osl_msg_peek, <li> osl_msg_dontroute, <li> osl_msg_maxiovlen, </ul> |
the number of received bytes.
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
decreases the refcount of the socket handle by one.
If the refcount drops to zero, the underlying socket handle is destroyed and becomes invalid.
oslSocketSet | Set, |
oslSocket | Socket ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Removes a socket from the set.
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 |
Uses the systems name-service interface to find an address for strHostname.
strHostname | The name for which you search for an address. |
The desired address if one could be found, otherwise 0. Don't forget to destroy the address if you don't need it any longer.
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 |
Tries to send BytesToSend data from the connected socket, if no error occurs.
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: <ul> <li> osl_msg_normal, <li> osl_msg_oob, <li> osl_msg_peek, <li> osl_msg_dontroute, <li> osl_msg_maxiovlen, </ul> |
the number of transfered bytes.
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 |
Tries to send one datagram with BytesToSend data to the given ReceiverAddr via the (implicitly unconnected) datagram-socket. Since we only send one packet, we don't need to concern ourselfes here with incomplete sends due to packet boundaries.
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: <ul> <li> osl_msg_normal, <li> osl_msg_oob, <li> osl_msg_peek, <li> osl_msg_dontroute, <li> osl_msg_maxiovlen, </ul> |
the number of transfered bytes.
oslSocketAddr | Addr, |
sal_Sequence * | pByteSeq ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Sets the addr field in the struct sockaddr with pByteSeq. pByteSeq must be in network byte order.
oslSocketAddr | Addr, |
sal_Int32 | Port ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Sets the Port of Addr.
Port | is expected in host byte-order. |
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 |
Sets the sockets attributes.
Socket | is the socket to modify. |
Level | selects the level for which an option should be changed. Valid values are: <ul> <li> osl_sol_socket: Socket Level <li> osl_sol_tcp: Level of Transmission Control Protocol </ul> |
Option | denotes the option to modify. Valid values (depending on the Level) are: <ul> <li> osl_so_debug, <li> osl_so_acceptconn, <li> osl_so_reuseaddr, <li> osl_so_keepalive, <li> osl_so_dontroute, <li> osl_so_broadcast, <li> osl_so_useloopback, <li> osl_so_linger, <li> osl_so_oobinline, <li> osl_so_sndbuf, <li> osl_so_rcvbuf, <li> osl_so_sndlowat, <li> osl_so_rcvlowat, <li> osl_so_sndtimeo, <li> osl_so_rcvtimeo, <li> osl_so_error, <li> osl_so_type, <li> osl_so_tcp_nodelay, (sol_tcp) </ul> If not above mentioned otherwise, the options are only valid for level sol_socket. |
pBuffer | Pointer to a Buffer which contains the attribute-value. |
BufferSize | contains the length of the Buffer. |
True if the option could be changed.
oslSocket | Socket, |
oslSocketDirection | Direction ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Shuts down communication on a connected socket.
Direction | denotes which end of the socket should be closed: <ul> <li> osl_shut_read closes read operations. <li> osl_shut_write closes write operations. <li> osl_shut_readwrite closes read and write operations. </ul> |
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 |
Writes n bytes from pBuffer to the stream. The method avoids incomplete writes due to packet boundaries.
pBuffer | contains the data to be written. |
n | the number of bytes to write. |
the number of written bytes. The number will only be smaller than n if an exceptional condition (e.g. connection closed) occurs.
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.