Overview | Namespace | Class | 索引 | Help |
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
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.