Language
The Free and Open Productivity Suite
PUBLIC MEMBERS: |
CLASSES
| STRUCTS
| UNIONS
| ENUMS
| TYPEDEFS
| METHODS
| STATIC METHODS
| DATA
| STATIC DATA |
:: 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
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.