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.
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
core/uip/NyLPC_cBaseSocket.h
- Committer:
- nyatla
- Date:
- 2013-06-19
- Revision:
- 37:fc4b4fd6a649
- Child:
- 41:2389bd6b6f74
File content as of revision 37:fc4b4fd6a649:
/*********************************************************************************
* PROJECT: MiMic
* --------------------------------------------------------------------------------
*
* This file is part of MiMic
* Copyright (C)2011 Ryo Iizuka
*
* MiMic is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For further information please contact.
* http://nyatla.jp/
* <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>
*
*********************************************************************************/
#ifndef NYLPC_CBASESOCKET_H_
#define NYLPC_CBASESOCKET_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "NyLPC_stdlib.h"
/**
* Base socket class
* cIPv4 classが管理するソケットオブジェクトのベースクラスです。
*/
typedef struct NyLPC_TcBaseSocket NyLPC_TcBaseSocket_t;
#define NyLPC_TcBaseSocket_TYPEID_UDP_SOCK 1
#define NyLPC_TcBaseSocket_TYPEID_TCP_SOCK 2
#define NyLPC_TcBaseSocket_TYPEID_TCP_LISTENER 3
struct NyLPC_TcBaseSocket
{
/**タイプID 継承クラスのinitializerで設定。*/
NyLPC_TUInt32 _typeid;
};
#define NyLPC_cBaseSocket_initialize(i_inst,i_typeid) ((i_inst)->_typeid=i_typeid)
#define NyLPC_cBaseSocket_finalize(i_inst)
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* NYLPC_CBASESOCKET_H_ */
MiMic Webservice library