このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


class Socket
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: osl ::

class Socket


Base Classes
非,不,無.
Known Derived Classes
StreamSocket
AcceptorSocket
DatagramSocket

事実上の abstract interface template
NO NO NO NO
とじ込み/提出する
socket_decl.hxx

Public Members

Methods


Socket( );

Socket( const Socket & socket );

Socket( oslSocket socketHandle );

Socket( oslSocket socketHandle, __sal_NoAcquire noacquire );
The instance takes over the 扱う's 所有権 without acquiring the 扱う, but 解放(する)s it within the dtor.

~Socket( );
Destructor. 解放(する)s the underlying 扱う
Socket &
操作者=( oslSocket socketHandle );
Assignment 操作者. If socket was already created, the old one will be discarded.
Socket &
操作者=( const Socket & sock );
Assignment 操作者. If socket was already created, the old one will be discarded.
sal_Bool
操作者==( const Socket & rSocket ) const;
sal_Bool
操作者==( const oslSocket socketHandle ) const;
無効の
shutdown( oslSocketDirection Direction = osl_Socket_DirReadWrite );
の近くにs a 限定された or both directions of the bidirectional stream.
無効の
の近くに( );
無効の
getLocalAddr( SocketAddr & Addr ) const;
Retrieves the 演説(する)/住所 of the 地元の interface of this socket.
sal_Int32
getLocalPort( ) const;
Get the 地元の port of the socket. Usually used after 貯蔵所d().
::rtl::OUString
getLocalHost( ) const;
Get the hostname for the 地元の interface.
無効の
getPeerAddr( SocketAddr & Addr ) const;
Retrieves the 演説(する)/住所 of the remote host of this socket.
sal_Int32
getPeerPort( ) const;
Get the remote port of the socket.
::rtl::OUString
getPeerHost( ) const;
Get the hostname for the remote interface.
sal_Bool
貯蔵所d( const SocketAddr & LocalInterface );
貯蔵所d the socket to the 明示するd (地元の) interface.
sal_Bool
isRecvReady( const TimeValue * pTimeout = 0 ) const;
Checks if read 操作/手術s will 封鎖する.
sal_Bool
isSendReady( const TimeValue * pTimeout = 0 ) const;
Checks if send 操作/手術s will 封鎖する.
sal_Bool
isExceptionPending( const TimeValue * pTimeout = 0 ) const;
Checks if a request for out-of-禁止(する)d data will 封鎖する.
oslSocketType
getType( ) const;
Queries the socket for its type.
sal_Int32
getOption( oslSocketOption 選択, 無効の * pBuffer, sal_uInt32 BufferLen, oslSocketOptionLevel Level = osl_Socket_LevelSocket ) const;
Retrieves 選択-せいにするs associated with the socket.
sal_Bool
setOption( oslSocketOption 選択, 無効の * pBuffer, sal_uInt32 BufferLen, oslSocketOptionLevel Level = osl_Socket_LevelSocket ) const;
始める,決めるs the sockets せいにするs.
sal_Bool
setOption( oslSocketOption 選択, sal_Int32 nValue );
Convenience 機能(する)/行事 for setting sal_Bool and sal_Int32 選択 values.
sal_Int32
getOption( oslSocketOption 選択 ) const;
Convenience 機能(する)/行事 for retrieving sal_Bool and sal_Int32 選択 values.
sal_Bool
enableNonBlockingMode( sal_Bool bNonBlockingMode );
Enables/無能にするs 非,不,無-封鎖するing 方式 of the socket.
sal_Bool
isNonBlockingMode( ) const;
Query 封鎖するing 方式 of the socket.
無効の
clearError( ) const;
(疑いを)晴らすs the error status
oslSocketError
getError( ) const;
returns a constant decribing the last error for the socket system.
::rtl::OUString
getErrorAsString( ) const;
Builds a string with the last error-message for the socket.
oslSocket
getHandle( ) const;
Returns the underlying 扱う unacquired (The 報知係 must acquire it to keep it).

保護するd Members

Methods


Socket( oslSocketType Type, oslAddrFamily Family = osl_Socket_FamilyInet, oslProtocol 議定書 = osl_Socket_ProtocolIp );
Creates a socket. 公式文書,認める it's 保護するd.

Data

oslSocket m_handle;

最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.