dhgdh
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
m2mconnectionhandler_stub.cpp
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #include "m2mconnectionhandler_stub.h" 00017 #include "m2mconnectionsecurity.h" 00018 #include "common_stub.h" 00019 00020 int m2mconnectionhandler_stub::int_value; 00021 uint16_t m2mconnectionhandler_stub::uint_value; 00022 bool m2mconnectionhandler_stub::bool_value; 00023 00024 void m2mconnectionhandler_stub::clear() 00025 { 00026 int_value = -1; 00027 uint_value = 0; 00028 bool_value = false; 00029 } 00030 00031 M2MConnectionHandler::M2MConnectionHandler(M2MConnectionObserver &observer, 00032 M2MConnectionSecurity* sec, 00033 M2MInterface::BindingMode, 00034 M2MInterface::NetworkStack) 00035 :_observer(observer) 00036 { 00037 if( sec ){ 00038 delete sec; 00039 sec = NULL; 00040 } 00041 } 00042 00043 M2MConnectionHandler::~M2MConnectionHandler() 00044 { 00045 } 00046 00047 bool M2MConnectionHandler::bind_connection(const uint16_t) 00048 { 00049 return m2mconnectionhandler_stub::bool_value; 00050 } 00051 00052 bool M2MConnectionHandler::resolve_server_address(const String&, 00053 const uint16_t, 00054 M2MConnectionObserver::ServerType, 00055 const M2MSecurity* ) 00056 { 00057 return m2mconnectionhandler_stub::bool_value; 00058 } 00059 00060 bool M2MConnectionHandler::start_listening_for_data() 00061 { 00062 return m2mconnectionhandler_stub::bool_value; 00063 } 00064 00065 bool M2MConnectionHandler::send_data(uint8_t *, 00066 uint16_t , 00067 sn_nsdl_addr_s *) 00068 { 00069 return m2mconnectionhandler_stub::bool_value; 00070 } 00071 00072 void M2MConnectionHandler::stop_listening() 00073 { 00074 } 00075 00076 int M2MConnectionHandler::send_to_socket(const unsigned char *, size_t ){ 00077 return m2mconnectionhandler_stub::int_value; 00078 } 00079 00080 int M2MConnectionHandler::receive_from_socket(unsigned char *, size_t){ 00081 return m2mconnectionhandler_stub::int_value; 00082 } 00083 00084 void M2MConnectionHandler::set_platform_network_handler(void *) 00085 { 00086 } 00087 00088 void M2MConnectionHandler::claim_mutex() 00089 { 00090 } 00091 00092 void M2MConnectionHandler::release_mutex() 00093 { 00094 }
Generated on Tue Jul 12 2022 11:01:51 by
1.7.2
