2016-04-06 13:50:56 +00:00
|
|
|
/* Socket
|
|
|
|
* Copyright (c) 2015 ARM Limited
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "UDPSocket.h"
|
|
|
|
#include "Timer.h"
|
2016-07-19 16:07:39 +00:00
|
|
|
#include "mbed_assert.h"
|
2016-04-06 13:50:56 +00:00
|
|
|
|
2016-06-06 21:35:12 +00:00
|
|
|
UDPSocket::UDPSocket()
|
2016-03-13 12:08:27 +00:00
|
|
|
{
|
2018-11-19 02:41:03 +00:00
|
|
|
_socket_stats.stats_update_proto(this, NSAPI_UDP);
|
2016-03-13 12:08:27 +00:00
|
|
|
}
|
|
|
|
|
2016-07-20 20:20:03 +00:00
|
|
|
nsapi_protocol_t UDPSocket::get_proto()
|
2016-05-27 04:54:05 +00:00
|
|
|
{
|
2016-07-20 20:20:03 +00:00
|
|
|
return NSAPI_UDP;
|
2016-05-27 04:54:05 +00:00
|
|
|
}
|