2 * Hyper Operating System Application Framework
5 * @brief %jp{TCP/IP プロトコル}
7 * Copyright (C) 2006-2007 by Project HOS
8 * http://sourceforge.jp/projects/hos/
12 #ifndef __HOS__tcpip_h__
13 #define __HOS__tcpip_h__
16 #include "system/sysapi/sysapi.h"
17 #include "system/file/chrdrv.h"
21 typedef struct t_tcpip_address
23 unsigned char ubAddress[4];
24 unsigned short uhPort;
31 typedef struct c_tcpip
33 C_CHRDRV ChrDrv; /* キャラクタ型デバイスドライバを継承 */
37 int iOpenCount; /* オープンカウンタ */
39 SYSPRC_HANDLE hPrcRecv; /* 受信プロセス */
41 struct c_tcpipfile *pUdpHead;
42 struct c_tcpipfile *pTcpHead;
44 unsigned short uhPacketId;
46 // unsigned char ubSendBuf[IPETHER_MAXPACKET_SIZE];
47 unsigned char ubRecvBuf[2048];
48 unsigned char ubSendBuf[2048];
58 void Tcpip_Create(C_TCPIP *self, HANDLE hIp); /**< コンストラクタ */
59 void Tcpip_Delete(C_DRVOBJ *pDrvObj); /**< デストラクタ */
66 #endif /* __HOS__ipether_h__ */