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.
Fork of mbed-client-classic by
Revision 13:723bfe4dd180, committed 2016-04-07
- Comitter:
- Yogesh Pande
- Date:
- Thu Apr 07 01:59:32 2016 +0300
- Parent:
- 12:dc778194504d
- Commit message:
- Removing unnecessary files from repository.
Changed in this revision
--- a/mbed-client-classic/m2mnetwork.h Thu Apr 07 01:58:44 2016 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2015 ARM Limited. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 - * 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. - */ -#ifndef M2M_NETWORK_H__ -#define M2M_NETWORK_H__ - -#include "NetworkInterface.h" - - -class M2MNetwork { -public: - // Prevents the use of assignment operator - M2MNetwork& operator=(const M2MNetwork& other); - - // Prevents the use of copy constructor - M2MNetwork(const M2MNetwork& other); - - /** - * Constructor. - * @param iface NetworkInterface to use globally for new sockets - */ - M2MNetwork(NetworkInterface *iface); - - /** - * Destructor. - */ - virtual ~M2MNetwork(); - - /** - * Accesses the current network interface - * @return Global network interface - */ - static NetworkInterface *getInterface(); -}; - -#endif //M2M_NETWORK_H__
--- a/source/m2mnetwork.cpp Thu Apr 07 01:58:44 2016 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2015 ARM Limited. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 - * 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 "mbed-client-classic/m2mnetwork.h" - -static NetworkInterface *interface = 0; - -M2MNetwork::M2MNetwork(NetworkInterface *iface) -{ - interface = iface; -} - -M2MNetwork::~M2MNetwork() -{ -} - -NetworkInterface *M2MNetwork::getInterface() -{ - return interface; -}