Mbed OS Reference
Loading...
Searching...
No Matches
UDPSocket.h
1
2/** \addtogroup NetSocket */
3/** @{*/
4/* UDPSocket
5 * Copyright (c) 2015 ARM Limited
6 * SPDX-License-Identifier: Apache-2.0
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21#ifndef UDPSOCKET_H
22#define UDPSOCKET_H
23
24#include "netsocket/InternetSocket.h"
27#include "netsocket/InternetDatagramSocket.h"
28#include "rtos/EventFlags.h"
29#include "ICMPSocket.h"
30
31
32/** UDP socket implementation.
33 */
35public:
36 /** Create an uninitialized socket.
37 *
38 * @note Must call open to initialize the socket on a network stack.
39 */
41
42#if !defined(DOXYGEN_ONLY)
43
44protected:
45 nsapi_protocol_t get_proto() override;
46
47#endif //!defined(DOXYGEN_ONLY)
48
49};
50
51
52#endif
53
54/** @}*/
Network Interface base class.
NetworkStack class.
InternetDatagramSocket socket implementation.
UDP socket implementation.
Definition: UDPSocket.h:34
UDPSocket()
Create an uninitialized socket.