Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: osl ::

class DatagramSocket


Base Classes
Socket (public)
  |  
  +--DatagramSocket
Known Derived Classes
None.

virtual abstract interface template
NO NO NO NO
Summary
A connectionless socket to send and receive datagrams.
File
socket_decl.hxx

Public Members

Methods


DatagramSocket( oslAddrFamily Family = osl_Socket_FamilyInet, oslProtocol Protocol = osl_Socket_ProtocolIp, oslSocketType Type = osl_Socket_TypeDgram );
Creates a datagram socket.
sal_Int32
recvFrom( void * pBuffer, sal_uInt32 BufferSize, SocketAddr * pSenderAddr = 0, oslSocketMsgFlag Flag = osl_Socket_MsgNormal );
Tries to receives BufferSize data from the socket, if no error occurs.
sal_Int32
sendTo( const SocketAddr & ReceiverAddr, const void * pBuffer, sal_uInt32 BufferSize, oslSocketMsgFlag Flag = osl_Socket_MsgNormal );

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.