mbed-os5 only for TYBLE16
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
features/netsocket/ICMPSocket.cpp@1:9db0e321a9f4, 2019-12-31 (annotated)
- Committer:
- kenjiArai
- Date:
- Tue Dec 31 06:02:27 2019 +0000
- Revision:
- 1:9db0e321a9f4
updated based on mbed-os5.15.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 1:9db0e321a9f4 | 1 | /* Socket |
kenjiArai | 1:9db0e321a9f4 | 2 | * Copyright (c) 2015 ARM Limited |
kenjiArai | 1:9db0e321a9f4 | 3 | * |
kenjiArai | 1:9db0e321a9f4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
kenjiArai | 1:9db0e321a9f4 | 5 | * you may not use this file except in compliance with the License. |
kenjiArai | 1:9db0e321a9f4 | 6 | * You may obtain a copy of the License at |
kenjiArai | 1:9db0e321a9f4 | 7 | * |
kenjiArai | 1:9db0e321a9f4 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
kenjiArai | 1:9db0e321a9f4 | 9 | * |
kenjiArai | 1:9db0e321a9f4 | 10 | * Unless required by applicable law or agreed to in writing, software |
kenjiArai | 1:9db0e321a9f4 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
kenjiArai | 1:9db0e321a9f4 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kenjiArai | 1:9db0e321a9f4 | 13 | * See the License for the specific language governing permissions and |
kenjiArai | 1:9db0e321a9f4 | 14 | * limitations under the License. |
kenjiArai | 1:9db0e321a9f4 | 15 | */ |
kenjiArai | 1:9db0e321a9f4 | 16 | |
kenjiArai | 1:9db0e321a9f4 | 17 | #include "ICMPSocket.h" |
kenjiArai | 1:9db0e321a9f4 | 18 | #include "Timer.h" |
kenjiArai | 1:9db0e321a9f4 | 19 | #include "mbed_assert.h" |
kenjiArai | 1:9db0e321a9f4 | 20 | |
kenjiArai | 1:9db0e321a9f4 | 21 | ICMPSocket::ICMPSocket() |
kenjiArai | 1:9db0e321a9f4 | 22 | { |
kenjiArai | 1:9db0e321a9f4 | 23 | _socket_stats.stats_update_proto(this, NSAPI_ICMP); |
kenjiArai | 1:9db0e321a9f4 | 24 | } |
kenjiArai | 1:9db0e321a9f4 | 25 | |
kenjiArai | 1:9db0e321a9f4 | 26 | nsapi_protocol_t ICMPSocket::get_proto() |
kenjiArai | 1:9db0e321a9f4 | 27 | { |
kenjiArai | 1:9db0e321a9f4 | 28 | return NSAPI_ICMP; |
kenjiArai | 1:9db0e321a9f4 | 29 | } |