Mistake on this page?
Report an issue in GitHub or email us
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"
25 #include "netsocket/NetworkStack.h"
27 #include "netsocket/InternetDatagramSocket.h"
28 #include "rtos/EventFlags.h"
29 #include "ICMPSocket.h"
30 
31 
32 /** UDP socket implementation.
33  */
35 public:
36  /** Create an uninitialized socket.
37  *
38  * @note Must call open to initialize the socket on a network stack.
39  */
40  UDPSocket();
41 
42 #if !defined(DOXYGEN_ONLY)
43 
44 protected:
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.
UDPSocket()
Create an uninitialized socket.
UDP socket implementation.
Definition: UDPSocket.h:34
NetworkStack class.
InternetDatagramSocket socket implementation.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.