Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
NetworkStack_stub.cpp
00001 /* 00002 * Copyright (c) 2015, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #include "NetworkStack.h" 00019 #include "nsapi_dns.h" 00020 #include "mbed.h" 00021 #include "stddef.h" 00022 #include <new> 00023 00024 00025 // Default NetworkStack operations 00026 nsapi_error_t NetworkStack::gethostbyname(const char *name, SocketAddress *address, nsapi_version_t version) 00027 { 00028 return NSAPI_ERROR_OK ; 00029 } 00030 00031 nsapi_error_t NetworkStack::add_dns_server(const SocketAddress &address) 00032 { 00033 return NSAPI_ERROR_OK ; 00034 } 00035 00036 nsapi_error_t NetworkStack::setstackopt(int level, int optname, const void *optval, unsigned optlen) 00037 { 00038 return NSAPI_ERROR_UNSUPPORTED ; 00039 } 00040 00041 nsapi_error_t NetworkStack::getstackopt(int level, int optname, void *optval, unsigned *optlen) 00042 { 00043 return NSAPI_ERROR_UNSUPPORTED ; 00044 } 00045 00046 nsapi_error_t NetworkStack::setsockopt(void *handle, int level, int optname, const void *optval, unsigned optlen) 00047 { 00048 return NSAPI_ERROR_UNSUPPORTED ; 00049 } 00050 00051 nsapi_error_t NetworkStack::getsockopt(void *handle, int level, int optname, void *optval, unsigned *optlen) 00052 { 00053 return NSAPI_ERROR_UNSUPPORTED ; 00054 } 00055 00056 // Conversion function for network stacks 00057 NetworkStack *nsapi_create_stack(nsapi_stack_t *stack) 00058 { 00059 return NULL; 00060 } 00061 00062 NetworkStack *nsapi_create_stack(NetworkStack *stack) 00063 { 00064 return NULL; 00065 } 00066
Generated on Tue Jul 12 2022 13:31:05 by
