Gleb Klochkov / Mbed OS Climatcontroll_Main

Dependencies:   esp8266-driver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SocketAddress_stub.cpp Source File

SocketAddress_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 "SocketAddress.h"
00019 #include "NetworkInterface.h"
00020 #include "NetworkStack.h"
00021 #include <string.h>
00022 #include "mbed.h"
00023 
00024 
00025 static bool ipv4_is_valid(const char *addr)
00026 {
00027     return false;
00028 }
00029 
00030 static bool ipv6_is_valid(const char *addr)
00031 {
00032     return false;
00033 }
00034 
00035 static void ipv4_from_address(uint8_t *bytes, const char *addr)
00036 {
00037 
00038 }
00039 
00040 static int ipv6_scan_chunk(uint16_t *shorts, const char *chunk)
00041 {
00042     return 0;
00043 }
00044 
00045 static void ipv6_from_address(uint8_t *bytes, const char *addr)
00046 {
00047 
00048 }
00049 
00050 static void ipv4_to_address(char *addr, const uint8_t *bytes)
00051 {
00052 
00053 }
00054 
00055 static void ipv6_to_address(char *addr, const uint8_t *bytes)
00056 {
00057 }
00058 
00059 
00060 SocketAddress::SocketAddress(nsapi_addr_t addr, uint16_t port)
00061 {
00062 }
00063 
00064 SocketAddress::SocketAddress(const char *addr, uint16_t port)
00065 {
00066 }
00067 
00068 SocketAddress::SocketAddress(const void *bytes, nsapi_version_t version, uint16_t port)
00069 {
00070 }
00071 
00072 SocketAddress::SocketAddress(const SocketAddress &addr)
00073 {
00074 }
00075 
00076 bool SocketAddress::set_ip_address(const char *addr)
00077 {
00078     return false;
00079 }
00080 
00081 void SocketAddress::set_ip_bytes(const void *bytes, nsapi_version_t version)
00082 {
00083 }
00084 
00085 void SocketAddress::set_addr(nsapi_addr_t addr)
00086 {
00087 }
00088 
00089 void SocketAddress::set_port(uint16_t port)
00090 {
00091 }
00092 
00093 const char *SocketAddress::get_ip_address() const
00094 {
00095     return NULL;
00096 }
00097 
00098 const void *SocketAddress::get_ip_bytes() const
00099 {
00100     return NULL;
00101 }
00102 
00103 nsapi_version_t SocketAddress::get_ip_version() const
00104 {
00105     nsapi_version_t ver;
00106     return ver;
00107 }
00108 
00109 nsapi_addr_t SocketAddress::get_addr() const
00110 {
00111     nsapi_addr_t addr;
00112     return _addr;
00113 }
00114 
00115 uint16_t SocketAddress::get_port() const
00116 {
00117     return 0;
00118 }
00119 
00120 SocketAddress::operator bool() const
00121 {
00122     return false;
00123 }
00124 
00125 bool operator==(const SocketAddress &a, const SocketAddress &b)
00126 {
00127     return false;
00128 }
00129 
00130 bool operator!=(const SocketAddress &a, const SocketAddress &b)
00131 {
00132     return false;
00133 }