The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

:: 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 Feather

Copyright & License | Privacy | Contact Us | Donate

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