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

翻訳前ページへ


Methods of Class DatagramSocket
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


Methods of Class DatagramSocket


DatagramSocket
DatagramSocket(
oslAddrFamily Family = osl_Socket_FamilyInet,
oslProtocol 議定書 = osl_Socket_ProtocolIp,
oslSocketType Type = osl_Socket_TypeDgram );

事実上の abstract const volatile template static inline C-結合,連鎖
NO NO NO NO NO NO YES NO

要約
Creates a datagram socket.
Parameters
Type
is sock_dgram by default.

recvFrom
sal_Int32 recvFrom(
無効の * pBuffer,
sal_uInt32 BufferSize,
SocketAddr * pSenderAddr = 0,
oslSocketMsgFlag 旗 = osl_Socket_MsgNormal );

事実上の abstract const volatile template static inline C-結合,連鎖
NO NO NO NO NO NO YES NO

要約
Tries to receives BufferSize data from the socket, if no error occurs.
Parameters
pSenderAddr
You must 供給する pointer to a SocketAddr.
It will be    filled with the 演説(する)/住所 of the datagrams sender. 
If pSenderAddr 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.

sendTo
sal_Int32 sendTo(
const SocketAddr & ReceiverAddr,
const 無効の * pBuffer,
sal_uInt32 BufferSize,
oslSocketMsgFlag 旗 = osl_Socket_MsgNormal );

事実上の abstract const volatile template static inline C-結合,連鎖
NO NO NO NO NO NO YES NO

Description
Tries to send one datagram with BytesToSend size to the given ReceiverAddr. Since there is only send one packet, the 機能(する)/行事 doesn't care about packet 境界s.
Parameters
ReceiverAddr
A SocketAddr that 含む/封じ込めるs
the 目的地 演説(する)/住所 for this send. 

pBuffer
Points to a 衝撃を和らげるもの that 含む/封じ込めるs the send-data.
BufferSize
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.

最高の,を越す 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.