Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ece792ff
Kaydet (Commit)
ece792ff
authored
Mar 17, 2017
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
osl: more doxygen changes
Change-Id: Ic191ef5694cef24f030b8e1dba3e66d5e7fb3584
üst
4d9e28be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
62 deletions
+58
-62
socket.h
include/osl/socket.h
+57
-61
time.h
include/osl/time.h
+1
-1
No files found.
include/osl/socket.h
Dosyayı görüntüle @
ece792ff
...
@@ -212,8 +212,8 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_copySocketAddr(
...
@@ -212,8 +212,8 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_copySocketAddr(
oslSocketAddr
Addr
);
oslSocketAddr
Addr
);
/** Compares the values of two SocketAddresses.
/** Compares the values of two SocketAddresses.
@ret
urn <code>sal_True</code> if both addresses denote the same socket address,
@ret
val sal_True if both addresses denote the same socket address.
<code>sal_False</code> otherwise
.
@retval sal_False if both addresses do not denote the same socket address
.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_isEqualSocketAddr
(
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_isEqualSocketAddr
(
oslSocketAddr
Addr1
,
oslSocketAddr
Addr2
);
oslSocketAddr
Addr1
,
oslSocketAddr
Addr2
);
...
@@ -233,7 +233,7 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_resolveHostname(
...
@@ -233,7 +233,7 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_resolveHostname(
@see oslSocketAddr
@see oslSocketAddr
@param[in] strDottedAddr dotted decimal internet address, may be 0.
@param[in] strDottedAddr dotted decimal internet address, may be 0.
@param[in] Port port number in host byte order.
@param[in] Port port number in host byte order.
@ret
urn
0 if address could not be created.
@ret
val
0 if address could not be created.
*/
*/
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_createInetBroadcastAddr
(
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_createInetBroadcastAddr
(
rtl_uString
*
strDottedAddr
,
sal_Int32
Port
);
rtl_uString
*
strDottedAddr
,
sal_Int32
Port
);
...
@@ -244,7 +244,7 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createInetBroadcastAddr (
...
@@ -244,7 +244,7 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createInetBroadcastAddr (
(e.g. "141.99.128.50").
(e.g. "141.99.128.50").
@param strDottedAddr [in] String with dotted address.
@param strDottedAddr [in] String with dotted address.
@param Port [in] portnumber in host byte order.
@param Port [in] portnumber in host byte order.
@ret
urn
0 if address could not be created.
@ret
val
0 if address could not be created.
*/
*/
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_createInetSocketAddr
(
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_createInetSocketAddr
(
rtl_uString
*
strDottedAddr
,
sal_Int32
Port
);
rtl_uString
*
strDottedAddr
,
sal_Int32
Port
);
...
@@ -258,7 +258,7 @@ SAL_DLLPUBLIC void SAL_CALL osl_destroySocketAddr(
...
@@ -258,7 +258,7 @@ SAL_DLLPUBLIC void SAL_CALL osl_destroySocketAddr(
/** Looks up the port-number designated to the specified service/protocol-pair.
/** Looks up the port-number designated to the specified service/protocol-pair.
(e.g. "ftp" "tcp").
(e.g. "ftp" "tcp").
@ret
urn
OSL_INVALID_PORT if no appropriate entry was found, otherwise the port-number.
@ret
val
OSL_INVALID_PORT if no appropriate entry was found, otherwise the port-number.
*/
*/
SAL_DLLPUBLIC
sal_Int32
SAL_CALL
osl_getServicePort
(
SAL_DLLPUBLIC
sal_Int32
SAL_CALL
osl_getServicePort
(
rtl_uString
*
strServicename
,
rtl_uString
*
strProtocol
);
rtl_uString
*
strServicename
,
rtl_uString
*
strProtocol
);
...
@@ -284,7 +284,7 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(
...
@@ -284,7 +284,7 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(
/** Sets the Port of Addr.
/** Sets the Port of Addr.
@param[in] Addr the SocketAddr to perfom the operation on.
@param[in] Addr the SocketAddr to perfom the operation on.
@param[in] Port is expected in host byte-order.
@param[in] Port is expected in host byte-order.
@ret
urn <code>sal_False</code>
if Addr is not an inet-addr.
@ret
val sal_False
if Addr is not an inet-addr.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_setInetPortOfSocketAddr
(
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_setInetPortOfSocketAddr
(
oslSocketAddr
Addr
,
sal_Int32
Port
);
oslSocketAddr
Addr
,
sal_Int32
Port
);
...
@@ -305,7 +305,8 @@ SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getHostnameOfSocketAddr(
...
@@ -305,7 +305,8 @@ SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getHostnameOfSocketAddr(
(e.g. 141.99.20.34) represented by the address.
(e.g. 141.99.20.34) represented by the address.
If the address is invalid or not of type <code>osl_Socket_FamilyInet</code>,
If the address is invalid or not of type <code>osl_Socket_FamilyInet</code>,
it returns 0.
it returns 0.
@return <code>osl_Socket_Ok</code> or <code>osl_Socket_Error</code>
@retval osl_Socket_Ok
@retval osl_Socket_Error
*/
*/
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_getDottedInetAddrOfSocketAddr
(
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_getDottedInetAddrOfSocketAddr
(
oslSocketAddr
Addr
,
rtl_uString
**
strDottedInetAddr
);
oslSocketAddr
Addr
,
rtl_uString
**
strDottedInetAddr
);
...
@@ -319,7 +320,8 @@ SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_setAddrOfSocketAddr(
...
@@ -319,7 +320,8 @@ SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_setAddrOfSocketAddr(
@param[in] Addr The socket address from which to extract the ipaddress.
@param[in] Addr The socket address from which to extract the ipaddress.
@param[out] ppByteSeq After the call, *ppByteSeq contains the ipaddress
@param[out] ppByteSeq After the call, *ppByteSeq contains the ipaddress
in network byteorder. *ppByteSeq may be 0 in case of an invalid socket handle.
in network byteorder. *ppByteSeq may be 0 in case of an invalid socket handle.
@return <code>osl_Socket_Ok</code> or <code>osl_Socket_Error</code>
@retval osl_Socket_Ok
@retval osl_Socket_Error
*/
*/
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_getAddrOfSocketAddr
(
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_getAddrOfSocketAddr
(
oslSocketAddr
Addr
,
sal_Sequence
**
ppByteSeq
);
oslSocketAddr
Addr
,
sal_Sequence
**
ppByteSeq
);
...
@@ -385,7 +387,8 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr(const oslHostAd
...
@@ -385,7 +387,8 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr(const oslHostAd
/** Retrieve this machines hostname.
/** Retrieve this machines hostname.
May not always be a fully qualified domain name (FQDN).
May not always be a fully qualified domain name (FQDN).
@param strLocalHostname out-parameter. The string that receives the local host name.
@param strLocalHostname out-parameter. The string that receives the local host name.
@return <code>sal_True</code> upon success, <code>sal_False</code> otherwise.
@retval sal_True upon success
@retval sal_False
*/
*/
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_getLocalHostname
(
rtl_uString
**
strLocalHostname
);
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_getLocalHostname
(
rtl_uString
**
strLocalHostname
);
...
@@ -416,7 +419,7 @@ SAL_DLLPUBLIC void SAL_CALL osl_releaseSocket( oslSocket Socket );
...
@@ -416,7 +419,7 @@ SAL_DLLPUBLIC void SAL_CALL osl_releaseSocket( oslSocket Socket );
/** Create a socket of the specified Family and Type. The semantic of
/** Create a socket of the specified Family and Type. The semantic of
the Protocol parameter depends on the given family and type.
the Protocol parameter depends on the given family and type.
@ret
urn
0 if socket could not be created, otherwise you get a handle
@ret
val
0 if socket could not be created, otherwise you get a handle
to the allocated socket-datastructure.
to the allocated socket-datastructure.
*/
*/
SAL_DLLPUBLIC
oslSocket
SAL_CALL
osl_createSocket
(
SAL_DLLPUBLIC
oslSocket
SAL_CALL
osl_createSocket
(
...
@@ -427,7 +430,7 @@ SAL_DLLPUBLIC oslSocket SAL_CALL osl_createSocket(
...
@@ -427,7 +430,7 @@ SAL_DLLPUBLIC oslSocket SAL_CALL osl_createSocket(
/** Retrieves the Address of the local end of the socket.
/** Retrieves the Address of the local end of the socket.
Note that a socket must be bound or connected before
Note that a socket must be bound or connected before
a valid address can be returned.
a valid address can be returned.
@ret
urn
0 if socket-address could not be created, otherwise you get
@ret
val
0 if socket-address could not be created, otherwise you get
the created Socket-Address.
the created Socket-Address.
*/
*/
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_getLocalAddrOfSocket
(
oslSocket
Socket
);
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_getLocalAddrOfSocket
(
oslSocket
Socket
);
...
@@ -435,7 +438,7 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getLocalAddrOfSocket(oslSocket Socket);
...
@@ -435,7 +438,7 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getLocalAddrOfSocket(oslSocket Socket);
/** Retrieves the Address of the remote end of the socket.
/** Retrieves the Address of the remote end of the socket.
Note that a socket must be connected before
Note that a socket must be connected before
a valid address can be returned.
a valid address can be returned.
@ret
urn
0 if socket-address could not be created, otherwise you get
@ret
val
0 if socket-address could not be created, otherwise you get
the created Socket-Address.
the created Socket-Address.
*/
*/
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_getPeerAddrOfSocket
(
oslSocket
Socket
);
SAL_DLLPUBLIC
oslSocketAddr
SAL_CALL
osl_getPeerAddrOfSocket
(
oslSocket
Socket
);
...
@@ -443,7 +446,8 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getPeerAddrOfSocket(oslSocket Socket);
...
@@ -443,7 +446,8 @@ SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getPeerAddrOfSocket(oslSocket Socket);
/** Binds the given address to the socket.
/** Binds the given address to the socket.
@param[in] Socket
@param[in] Socket
@param[in] Addr
@param[in] Addr
@return <code>sal_False</code> if the bind failed, <code> sal_True</code> if successful.
@retval sal_False if the bind failed
@retval sal_True if bind is successful
@see osl_getLastSocketError()
@see osl_getLastSocketError()
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_bindAddrToSocket
(
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_bindAddrToSocket
(
...
@@ -456,10 +460,10 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_bindAddrToSocket(
...
@@ -456,10 +460,10 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_bindAddrToSocket(
@param[in] Addr the peer address.
@param[in] Addr the peer address.
@param pTimeout Timeout value or NULL for blocking.
@param pTimeout Timeout value or NULL for blocking.
@ret
urn <code>osl_Socket_Ok</code>
on successful connection,
@ret
val osl_Socket_Ok
on successful connection,
<code>osl_Socket_TimedOut</code>
if operation timed out,
@retval osl_Socket_TimedOut
if operation timed out,
<code>osl_Socket_Interrupted</code>
if operation was interrupted
@retval osl_Socket_Interrupted
if operation was interrupted
<code>osl_Socket_Error</code>
if the connection failed.
@retval osl_Socket_Error
if the connection failed.
*/
*/
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_connectSocketTo
(
SAL_DLLPUBLIC
oslSocketResult
SAL_CALL
osl_connectSocketTo
(
oslSocket
Socket
,
oslSocket
Socket
,
...
@@ -473,7 +477,7 @@ SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_connectSocketTo(
...
@@ -473,7 +477,7 @@ SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_connectSocketTo(
@param[in] MaxPendingConnections denotes the length of the queue of
@param[in] MaxPendingConnections denotes the length of the queue of
pending connections for this socket. If MaxPendingConnections is
pending connections for this socket. If MaxPendingConnections is
-1, the systems default value will be used (Usually 5).
-1, the systems default value will be used (Usually 5).
@ret
urn <code>sal_False</code>
if the listen failed.
@ret
val sal_False
if the listen failed.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_listenOnSocket
(
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_listenOnSocket
(
oslSocket
Socket
,
oslSocket
Socket
,
...
@@ -484,7 +488,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_listenOnSocket(
...
@@ -484,7 +488,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_listenOnSocket(
This call blocks if there is no incoming connection present.
This call blocks if there is no incoming connection present.
@param[in] Socket The socket to accept the connection on.
@param[in] Socket The socket to accept the connection on.
@param[in] pAddr if pAddr is != 0, the peers address is returned.
@param[in] pAddr if pAddr is != 0, the peers address is returned.
@ret
urn
0 if the accept-call failed, otherwise you get a socket
@ret
val
0 if the accept-call failed, otherwise you get a socket
representing the new connection.
representing the new connection.
*/
*/
SAL_DLLPUBLIC
oslSocket
SAL_CALL
osl_acceptConnectionOnSocket
SAL_DLLPUBLIC
oslSocket
SAL_CALL
osl_acceptConnectionOnSocket
...
@@ -501,13 +505,11 @@ SAL_DLLPUBLIC oslSocket SAL_CALL osl_acceptConnectionOnSocket
...
@@ -501,13 +505,11 @@ SAL_DLLPUBLIC oslSocket SAL_CALL osl_acceptConnectionOnSocket
@param[in] BytesToRead The number of bytes to read. pBuffer must have at least
@param[in] BytesToRead The number of bytes to read. pBuffer must have at least
this size.
this size.
@param[in] Flag Modifier for the call. Valid values are:
@param[in] Flag Modifier for the call. Valid values are:
<ul>
osl_Socket_MsgNormal
<li><code>osl_Socket_MsgNormal</code>
osl_Socket_MsgOOB
<li><code>osl_Socket_MsgOOB</code>
osl_Socket_MsgPeek
<li><code>osl_Socket_MsgPeek</code>
osl_Socket_MsgDontRoute
<li><code>osl_Socket_MsgDontRoute</code>
osl_Socket_MsgMaxIOVLen
<li><code>osl_Socket_MsgMaxIOVLen</code>
</ul>
@return the number of received bytes.
@return the number of received bytes.
*/
*/
...
@@ -529,13 +531,11 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveSocket(
...
@@ -529,13 +531,11 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveSocket(
datagram.
datagram.
@param[in] BufferSize The size of pBuffer.
@param[in] BufferSize The size of pBuffer.
@param[in] Flag Modifier for the call. Valid values are:
@param[in] Flag Modifier for the call. Valid values are:
<ul>
osl_Socket_MsgNormal
<li><code>osl_Socket_MsgNormal</code>
osl_Socket_MsgOOB
<li><code>osl_Socket_MsgOOB</code>
osl_Socket_MsgPeek
<li><code>osl_Socket_MsgPeek</code>
osl_Socket_MsgDontRoute
<li><code>osl_Socket_MsgDontRoute</code>
osl_Socket_MsgMaxIOVLen
<li><code>osl_Socket_MsgMaxIOVLen</code>
</ul>
@return the number of received bytes.
@return the number of received bytes.
*/
*/
...
@@ -554,13 +554,11 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveFromSocket(
...
@@ -554,13 +554,11 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveFromSocket(
@param[in] BytesToSend The number of bytes to send. pBuffer must have at least
@param[in] BytesToSend The number of bytes to send. pBuffer must have at least
this size.
this size.
@param[in] Flag Modifier for the call. Valid values are:
@param[in] Flag Modifier for the call. Valid values are:
<ul>
<li><code>osl_Socket_MsgNormal</code>
<li><code>osl_Socket_MsgNormal</code>
<li><code>osl_Socket_MsgOOB</code>
<li><code>osl_Socket_MsgOOB</code>
<li><code>osl_Socket_MsgPeek</code>
<li><code>osl_Socket_MsgPeek</code>
<li><code>osl_Socket_MsgDontRoute</code>
<li><code>osl_Socket_MsgDontRoute</code>
<li><code>osl_Socket_MsgMaxIOVLen</code>
<li><code>osl_Socket_MsgMaxIOVLen</code>
</ul>
@return the number of transferred bytes.
@return the number of transferred bytes.
*/
*/
...
@@ -585,13 +583,11 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendSocket(
...
@@ -585,13 +583,11 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendSocket(
@param[in] BytesToSend The number of bytes to send. pBuffer must have at least
@param[in] BytesToSend The number of bytes to send. pBuffer must have at least
this size.
this size.
@param Flag [in] Modifier for the call. Valid values are:
@param Flag [in] Modifier for the call. Valid values are:
<ul>
<li><code>osl_Socket_MsgNormal</code>
<li><code>osl_Socket_MsgNormal</code>
<li><code>osl_Socket_MsgOOB</code>
<li><code>osl_Socket_MsgOOB</code>
<li><code>osl_Socket_MsgPeek</code>
<li><code>osl_Socket_MsgPeek</code>
<li><code>osl_Socket_MsgDontRoute</code>
<li><code>osl_Socket_MsgDontRoute</code>
<li><code>osl_Socket_MsgMaxIOVLen</code>
<li><code>osl_Socket_MsgMaxIOVLen</code>
</ul>
@return the number of transferred bytes.
@return the number of transferred bytes.
*/
*/
...
@@ -607,8 +603,9 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendToSocket(
...
@@ -607,8 +603,9 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendToSocket(
You can specify a timeout-value in seconds/microseconds that denotes
You can specify a timeout-value in seconds/microseconds that denotes
how long the operation will block if the Socket is not ready.
how long the operation will block if the Socket is not ready.
@return <code>sal_True</code> if read operations (recv, recvFrom, accept) on the Socket
@retval sal_True if read operations (recv, recvFrom, accept) on the Socket
will NOT block; <code>sal_False</code> if it would block or if an error occurred.
will NOT block;
@retval sal_False if it would block or if an error occurred.
@param Socket the Socket to perfom the operation on.
@param Socket the Socket to perfom the operation on.
@param pTimeout if NULL, the operation will block without a timeout.
@param pTimeout if NULL, the operation will block without a timeout.
...
@@ -619,8 +616,9 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isReceiveReady(
...
@@ -619,8 +616,9 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isReceiveReady(
/** Checks if send operations will block.
/** Checks if send operations will block.
You can specify a timeout-value in seconds/microseconds that denotes
You can specify a timeout-value in seconds/microseconds that denotes
how long the operation will block if the Socket is not ready.
how long the operation will block if the Socket is not ready.
@return <code>sal_True</code> if send operations (send, sendTo) on the Socket
@retval sal_True if send operations (send, sendTo) on the Socket
will NOT block; <code>sal_False</code> if it would block or if an error occurred.
will NOT block
@retval sal_False if it would block or if an error occurred.
@param Socket the Socket to perfom the operation on.
@param Socket the Socket to perfom the operation on.
@param pTimeout if NULL, the operation will block without a timeout. Otherwise
@param pTimeout if NULL, the operation will block without a timeout. Otherwise
...
@@ -632,8 +630,9 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isSendReady(
...
@@ -632,8 +630,9 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isSendReady(
/** Checks if a request for out-of-band data will block.
/** Checks if a request for out-of-band data will block.
You can specify a timeout-value in seconds/microseconds that denotes
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.
how long the operation will block if the Socket has no pending OOB data.
@return <code>sal_True</code> if OOB-request operations (recv with appropriate flags)
@retval sal_True if OOB-request operations (recv with appropriate flags)
on the Socket will NOT block; <code>sal_False</code> if it would block or if an error occurred.
on the Socket will NOT block
@retval sal_False if it would block or if an error occurred.
@param Socket the Socket to perfom the operation on.
@param Socket the Socket to perfom the operation on.
@param pTimeout if NULL, the operation will block without a timeout.
@param pTimeout if NULL, the operation will block without a timeout.
...
@@ -763,7 +762,7 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getSocketOption( oslSocket Socket,
...
@@ -763,7 +762,7 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getSocketOption( oslSocket Socket,
@param BufferLen contains the length of the Buffer.
@param BufferLen contains the length of the Buffer.
@ret
urn
True if the option could be changed.
@ret
val
True if the option could be changed.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_setSocketOption
(
oslSocket
Socket
,
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_setSocketOption
(
oslSocket
Socket
,
oslSocketOptionLevel
Level
,
oslSocketOptionLevel
Level
,
...
@@ -773,9 +772,9 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setSocketOption( oslSocket Socket,
...
@@ -773,9 +772,9 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setSocketOption( oslSocket Socket,
/** Enables/disables non-blocking-mode of the socket.
/** Enables/disables non-blocking-mode of the socket.
@param Socket Change mode for this socket.
@param Socket Change mode for this socket.
@param On
<code>sal_True</code>
enables non-blocking mode,
@param On
sal_True
enables non-blocking mode,
<code>
sal_False</code> disables non-blocking mode.
sal_False</code> disables non-blocking mode.
@ret
urn <code>sal_True</code>
if mode could be changed.
@ret
val sal_True
if mode could be changed.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_enableNonBlockingMode
(
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_enableNonBlockingMode
(
oslSocket
Socket
,
sal_Bool
On
);
oslSocket
Socket
,
sal_Bool
On
);
...
@@ -783,7 +782,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_enableNonBlockingMode(
...
@@ -783,7 +782,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_enableNonBlockingMode(
/** Query state of non-blocking-mode of the socket.
/** Query state of non-blocking-mode of the socket.
@param Socket Query mode for this socket.
@param Socket Query mode for this socket.
@ret
urn
True if non-blocking-mode is enabled.
@ret
val
True if non-blocking-mode is enabled.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_isNonBlockingMode
(
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_isNonBlockingMode
(
oslSocket
Socket
);
oslSocket
Socket
);
...
@@ -791,15 +790,12 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isNonBlockingMode(
...
@@ -791,15 +790,12 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isNonBlockingMode(
/** Queries the socket for its type.
/** Queries the socket for its type.
@param[in] Socket The socket to query.
@param[in] Socket The socket to query.
@return one of:
@retval osl_Socket_TypeStream
<ul>
@retval osl_Socket_TypeDgram
<li> osl_Socket_TypeStream
@retval osl_Socket_TypeRaw
<li> osl_Socket_TypeDgram
@retval osl_Socket_TypeRdm
<li> osl_Socket_TypeRaw
@retval osl_Socket_TypeSeqPacket
<li> osl_Socket_TypeRdm
@retval osl_invalid_SocketType if an error occurred
<li> osl_Socket_TypeSeqPacket
<li> osl_invalid_SocketType, if an error occurred
</ul>
*/
*/
SAL_DLLPUBLIC
oslSocketType
SAL_CALL
osl_getSocketType
(
SAL_DLLPUBLIC
oslSocketType
SAL_CALL
osl_getSocketType
(
oslSocket
Socket
);
oslSocket
Socket
);
...
@@ -812,9 +808,9 @@ SAL_DLLPUBLIC void SAL_CALL osl_getLastSocketErrorDescription(
...
@@ -812,9 +808,9 @@ SAL_DLLPUBLIC void SAL_CALL osl_getLastSocketErrorDescription(
oslSocket
Socket
,
rtl_uString
**
strError
);
oslSocket
Socket
,
rtl_uString
**
strError
);
/** returns a constant describing the last error for the socket system.
/** returns a constant describing the last error for the socket system.
@ret
urn <code>osl_Socket_E_NONE</code> if no error occurred,
@ret
val osl_Socket_E_NONE if no error occurred
<code>osl_invalid_SocketError</code>
if an unknown (unmapped)
@retval osl_invalid_SocketError
if an unknown (unmapped)
error occurred, otherwise an enum describing the
error.
error occurred, otherwise an enum describing the error.
*/
*/
SAL_DLLPUBLIC
oslSocketError
SAL_CALL
osl_getLastSocketError
(
SAL_DLLPUBLIC
oslSocketError
SAL_CALL
osl_getLastSocketError
(
oslSocket
Socket
);
oslSocket
Socket
);
...
@@ -853,7 +849,7 @@ SAL_DLLPUBLIC void SAL_CALL osl_removeFromSocketSet(oslSocketSet Set, oslSocket
...
@@ -853,7 +849,7 @@ SAL_DLLPUBLIC void SAL_CALL osl_removeFromSocketSet(oslSocketSet Set, oslSocket
/** Checks if socket is in the set.
/** Checks if socket is in the set.
@param Set the set to be checked.
@param Set the set to be checked.
@param Socket check if this socket is in the set.
@param Socket check if this socket is in the set.
@ret
urn <code>sal_True</code>
if socket is in the set.
@ret
val sal_True
if socket is in the set.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_isInSocketSet
(
oslSocketSet
Set
,
oslSocket
Socket
);
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_isInSocketSet
(
oslSocketSet
Set
,
oslSocket
Socket
);
...
...
include/osl/time.h
Dosyayı görüntüle @
ece792ff
...
@@ -135,7 +135,7 @@ typedef struct _oslDateTime
...
@@ -135,7 +135,7 @@ typedef struct _oslDateTime
/** Get the current system time as TimeValue.
/** Get the current system time as TimeValue.
@ret
urn
false if any error occurs.
@ret
val
false if any error occurs.
*/
*/
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_getSystemTime
(
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_getSystemTime
(
TimeValue
*
pTimeVal
);
TimeValue
*
pTimeVal
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment