Overview | Namespace | Class | 索引 | Help |
全世界の 機能(する)/行事s in 全世界の Namespace C++
in Sourcefile socket.h
- osl_acceptConnectionOnSocket
- extern "C"
oslSocket osl_acceptConnectionOnSocket( oslSocket Socket, oslSocketAddr * pAddr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Waits for an ingoing 関係 on the socket. This call 封鎖するs if there is no 後継の 関係 現在の.
- Parameters
pAddr if pAddr is != 0, the peers 演説(する)/住所 is returned.
- Return
- 0 if the 受託する-call failed, さもなければ you get a socket 代表するing the new 関係.
- osl_acquireSocket
- extern "C"
無効の osl_acquireSocket( oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 増加するs the refcount of the socket 扱う by one
- osl_addToSocketSet
- extern "C"
無効の osl_addToSocketSet( oslSocketSet 始める,決める, oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 追加するs a socket to the 始める,決める.
- Parameters
始める,決める the 始める,決める were the socket is 追加するd.
Socket the socket to be 追加するd.
- osl_bindAddrToSocket
- extern "C"
sal_Bool osl_bindAddrToSocket( oslSocket Socket, oslSocketAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 貯蔵所d the given 演説(する)/住所 to the socket.
- Parameters
Socket 演説(する)/住所 - Return
sal_False
if the 貯蔵所d failed,sal_True
if successful.- See Also
- osl_getLastSocketError()
- osl_clearSocketSet
- extern "C"
無効の osl_clearSocketSet( oslSocketSet 始める,決める );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- (疑いを)晴らすs the 始める,決める from all 以前 追加するd sockets.
- Parameters
始める,決める the 始める,決める to be (疑いを)晴らすd.
- osl_closeSocket
- extern "C"
無効の osl_closeSocket( oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- の近くにs the socket 終結させるing any 現在進行中の dataflow.
- osl_connectSocketTo
- extern "C"
oslSocketResult osl_connectSocketTo( oslSocket Socket, oslSocketAddr Addr, const TimeValue * pTimeout );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Connects the socket to the given 演説(する)/住所.
- Parameters
Socket a bound socket.
Addr the peer 演説(する)/住所.
pTimeout Timeout value or NULL for 封鎖するing.
- Return
osl_Socket_Ok
on successful 関係,osl_Socket_TimedOut
if 操作/手術 timed out,osl_Socket_Interrupted
if 操作/手術 was interruptedosl_Socket_Error
if the 関係 failed.
- osl_copyHostAddr
- extern "C"
oslHostAddr osl_copyHostAddr( const oslHostAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Create a copy of the given Addr.
- Return
- The copied 演説(する)/住所 or 0 upon 失敗.
- osl_copySocketAddr
- extern "C"
oslSocketAddr osl_copySocketAddr( oslSocketAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Creates a new SocketAddress and fills it from Addr.
- osl_createEmptySocketAddr
- extern "C"
oslSocketAddr osl_createEmptySocketAddr( oslAddrFamily Family );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Creates a socket-演説(する)/住所 for the given family.
- Parameters
family If family == osl_Socket_FamilyInet the 演説(する)/住所 is 始める,決める to INADDR_ANY port 0.
- Return
- 0 if 演説(する)/住所 could not be created.
- osl_createHostAddr
- extern "C"
oslHostAddr osl_createHostAddr( rtl_uString * strHostname, const oslSocketAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Create an oslHostAddr from given hostname and socket 演説(する)/住所.
- Parameters
strHostname The hostname to be 蓄える/店d.
Addr The socket 演説(する)/住所 to be 蓄える/店d.
- Return
- The created 演説(する)/住所 or 0 upon 失敗.
- osl_createHostAddrByAddr
- extern "C"
oslHostAddr osl_createHostAddrByAddr( const oslSocketAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Create an oslHostAddr by 逆転する 決意/決議 of the given Addr. Successful 指名する 決意/決議 should result in the fully qualified domain 指名する (FQDN) and it's 演説(する)/住所 as hostname and socket 演説(する)/住所 members of the resulting oslHostAddr.
- Parameters
Addr The socket 演説(する)/住所 to be 逆転する 解決するd.
- Return
- The resulting 演説(する)/住所 or 0 upon 失敗.
- osl_createHostAddrByName
- extern "C"
oslHostAddr osl_createHostAddrByName( rtl_uString * strHostname );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Create an oslHostAddr by 解決するing the given strHostname. Successful 指名する 決意/決議 should result in the fully qualified domain 指名する (FQDN) and it's 演説(する)/住所 as hostname and socket 演説(する)/住所 members of the resulting oslHostAddr.
- Parameters
strHostname The hostname to be 解決するd.
- Return
- The resulting 演説(する)/住所 or 0 upon 失敗.
- osl_createInetBroadcastAddr
- extern "C"
oslSocketAddr osl_createInetBroadcastAddr( rtl_uString * strDottedAddr, sal_Int32 Port );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Create an internet 演説(する)/住所 usable for sending broadcast datagrams. To 限界 the broadcast to your subnet, pass your hosts IP 演説(する)/住所 in dotted decimal notation as first argument.
- See Also
- osl_sendToSocket()
oslSocketAddr
- Parameters
strDottedAddr dotted decimal internet 演説(する)/住所, may be 0.
Port port number in host byte order.
- Return
- 0 if 演説(する)/住所 could not be created.
- osl_createInetSocketAddr
- extern "C"
oslSocketAddr osl_createInetSocketAddr( rtl_uString * strDottedAddr, sal_Int32 Port );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Create an internet-演説(する)/住所, consisting of hostaddress and port. We 解釈する/通訳する strDottedAddr as a dotted-decimal inet-addr (e.g. "141.99.128.50").
- Parameters
strDottedAddr String with dotted 演説(する)/住所.
Port portnumber in host byte order.
- Return
- 0 if 演説(する)/住所 could not be created.
- osl_createSocket
- extern "C"
oslSocket osl_createSocket( oslAddrFamily Family, oslSocketType Type, oslProtocol 議定書 );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Create a socket of the 明示するd Family and Type. The semantic of the 議定書 parameter depends on the given family and type.
- Return
- 0 if socket could not be created, さもなければ you get a 扱う to the 配分するd socket-datastructure.
- osl_createSocketSet
- extern "C"
oslSocketSet osl_createSocketSet( 無効の );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Creates a 始める,決める of sockets to be used with osl_demultiplexSocketEvents().
- Return
- A oslSocketSet or 0 if 創造 failed.
- osl_demultiplexSocketEvents
- extern "C"
sal_Int32 osl_demultiplexSocketEvents( oslSocketSet IncomingSet, oslSocketSet OutgoingSet, oslSocketSet OutOfBandSet, const TimeValue * pTimeout );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Checks 多重の sockets for events.
- Parameters
IncomingSet Checks the sockets in this 始める,決める for 後継の events (read, 受託する). If the 始める,決める is 0, it is just skipped.
OutgoingSet Checks the sockets in this 始める,決める for 去っていく/社交的な events (令状, connect). If the 始める,決める is 0, it is just skipped.
OutOfBandSet Checks the sockets in this 始める,決める for out-of-禁止(する)d events. If the 始める,決める is 0, it is just skipped.
msTimeout Number of milliseconds to wait for events. If msTimeout is -1, the call will 封鎖する until an event or an error occurs.
- Return
- -1 on errors, さもなければ the number of sockets with 未解決の events. In 事例/患者 of timeout, the number might be 0.
- osl_destroyHostAddr
- extern "C"
無効の osl_destroyHostAddr( oslHostAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 解放する/自由なs all 資源s 配分するd by Addr. The 扱う Addr must not be used after the call anymore.
- osl_destroySocketAddr
- extern "C"
無効の osl_destroySocketAddr( oslSocketAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 解放する/自由なs all 資源s 配分するd by Addr. The 扱う Addr must not be used after the call anymore.
- osl_destroySocketSet
- extern "C"
無効の osl_destroySocketSet( oslSocketSet 始める,決める );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Destroys a oslSocketSet.
- osl_enableNonBlockingMode
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Enables/無能にするs 非,不,無-封鎖するing-方式 of the socket.
- Parameters
Socket Change 方式 for this socket.
On sal_True
enables 非,不,無-封鎖するing 方式,sal_False
無能にするs 非,不,無-封鎖するing 方式.- Return
sal_True
if 方式 could be changed.
- osl_getAddrOfSocketAddr
- extern "C"
oslSocketResult osl_getAddrOfSocketAddr( oslSocketAddr Addr, sal_Sequence * * ppByteSeq );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Returns the addr field in the struct sockaddr.
- Parameters
ppByteSeq out parameter. After the call, *ppByteSeq 含む/封じ込めるs the ipadrress in 網状組織 byteorder. *ppByteSeq may be 0 in 事例/患者 of an 無効の socket 扱う.
- Return
osl_Socket_Ok
orosl_Socket_Error
- osl_getDottedInetAddrOfSocketAddr
- extern "C"
oslSocketResult osl_getDottedInetAddrOfSocketAddr( oslSocketAddr Addr, rtl_uString * * strDottedInetAddr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Gets the 演説(する)/住所 in dotted decimal 判型.
- Parameters
strDottedInetAddr out-parameter. 含む/封じ込めるs the dotted decimal 演説(する)/住所 (e.g. 141.99.20.34) 代表するd by the 演説(する)/住所. If the 演説(する)/住所 is 無効の or not of type
osl_Socket_FamilyInet
, it returns 0.- Return
osl_Socket_Ok
orosl_Socket_Error
- osl_getFamilyOfSocketAddr
- extern "C"
oslAddrFamily osl_getFamilyOfSocketAddr( oslSocketAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Retrieves the 演説(する)/住所-family from the Addr.
- Return
- the family of the socket-演説(する)/住所.
In 事例/患者 of an unknown family you get
osl_Socket_FamilyInvalid
.
- osl_getHostnameOfHostAddr
- extern "C"
無効の osl_getHostnameOfHostAddr( const oslHostAddr Addr, rtl_uString * * strHostname );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Get the hostname member of Addr.
- Return
- The hostname or 0 upon 失敗.
- osl_getHostnameOfSocketAddr
- extern "C"
oslSocketResult osl_getHostnameOfSocketAddr( oslSocketAddr Addr, rtl_uString * * strHostname );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Returns the hostname 代表するd by Addr.
- Parameters
strHostname out-parameter. The hostname 代表するd by the 演説(する)/住所. If there is no hostname to be 設立する, it returns 0.
- osl_getInetPortOfSocketAddr
- extern "C"
sal_Int32 osl_getInetPortOfSocketAddr( oslSocketAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Retrieves the internet port-number of Addr.
- Return
- the port-number of the 演説(する)/住所 in host-byte order. If Addr
is not an 演説(する)/住所 of type
osl_Socket_FamilyInet
, it returnsOSL_INVALID_PORT
- osl_getLastSocketError
- extern "C"
oslSocketError osl_getLastSocketError( oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- returns a constant decribing the last error for the socket system.
- Return
osl_Socket_E_NONE
if no error occured,osl_invalid_SocketError
if an unknown (unmapped) error occured, さもなければ an enum 述べるing the error.
- osl_getLastSocketErrorDescription
- extern "C"
無効の osl_getLastSocketErrorDescription( oslSocket Socket, rtl_uString * * strError );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- returns a string which 述べるs the last socket error.
- Parameters
strError out-parameter. The string that receives the error message.
- osl_getLocalAddrOfSocket
- extern "C"
oslSocketAddr osl_getLocalAddrOfSocket( oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Retrieves the 演説(する)/住所 of the 地元の end of the socket. 公式文書,認める that a socket must be bound or connected before a vaild 演説(する)/住所 can be returned.
- Return
- 0 if socket-演説(する)/住所 could not be created, さもなければ you get the created Socket-演説(する)/住所.
- osl_getLocalHostname
- extern "C"
oslSocketResult osl_getLocalHostname( rtl_uString * * strLocalHostname );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Retrieve this machines hostname. May not always be a fully qualified domain 指名する (FQDN).
- Parameters
strLocalHostname out-parameter. The string that receives the 地元の host 指名する.
- Return
sal_True
upon success,sal_False
さもなければ.
- osl_getPeerAddrOfSocket
- extern "C"
oslSocketAddr osl_getPeerAddrOfSocket( oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Retrieves the 演説(する)/住所 of the remote end of the socket. 公式文書,認める that a socket must be connected before a vaild 演説(する)/住所 can be returned.
- Return
- 0 if socket-演説(する)/住所 could not be created, さもなければ you get the created Socket-演説(する)/住所.
- osl_getServicePort
- extern "C"
sal_Int32 osl_getServicePort( rtl_uString * strServicename, rtl_uString * strProtocol );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Looks up the port-number 指定するd to the 明示するd service/議定書-pair. (e.g. "ftp" "tcp").
- Return
- OSL_INVALID_PORT if no appropriate 入ること/参加(者) was 設立する, さもなければ the port-number.
- osl_getSocketAddrOfHostAddr
- extern "C"
oslSocketAddr osl_getSocketAddrOfHostAddr( const oslHostAddr Addr );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Get the socket 演説(する)/住所 member of Addr.
- Return
- The socket 演説(する)/住所 or 0 upon 失敗.
- osl_getSocketOption
- extern "C"
sal_Int32 osl_getSocketOption( oslSocket Socket, oslSocketOptionLevel Level, oslSocketOption 選択, 無効の * pBuffer, sal_uInt32 BufferLen );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Retrieves せいにするs associated with the socket.
- Parameters
Socket is the socket to query.
Level selects the level for which an 選択 should be queried. Valid values are:
- osl_sol_socket: Socket Level
- osl_sol_tcp: Level of 伝達/伝染 支配(する)/統制する 議定書
選択 denotes the 選択 to query. Valid values (depending on the Level) are:
-
osl_Socket_Option_Debug
(sal_Bool) Socket debug 旗 1 = enabled, 0 = 無能にするd. -
osl_Socket_OptionAcceptConn
-
osl_Socket_OptionReuseAddr
(sal_Bool) 許すs the socket to be bound to an 演説(する)/住所 that is already in use. 1 = 多重の bound 許すd, 0 = no 多重の bounds 許すd osl_Socket_OptionKeepAlive
(sal_Bool) Keepalive packets are sent by the underlying socket. 1 = enabled, 0 = 無能にするdosl_Socket_OptionDontRoute
(sal_Bool) Do not 大勝する: send 直接/まっすぐに to interface. 1 = do not 大勝する , 0 = 大勝するing possibleosl_Socket_OptionBroadcast
(sal_Bool) 伝達/伝染 of broadcast messages are 許すd on the socket. 1 = 伝達/伝染 許すd, 0 = 伝達/伝染 disallowedosl_Socket_OptionUseLoopback
osl_Socket_OptionLinger
(sal_Int32) ぐずぐず残る on の近くに if unsent data is 現在の. 0 = ぐずぐず残る is off, > 0 = timeout in seconds.osl_Socket_OptionOOBinLine
osl_Socket_OptionSndBuf
(sal_Int32) Size of the send 衝撃を和らげるもの in bytes. Data is sent after SndTimeo or when the 衝撃を和らげるもの is 十分な. This 許すs faster 令状ing to the socket.osl_Socket_OptionRcvBuf
(sal_Int32) Size of the receive 衝撃を和らげるもの in bytes. Data is sent after SndTimeo or when the 衝撃を和らげるもの is 十分な. This 許すs faster 令状ing to the socket and larger packet sizes.osl_Socket_OptionSndLowat
osl_Socket_OptionRcvLowat
osl_Socket_OptionSndTimeo
(sal_Int32) Data is sent after this timeout. This 許すs 集会 of data to send larger 一括s but 増加するs latency times.osl_Socket_OptionRcvTimeo
osl_Socket_OptionError
osl_Socket_OptionType
osl_Socket_OptionTcpNoDelay
無能にするs the Nagle algorithm for send coalescing. (Do not collect data until a packet is 十分な, instead send immediatly. This 増加するs 網状組織 traffic but might 改善する latency-times.) 1 = 無能にするs the algorithm, 0 = keeps it enabled.
osl_Socket_LevelSocket
.pBuffer Pointer to a 衝撃を和らげるもの large enough to take the 願望(する)d せいにする-value.
BufferSize 含む/封じ込めるs the length of the 衝撃を和らげるもの.
- Return
- -1 if an error occured or else the size of the data copied into pBuffer.
- See Also
- osl_setSocketOption()
- osl_getSocketType
- extern "C"
oslSocketType osl_getSocketType( oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Queries the socket for its type.
- Return
- one of:
- osl_Socket_TypeStream
- osl_Socket_TypeDgram
- osl_Socket_TypeRaw
- osl_Socket_TypeRdm
- osl_Socket_TypeSeqPacket
- osl_invalid_SocketType, if an error occured
- osl_isEqualSocketAddr
- extern "C"
sal_Bool osl_isEqualSocketAddr( oslSocketAddr Addr1, oslSocketAddr Addr2 );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Compares the values of two SocketAddresses.
- Return
sal_True
if both 演説(する)/住所s denote the same socket 演説(する)/住所,sal_False
さもなければ.
- osl_isExceptionPending
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Checks if a request for out-of-禁止(する)d data will 封鎖する. You can 明示する a timeout-value in seconds/microseconds that denotes how long the 操作/手術 will 封鎖する if the Socket has no 未解決の OOB data.
- Return
sal_True
if OOB-request 操作/手術s (recv with appropriate 旗s) on the Socket will NOT 封鎖する;sal_False
if it would 封鎖する or if an error occured.- Parameters
Socket the Socket to perfom the 操作/手術 on.
pTimeout if NULL, the 操作/手術 will 封鎖する without a timeout.
- osl_isInSocketSet
- extern "C"
sal_Bool osl_isInSocketSet( oslSocketSet 始める,決める, oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Checks if socket is in the 始める,決める.
- Parameters
始める,決める the 始める,決める to be checked.
Socket check if this socket is in the 始める,決める.
- Return
sal_True
if socket is in the 始める,決める.
- osl_isNonBlockingMode
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Query 明言する/公表する of 非,不,無-封鎖するing-方式 of the socket.
- Parameters
Socket Query 方式 for this socket.
- Return
- True if 非,不,無-封鎖するing-方式 is enabled.
- osl_isReceiveReady
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Checks if read 操作/手術s will 封鎖する.
- Description
- You can 明示する a timeout-value in seconds/microseconds that denotes how long the 操作/手術 will 封鎖する if the Socket is not ready.
- Return
sal_True
if read 操作/手術s (recv, recvFrom, 受託する) on the Socket will NOT 封鎖する;sal_False
if it would 封鎖する or if an error occured.- Parameters
Socket the Socket to perfom the 操作/手術 on.
pTimeout if NULL, the 操作/手術 will 封鎖する without a timeout.
- osl_isSendReady
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Checks if send 操作/手術s will 封鎖する. You can 明示する a timeout-value in seconds/microseconds that denotes how long the 操作/手術 will 封鎖する if the Socket is not ready.
- Return
sal_True
if send 操作/手術s (send, sendTo) on the Socket will NOT 封鎖する;sal_False
if it would 封鎖する or if an error occured.- Parameters
Socket the Socket to perfom the 操作/手術 on.
pTimeout if NULL, the 操作/手術 will 封鎖する without a timeout. さもなければ the time define by timeout value.
- osl_listenOnSocket
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 準備するs the socket to 行為/法令/行動する as an acceptor of 後継の 関係s. You should call "listen" before you use "受託する".
- Parameters
MaxPendingConnections denotes the length of the 列 of 未解決の 関係s for this socket. If MaxPendingConnections is -1, the systems default value will be used (Usually 5).
- Return
sal_False
if the listen failed.
- osl_readSocket
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Retrieves n bytes from the stream and copies them into pBuffer. The 機能(する)/行事 避けるs incomplete reads 予定 to packet 境界s.
- Parameters
pBuffer receives the read data.
n the number of bytes to read. pBuffer must be large enough to 持つ/拘留する the n bytes!
- Return
- the number of read bytes. The number will only be smaller than n if an exceptional 条件 (e.g. 関係 の近くにd) occurs.
- osl_receiveFromSocket
- extern "C"
sal_Int32 osl_receiveFromSocket( oslSocket Socket, oslSocketAddr SenderAddr, 無効の * pBuffer, sal_uInt32 BufferSize, oslSocketMsgFlag 旗 );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Tries to receives BufferSize data from the (usually unconnected) (datagram-)socket, if no error occurs.
- Parameters
Socket A bound socket to be used to listen for a datagram.
pSenderAddr An pointer to a created oslSocketAddr 扱う or to a null 扱う. After the call, it will 含む/封じ込める the 建設するd oslSocketAddr of the datagrams sender. If pSenderAddr itself is 0, it is ignored.
pBuffer Points to a 衝撃を和らげるもの that will be filled with the received datagram.
BufferSize The size of pBuffer.
旗 Modifier for the call. Valid values are:
osl_Socket_MsgNormal
osl_Socket_MsgOOB
osl_Socket_MsgPeek
osl_Socket_MsgDontRoute
osl_Socket_MsgMaxIOVLen
- Return
- the number of received bytes.
- osl_receiveSocket
- extern "C"
sal_Int32 osl_receiveSocket( oslSocket Socket, 無効の * pBuffer, sal_uInt32 BytesToRead, oslSocketMsgFlag 旗 );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Tries to receive BytesToRead data from the connected socket, if no error occurs. 公式文書,認める that incomplete recvs 予定 to packet 境界s may occur.
- Parameters
Socket A connected socket to be used to listen on.
pBuffer Points to a 衝撃を和らげるもの that will be filled with the received data.
BytesToRead The number of bytes to read. pBuffer must have at least this size.
旗 Modifier for the call. Valid values are:
osl_Socket_MsgNormal
osl_Socket_MsgOOB
osl_Socket_MsgPeek
osl_Socket_MsgDontRoute
osl_Socket_MsgMaxIOVLen
- Return
- the number of received bytes.
- osl_releaseSocket
- extern "C"
無効の osl_releaseSocket( oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 減少(する)s the refcount of the socket 扱う by one.
- Description
- If the refcount 減少(する)s to 無, the underlying socket 扱う is destroyed and becomes 無効の.
- osl_removeFromSocketSet
- extern "C"
無効の osl_removeFromSocketSet( oslSocketSet 始める,決める, oslSocket Socket );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 除去するs a socket from the 始める,決める.
- Parameters
始める,決める the 始める,決める were the socket is 除去するd from.
Socket the socket to be 除去するd.
- osl_resolveHostname
- extern "C"
oslSocketAddr osl_resolveHostname( rtl_uString * strHostname );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Uses the systems 指名する-service interface to find an 演説(する)/住所 for strHostname.
- Parameters
strHostname The 指名する for which you search for an 演説(する)/住所.
- Return
- The 願望(する)d 演説(する)/住所 if one could be 設立する, さもなければ 0. Don't forget to destroy the 演説(する)/住所 if you don't need it any longer.
- osl_sendSocket
- extern "C"
sal_Int32 osl_sendSocket( oslSocket Socket, const 無効の * pBuffer, sal_uInt32 BytesToSend, oslSocketMsgFlag 旗 );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Tries to send BytesToSend data from the connected socket, if no error occurs.
- Parameters
Socket A connected socket.
pBuffer Points to a 衝撃を和らげるもの that 含む/封じ込めるs the send-data.
BytesToSend The number of bytes to send. pBuffer must have at least this size.
旗 Modifier for the call. Valid values are:
osl_Socket_MsgNormal
osl_Socket_MsgOOB
osl_Socket_MsgPeek
osl_Socket_MsgDontRoute
osl_Socket_MsgMaxIOVLen
- Return
- the number of 移転d bytes.
- osl_sendToSocket
- extern "C"
sal_Int32 osl_sendToSocket( oslSocket Socket, oslSocketAddr ReceiverAddr, const 無効の * pBuffer, sal_uInt32 BytesToSend, oslSocketMsgFlag 旗 );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- Description
- Tries to send one datagram with BytesToSend data to the given ReceiverAddr 経由で the (暗黙に unconnected) datagram-socket. Since there is only sent one packet, the 機能(する)/行事 sends the data always 完全にする even with incomplete packet 境界s.
- Parameters
Socket A bound or unbound socket. Socket will be bound after a successful call.
ReceiverAddr An initialized oslSocketAddress that 含む/封じ込めるs the 目的地 演説(する)/住所 for this send.
pBuffer Points to a 衝撃を和らげるもの that 含む/封じ込めるs the send-data.
BytesToSend The number of bytes to send. pBuffer must have at least this size.
旗 Modifier for the call. Valid values are:
osl_Socket_MsgNormal
osl_Socket_MsgOOB
osl_Socket_MsgPeek
osl_Socket_MsgDontRoute
osl_Socket_MsgMaxIOVLen
- Return
- the number of 移転d bytes.
- osl_setAddrOfSocketAddr
- extern "C"
oslSocketResult osl_setAddrOfSocketAddr( oslSocketAddr Addr, sal_Sequence * pByteSeq );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 始める,決めるs the addr field in the struct sockaddr with pByteSeq. pByteSeq must be in 網状組織 byte order.
- osl_setInetPortOfSocketAddr
- extern "C"
sal_Bool osl_setInetPortOfSocketAddr( oslSocketAddr Addr, sal_Int32 Port );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 始める,決めるs the Port of Addr.
- Parameters
Port is 推定する/予想するd in host byte-order.
- Return
sal_False
if Addr is not an inet-addr.
- osl_setSocketOption
- extern "C"
sal_Bool osl_setSocketOption( oslSocket Socket, oslSocketOptionLevel Level, oslSocketOption 選択, 無効の * pBuffer, sal_uInt32 BufferLen );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 始める,決めるs the sockets せいにするs.
- Parameters
Socket is the socket to 修正する.
Level selects the level for which an 選択 should be changed. Valid values are:
- osl_sol_socket: Socket Level
- osl_sol_tcp: Level of 伝達/伝染 支配(する)/統制する 議定書
選択 denotes the 選択 to 修正する. See osl_setSocketOption() for more 詳細(に述べる)s.
pBuffer Pointer to a 衝撃を和らげるもの which 含む/封じ込めるs the せいにする-value.
BufferSize 含む/封じ込めるs the length of the 衝撃を和らげるもの.
- Return
- True if the 選択 could be changed.
- osl_shutdownSocket
- extern "C"
sal_Bool osl_shutdownSocket( oslSocket Socket, oslSocketDirection Direction );
- extern "C"
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- Shuts 負かす/撃墜する communication on a connected socket.
- Parameters
Direction denotes which end of the socket should be の近くにd:
-
osl_Socket_DirRead
の近くにs read 操作/手術s. -
osl_Socket_DirReadWrite
の近くにs 令状 操作/手術s. -
osl_Socket_DirWrite
の近くにs read and 令状 操作/手術s.
-
- Return
sal_True
if the socket could be の近くにd 負かす/撃墜する.
- osl_writeSocket
-
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO NO NO NO YES
- 要約
- 令状s n bytes from pBuffer to the stream. The method 避けるs incomplete 令状s 予定 to packet 境界s.
- Parameters
pBuffer 含む/封じ込めるs the data to be written.
n the number of bytes to 令状.
- Return
- the number of written bytes. The number will only be smaller than n if an exceptional 条件 (e.g. 関係 の近くにd) occurs.
最高の,を越す of Page
Copyright © 2012, The Apache ソフトウェア 創立/基礎, Licensed under the Apache License, 見解/翻訳/版 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache ソフトウェア 創立/基礎. Other 指名するs may be trademarks of their 各々の owners.