untitled

Size: px
Start display at page:

Download "untitled"

Transcription

1 ITRONTCP/IPAPI 仕様 Ver 監修坂村健 編集 / 発行社団法人トロン協会

2 ITRONTCP/IPAPI 仕様 (Ver ) 本仕様書の著作権は社団法人トロン協会に帰属します TRON は "The Real-time Operating system Nucleus" の略称です ITRON は "Industrial TRON" の略称です T-Kernel は T-Engine フォーラムが推進しているオープン開発プラットフォーム仕様の名称です TRON ITRON および T-Kernel は 特定の商品ないしは商品群を指す名称ではありません

3

4

5 API API API API API /... 5 (1) IP /... 5 (2) /... 6 (1) /... 6 (2) / (1)... 7 (2) API... 7 (3)... 8 (4)... 9 (5) IP TCP API TCP /...11 TCP_CRE_REP...11 tcp_cre_rep...11 tcp_del_rep TCP / tcp_cre_cep tcp_cre_cep tcp_del_cep / tcp_acp_cep tcp_con_cep tcp_sht_cep tcp_cls_cep API tcp_snd_dat iii

6 tcp_rcv_dat API tcp_get_buf tcp_snd_buf tcp_rcv_buf tcp_rel_buf tcp_snd_oob tcp_rcv_oob API tcp_can_cep tcp_set_opt tcp_get_opt UDP API UDP / UDP_CRE_CEP udp_cre_cep udp_del_cep udp_snd_dat udp_rcv_dat API udp_can_cep udp_set_opt udp_get_opt UDP IPv6 TCP API / (1) IP / (2) (3) IP (4) (5) / iv

7 (6) UDP / (7) A 42 B 43 B C 45 C.1 TCP API read/write C.2 TCP API getc/putc C.3 UDP D 50 D E OS 51 E E F 52 F.1 ER F.2 NADR G IPv4 IPv6 53 G v

8 1 1.1 ITRON OS TCP/IP TCP/IP API TCP/IP API TCP/ IP API ITRON ITRON TCP/IP ITRON Version1.0 Version1.0 IPv4 TCP UDP C API TRON Version1.0 ITRON ITRON3.0 ITRON4.0 T-Kernel IPv6 IPv6 Version1.0 TCP/IP API ITRON OS IPv6 Version1.0 T-Kernel ITRON4.0 IPv6 Version2.0 TCP/IP API IP / / ARP / API API ICMP 1

9 1.2 (1) (2) (3) (a) (b) (c) (d) API UDP UNIX ITRON OS OS UNIX X/Open Company Limited 1.3 API TCP/IP API TCP/IP API API 2

10 ITRON OS ITRON APIOS API API API TCP/IP API API API API API API API API ITRON T-Kernel 0 API ITRON3.0 T-Kernel E_WBLK E_CLSE_BOVR API API API API E_SYS E_NOMEM E_NOSPT E_MACV 3

11 1.4.3 IPend point ITRON ID API TCP close close tcp_cls_cep TCP TCP tcp_cre_cep API API API E_TMOUT API API API APIAPIE_WBLK API API API 0 API API 4

12 API API E_TMOUT API E_WBLK API ITRON TMO_POL= 0TMO_FEVR = 1TMO_NBLK= TCP ITRON OS API API API APIrel_wai API E_RLWAI ter_tsk / (1) IP / typedef struct t_ipv4ep { UW ipaddr; /* IP */ 5

13 UH portno; /* */ T_IPV4EP; ipaddr IP bcopy (2) typedef struct t_tcp_crep { ATR repatr; /* TCP */ T_IPV4EP myaddr; /* IP */ T_TCP_CREP; typedef struct t_tcp_ccep { ATR cepatr; /* TCP */ VP sbuf; /* */ INT sbufsz; /* */ VP rbuf; /* */ INT rbufsz; /* */ FP callback; /* */ T_TCP_CCEP; typedef struct t_udp_ccep { ATR cepatr; /* UDP */ T_IPV4EP myaddr; /* IP */ FP callback; /* */ T_UDP_CCEP; / (1) / UW nl = htonl(uw hl) UH ns = htons(uh hs) UW hl = ntohl(uw nl) UH hs = ntohs(uh ns)

14 (2) / ER mercd = mainercd(er ercd) ER sercd = subercd(er ercd) (1) NADR (2) API TFN_TCP_CRE_REP 0x201 (0xfdff) TFN_TCP_DEL_REP 0x202 (0xfdfe) TFN_TCP_CRE_CEP 0x203 (0xfdfd) TFN_TCP_DEL_CEP 0x204 (0xfdfc) TFN_TCP_ACP_CEP 0x205 (0xfdfb) TFN_TCP_CON_CEP 0x206 (0xfdfa) TFN_TCP_SHT_CEP 0x207 (0xfdf9) TFN_TCP_CLS_CEP 0x208 (0xfdf8) TFN_TCP_SND_DAT 0x209 (0xfdf7) TFN_TCP_RCV_DAT 0x20a (0xfdf6) TFN_TCP_GET_BUF 0x20b (0xfdf5) TFN_TCP_SND_BUF 0x20c (0xfdf4) TFN_TCP_RCV_BUF 0x20d (0xfdf3) TFN_TCP_REL_BUF 0x20e (0xfdf2) TFN_TCP_SND_OOB 0x20f (0xfdf1) TFN_TCP_RCV_OOB 0x210 (0xfdf0) TFN_TCP_CAN_CEP 0x211 (0xfdef) TFN_TCP_SET_OPT 0x212 (0xfdee) TFN_TCP_GET_OPT 0x213 (0xfded) TFN_TCP_ALL 0 TEV_TCP_RCV_OOB 0x201 TCP TFN_UDP_CRE_CEP 0x221 (0xfddf) TFN_UDP_DEL_CEP 0x222 (0xfdde) TFN_UDP_SND_DAT 0x223 (0xfddd) TFN_UDP_RCV_DAT 0x224 (0xfddc) TFN_UDP_CAN_CEP 0x225 (0xfddb) TFN_UDP_SET_OPT 0x226 (0xfdda) TFN_UDP_GET_OPT 0x227 (0xfdd9) TFN_UDP_ALL 0 TEV_UDP_RCV_DAT 0x221 UDP 7

15 (3) E_OK E_SYS E_NOMEM E_NOSPT E_RSATR E_PAR E_ID E_NOEXS E_OBJ E_MACV E_QOVR E_DLT E_WBLK E_TMOUT E_RLWAI E_CLS E_BOVR ID E_OK E_WBLKE_CLSE_BOVR E_WBLK E_CLS E_BOVR API E_OBJ API E_OBJ E_CLS 8

16 (4) TMO_POL TMO_FEVR TMO_NBLK (5) IP IPV4_ADDRANY 0 IP TCP_PORTANY 0 TCP UDP_PORTANY 0 UDP 9

17 2 TCP API 2.1 TCP TCP TCP Reception Pointrep TCP TCP Communication End Pointcep TCPAPI read/write API API API tcp_cre_cep tcp_del_cep tcp_acp_cep tcp_con_cep tcp_acp_cep tcp_con_cep tcp_sht_cep tcp_cls_cep tcp_cls_cep tcp_cls_cep tcp_cls_cep 1. TCP API 10

18 C.1 API API API 2.2 TCP / TCP_CRE_REP TCP API tcp_cre_rep API API TCP_CRE_REP(ID repid, { ATR repatr, { UP myipaddr, UH myportno ); C API ER ercd = tcp_cre_rep(id repid, T_TCP_CREP *pk_crep); ID repid TCP ID T_TCP_CREP *pk_crep TCP pk_crep ATR repatr TCP T_IPV4EP myaddr IP myipaddr myportno ER ercd E_OK E_ID E_RSATR E_PAR E_OBJ ID pk_crep IP ID TCP API ID TCP IP IP IPV4_ADDRANY= 0 IP IP IP TCP 11

19 TCP tcp_del_rep TCP API C API ER ercd = tcp_del_rep(id repid); ID repid TCP ID ER ercd E_OK E_ID E_NOEXS ID API TCP TCP tcp_acp_cep E_DLT 2.3 TCP / tcp_cre_cep TCP API tcp_cre_cep API API TCP_CRE_CEP(ID cepid, { ATR cepatr, VP sbuf, INT sbufsz, VP rbuf, INT rbufsz, FP callback ); C API ER ercd = tcp_cre_cep(id cepid, T_TCP_CCEP *pk_ccep); ID cepid TCP ID T_TCP_CCEP *pk_ccep TCP pk_ccep ATR cepatr TCP VP sbuf INT sbufsz VP rbuf 12

20 INT rbufsz FP callback NULL ER ercd E_OK E_ID ID E_RSATR E_PAR pk_ccep sbuf sbufszrbufrbufszcallback E_OBJ ID TCP API ID TCP TCP NADR NADR TCP tcp_del_cep TCP API C API ER ercd = tcp_del_cep(id cepid); ID cepid TCP ID ER ercd E_OK E_ID E_NOEXS E_OBJ ID TCP API TCP TCP E_OBJ 13

21 2.4 / tcp_acp_cep C API ER ercd = tcp_acp_cep(id cepid, ID repid, T_IPV4EP *p_dstaddr, TMO tmout); ID cepid TCP ID ID repid TCP TMO tmout T_IPV4EP dstaddr IP ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ E_DLT E_WBLK E_TMOUT E_RLWAI ID dstaddr tmout TCP TCP API TCP TCP IP TCP tcp_acp_cep TCP tcp_acp_cep TCP tcp_can_cep tcp_acp_cep TCP TCP tcp_acp_cep tcp_acp_cep TCP E_OBJ 14

22 tcp_con_cep C API ER ercd = tcp_con_cep(id cepid, T_IPV4EP *p_myaddr, T_IPV4EP *p_dstaddr, TMO tmout); ID cepid TCP ID T_IPV4EP myaddr IP T_IPV4EP dstaddr IP TMO tmout ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ E_WBLK E_TMOUT E_RLWAI E_CLS ID myaddr dstaddr IP tmout TCP API TCP IP / IP IPV4_ADDRANY= 0 TCP_PORTANY = 0myaddr NADR IP tcp_con_cep TCP tcp_can_cep tcp_con_cep TCP TCP tcp_con_cep tcp_con_cep TCP E_OBJ 15

23 tcp_sht_cep C API ER ercd = tcp_sht_cep(id cepid); ID cepid TCP ID ER ercd E_OK E_ID E_NOEXS E_OBJ ID TCP API TCP FIN tcp_sht_cep API tcp_sht_cep TCP E_OBJ TCP tcp_sht_cep 2 TCP E_OBJ TCP tcp_cls_cep C API ER ercd = tcp_cls_cep(id cepid, TMO tmout); ID cepid TCP ID TMO tmout ER ercd 16

24 E_OK E_ID E_NOEXS E_PAR E_OBJ E_WBLK E_TMOUT E_RLWAI ID tmout TCP API ID TCP FIN TCP TCP tcp_cls_cep TCP tcp_can_cep tcp_cls_cep TCP RST E_TMOUTE_RLWAI RST RST tcp_cls_cep TCP TCP TCP/IP tcp_cls_cep TCP TIMED-WAIT TIMED-WAIT tcp_cls_cep TCP tcp_cls_cep tcp_cls_cep TCP E_OBJ tcp_cls_cep API 17

25 2.5 API tcp_snd_dat C API ER ercd = tcp_snd_dat(id cepid, VP data, INT len, TMO tmout); ID cepid TCP ID VP data INT len TMO tmout ER ercd E_ID E_NOEXS E_PAR E_OBJ E_WBLK E_TMOUT E_RLWAI E_CLS ID datalentmout TCP tcp_snd_dat tcp_get_buf TCP API TCP API tcp_snd_dat send TCP tcp_snd_dat tcp_get_buf tcp_snd_dat E_OBJ 18

26 tcp_rcv_dat C API ER ercd = tcp_rcv_dat(id cepid, VP data, INT len, TMO tmout); ID cepid TCP ID VP data INT len TMO tmout ER ercd 0 E_ID ID E_NOEXS E_PAR datalentmout E_OBJ TCP tcp_rcv_dat tcp_rcv_buf E_WBLK E_TMOUT E_RLWAI E_CLS TCP API TCP API API 0 TCP tcp_rcv_dat tcp_rcv_buf tcp_rcv_dat E_OBJ TCP tcp_rcv_dat 19

27 2.6 API tcp_get_buf C API ER ercd = tcp_get_buf(id cepid, VP *p_buf, TMO tmout); ID cepid TCP ID TMO tmout VP buf ER ercd E_ID E_NOEXS E_PAR E_OBJ E_WBLK E_TMOUT E_RLWAI E_CLS ID p_buftmout TCP tcp_snd_dat tcp_get_buf TCP API tcp_get_buf tcp_get_buf tcp_snd_dattcp_snd_buf API tcp_get_buf TCP tcp_snd_dat tcp_get_buf tcp_get_buf E_OBJ tcp_snd_buf C API ER ercd = tcp_snd_buf(id cepid, INT len); 20

28 ID cepid TCP ID INT len ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ E_CLS ID len TCP len TCP API tcp_get_buf len tcp_snd_buf API len tcp_snd_buf E_OBJ E_PAR tcp_rcv_buf C API ER ercd = tcp_rcv_buf(id cepid, VP *p_buf, TMO tmout); ID cepid TCP ID TMO tmout VP buf ER ercd 0 E_ID ID E_NOEXS E_PAR p_buftmout E_OBJ TCP tcp_rcv_dat tcp_rcv_buf E_TMOUT 21

29 E_RLWAI E_CLS TCP API API 0 tcp_rcv_buf tcp_rcv_buf tcp_rcv_dattcp_rel_buf API tcp_rcv_buf TCP tcp_rcv_dat tcp_rcv_buf tcp_rcv_buf E_OBJ TCP tcp_rcv_buf tcp_rel_buf C API ER ercd = tcp_rel_buf(id cepid, INT len); ID cepid TCP ID INT len ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ ID len TCP len API tcp_rcv_buflen API len tcp_rcv_buf E_OBJ E_PAR 22

30 2.7 API out-of-band TCP TCP in-band tcp_snd_oob C API ER ercd = tcp_snd_oob(id cepid, VP data, INT len, TMO tmout); ID cepid TCP ID VP data INT len TMO tmout ER ercd E_ID E_NOEXS E_PAR E_OBJ E_WBLK E_TMOUT E_RLWAI E_CLS ID datalentmout TCP tcp_snd_oob TCP API TCP TCP tcp_snd_oob tcp_snd_oob E_OBJ tcp_rcv_oob C API ER ercd = tcp_rcv_oob(id cepid, VP data, INT len); 23

31 ID cepid TCP ID VP data INT len ER ercd E_ID E_NOEXS E_PAR E_OBJ E_BOVR ID datalen TCP API TCP E_BOVR E_OBJ 2.8 API tcp_can_cep C API ER ercd = tcp_can_cep(id cepid, FN fncd); ID cepid TCP ID FN fncd API ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ ID fncd TCP fncd 24

32 API TCP API E_RLWAI API TFN_TCP_ALL= 0 TCP API tcp_acp_cep tcp_con_cep tcp_cls_cep tcp_snd_dat tcp_rcv_dat tcp_get_buf tcp_rcv_buf tcp_snd_oob TFN_TCP_ACP_CEP= 0x205 TFN_TCP_CON_CEP= 0x206 TFN_TCP_CLS_CEP= 0x208 TFN_TCP_SND_DAT= 0x209 TFN_TCP_RCV_DAT= 0x20a TFN_TCP_GET_BUF= 0x20b TFN_TCP_RCV_BUF= 0x20d TFN_TCP_SND_OOB= 0x20f TFN_TCP_ALL= 0 tcp_set_opt TCP C API ER ercd = tcp_set_opt(id cepid, INT optname, VP optval, INT optlen); ID cepid TCP ID INT optname VP optval INT optlen ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ ID optnameoptvaloptlen API TCP optname optval optlen TCP 25

33 IP API TCP / TCP TCP IP / SO_REUSEADDR tcp_get_opt TCP C API ER ercd = tcp_get_opt(id cepid, INT optname, VP optval, INT optlen); ID cepid TCP ID INT optname VP optval INT optlen ER ercd 0 E_ID ID E_NOEXS E_PAR optnameoptvaloptlen E_OBJ API TCP optname optval optlen E_PAR TCP IP API TCP API 26

34 2.9 C API ER ercd = callback(id cepid, FN fncd, VP p_parblk); ID cepid TCP ID FN fncd VP p_parblk TCP ID API ER ercd API API API API tcp_rcv_buf ercd tcp_rcv_buf p_buf 27

35 TEV_TCP_RCV_OOB= 0x201 INT len tcp_rcv_oob 28

36 3 UDP API 3.1 UDP UDP UDP Communication End Point cep UDP IP UDP UDP IP API API 3.2 UDP / UDP_CRE_CEP UDP API udp_cre_cep API API UDP_CRE_CEP(ID cepid, { ATR cepatr, { UP myipaddr, UH myportno, FP callback ); C API ER ercd = udp_cre_cep(id cepid, T_UDP_CCEP *pk_ccep); ID cepid UDP ID T_UDP_CCEP *pk_ccepudp pk_ccep ATR cepatr UDP T_IPV4EP myaddr IP myipaddr myportno FP callback NULL ER ercd 29

37 E_OK E_ID E_RSATR E_PAR E_OBJ ID pk_ccep IP callback ID UDP API ID UDP IP IPV4_ADDRANY= 0 IP UDP IPUDP_PORTANY = 0UDP udp_del_cep UDP API C API ER ercd = udp_del_cep(id cepid); ID cepid UDP ID ER ercd E_OK E_ID E_NOEXS ID API ID UDP UDP API E_DLT 3.3 udp_snd_dat C API ER ercd = udp_snd_dat(id cepid, T_IPV4EP *p_dstaddr, VP data, INT len, TMO tmout); ID cepid UDP ID 30

38 T_IPV4EPdstaddr IP VP data INT len TMO tmout ER ercd E_ID E_NOEXS E_PAR E_OBJ E_QOVR E_DLT E_WBLK E_TMOUT E_RLWAI ID dstaddr IP datalentmout udp_snd_dat UDP API UDP IP UDP udp_snd_dat udp_snd_dat udp_snd_dat E_QOVR udp_snd_dat UDP 31

39 udp_rcv_dat C API ER ercd = udp_rcv_dat(id cepid, T_IPV4EP *p_dstaddr, VP data, INT len, TMO tmout); ID cepid UDP ID VP data INT len TMO tmout T_IPV4EP dstaddr IP ER ercd E_ID E_NOEXS E_PAR E_OBJ E_QOVR E_DLT E_WBLK E_TMOUT E_RLWAI E_BOVR ID dstaddr datalen tmout udp_rcv_dat UDP API UDP IP E_BOVR UDP udp_rcv_dat udp_rcv_dat udp_rcv_dat E_QOVR udp_rcv_dat 32

40 3.4 API udp_can_cep C API ER ercd = udp_can_cep(id cepid, FN fncd); ID cepid UDP ID FN fncd API ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ ID fncd UDP fncd API UDP API E_RLWAI API TFN_UDP_ALL= 0 UDP API udp_snd_dat udp_rcv_dat TFN_UDP_SND_DAT= 0x223 TFN_UDP_RCV_DAT= 0x224 TFN_UDP_ALL= 0 udp_set_opt UDP C API ER ercd = udp_set_opt(id cepid, INT optname, VP optval, INT optlen); ID cepid UDP ID INT optname VP optval INT optlen 33

41 ER ercd E_OK E_ID E_NOEXS E_PAR E_OBJ ID optnameoptvaloptlen API UDP optname optval optlen UDP IP API udp_get_opt UDP C API ER ercd = udp_get_opt(id cepid, INT optname, VP optval, INT optlen); ID cepid UDP ID INT optname VP optval INT optlen ER ercd 0 E_ID ID E_NOEXS E_PAR optnameoptvaloptlen E_OBJ API UDP optname optval optlen 34

42 E_PAR UDP IP API UDP API 3.5 C API ER ercd = callback(id cepid, FN fncd, VP p_parblk); ID cepid UDP ID FN fncd VP p_parblk UDP ID API ER ercd API API API API 35

43 udp_rcv_dat ercd IP udp_rcv_dat p_dstaddr UDP TEV_UDP_RCV_DAT= 0x221 INT len udp_rcv_dat UDP udp_rcv_dat 36

44 4 IPv6 TCP API IPv4 IPv / (1) IP / IP / typedef struct t_ipv4ep { UW ipaddr; /* IP */ UH portno; /* */ T_IPV4EP; IP IPv6 T_IN6_ADDR typedef struct t_in6_addr { union { UB u6_addr8[16]; UH u6_addr16[8]; UW u6_addr32[4]; ; u6_addr; T_IN6_ADDR; IPv6 typedef struct t_ipv6ep { T_IN6_ADDR ipaddr; /* IP */ UH portno; /* */ T_IPV6EP; ipaddr portno IP 37

45 (2) IP IPv4 typedef struct t_tcp_crep { ATR repatr; /* TCP */ T_IPV4EP myaddr; /* IP */ T_TCP_CREP; IPv6 T_TCP_CREP IPv6 typedef struct t_tcp_crep_ipv6 { ATR repatr; /* TCP */ T_IPV6EP myaddr; /* IP */ T_TCP_CREP_IPV6; T_UDP_CCEP IP IPv4 typedef struct t_udp_ccep { ATR cepatr; /* UDP */ T_IPV4EP myaddr; /* IP */ FP callback; /* */ T_UDP_CCEP; IPv6 T_UDP_CCEP_IPV6 typedef struct t_udp_ccep_ipv6 { ATR cepatr; /* UDP */ T_IPV6EP myaddr; /* IP */ FP callback; /* */ T_UDP_CCEP_IPV6; (3) IP (5) IP IPV4_ADDRANY IPv4 IPV4_ADDRANY0 IP 38

46 IPv6 #define IPV6_ADDR_UNSPECIFIED_INIT \ {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 #define IPV6_ADDRANY IPV6_ADDR_UNSPECIFIED_INIT CONST_IPV6_ADDR_ANY const struct i_in6_addr ipv6_addr_unspecified_init = {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 #define CONST_IPV6_ADDRANY ipv6_addr_unspecified (4) 2.2 TCP / TCP_CRE_REP API IPv4 API TCP_CRE_REP(ID repid, { ATR repatr, { UP myipaddr, UH myportno ); IPv6 API TCP_CRE_REP_IPV6(ID repid, { ATR repatr, { T_IN6_ADDR myipaddr, UH myportno ); (5) / 2.4 / TCP_ACP_CEP TCP_CON_CEP API IPv4 C API ER ercd = tcp_acp_cep(id cepid, ID repid, T_IPV4EP *p_dstaddr, TMO tmout); ER ercd = tcp_con_cep(id cepid, T_IPV4EP *p_myaddr, T_IPV4EP *p_dstaddr, TMO tmout); IPv6 API ER ercd = tcp_acp_cep_ipv6(id cepid, ID repid, T_IPV6EP *p_dstaddr, TMO tmout); ER ercd = tcp_con_cep_ipv6(id cepid, T_IPV6EP *p_myaddr, T_IPV6EP *p_dstaddr, TMO tmout); 39

47 (6) UDP / 3.2 UDP / UDP_CRE_REP TCP (TCP_CRE_REP) API IPv4 API UDP_CRE_CEP(ID cepid, { ATR cepatr, { UP myipaddr, UH myportno, FP callback ); IPv6 API UDP_CRE_CEP_IPV6(ID cepid, { ATR cepatr, { T_IN6_ADDR myipaddr, UH myportno, FP callback ); (7) 3.3 UDP UDP_SND_DAT UDP UDP_RCV_DAT (TCP_ACP_CEP) API IPv4 C API ER ercd = udp_snd_dat(id cepid, T_IPV4EP *p_dstaddr, VP data, INT len, TMO tmout); ER ercd = udp_rcv_dat(id cepid, T_IPV4EP *p_dstaddr, VP data, INT len, TMO tmout); IPv6 API ER ercd = udp_snd_dat_ipv6(id cepid, T_IPV6EP *p_dstaddr, VP data, INT len, TMO tmout); ER ercd = udp_rcv_dat_ipv6(id cepid, T_IPV6EP *p_dstaddr, VP data, INT len, TMO tmout); 40

48 5 5.1 TRON API TCP/IP ITRON 5.2 ITRON ITRON F ( ) ITRON TEL: FAX: info@assoc.tron.org : 41

49 A Ver Ver Ver TRON IPv6 42

50 B B.1 API API API TCP API UDP API IPv4 TCP UDP TCP UDP TCP TCP TCP / API API select API API tcp_can_cepudp_can_cep listen TCP API tcp_cre_rep listen API tcp_cre_rep listen bind APItcp_cre_reptcp_con_cep udp_cre_cepbindapi accept API tcp_acp_cep TCP TCP API TCP API shutdown tcp_sht_cep 43

51 TCP API API UDP UDP UDP 44

52 C C.1 TCP API read/write ER read(id cepid, VP buf, INT len, TMO tmout) { VP rbuf; INT rlen; INT tlen = 0; /* */ if ((rlen = tcp_rcv_buf(cepid, &rbuf, tmout)) <= 0) { return(rlen); while (len > 0 && rlen > 0) { if (rlen > len) { rlen = len; bcopy(rbuf, buf, rlen); buf += rlen; len = rlen; tlen += rlen; if (tcp_rel_buf(cepid, rlen) < 0) { /* */ return(tlen); if ((rlen = tcp_rcv_buf(cepid, &rbuf, TMO_POL)) < 0) { /* */ return(tlen); return(tlen); ER write(id cepid, VP buf, INT len, TMO tmout) { VP sbuf; INT slen; INT tlen = 0; /* */ if ((slen = tcp_get_buf(cepid, &sbuf, tmout)) <= 0) { return(slen); while (len > 0 && slen > 0) { if (slen > len) { slen = len; bcopy(buf, sbuf, slen); buf += slen; len -= slen; 45

53 tlen += slen; if (tcp_snd_buf(cepid, slen) < 0) { /* */ return(tlen); if ((slen = tcp_get_buf(cepid, &sbuf, TMO_POL)) < 0) { /* */ return(tlen); return(tlen); C.2 TCP API getc/putc 1 TCP API extern ID cepid; static unsigned char *rcvbuf; static INT rcvbuflen = 0; static INT rcvdatlen = 0; int getc() { if (rcvbuflen == 0) { if (rcvdatlen > 0) { tcp_rel_buf(cepid, rcvdatlen); rcvdatlen = 0; rcvbuflen = tcp_rcv_buf(cepid, &rcvbuf, TMO_FEVR); if (rcvbuflen == 0) { /* EOF*/ return(-1); rcvbuflen -= 1; rcvdatlen += 1; return(*rcvbuf++); static unsigned char *sndbuf; static INT sndbuflen = 0; static INT snddatlen = 0; void putc(char c) { if (sndbuflen == 0) { 46

54 sndbuflen -= 1; snddatlen += 1; *sndbuf++ = c; if (snddatlen > 0) { tcp_snd_buf(cepid, snddatlen); snddatlen = 0; sndbuflen = tcp_get_buf(cepid, &sndbuf, TMO_FEVR); void flush() { if (snddatlen > 0) { tcp_snd_buf(cepid, snddatlen); snddatlen = 0; sndbuflen = 0; if (rcvdatlen > 0) { tcp_rel_buf(cepid, rcvdatlen); rcvdatlen = 0; rcvbuflen = 0; C.3 UDP #define MY_IPADDR(0xc0a80001)/* */ #define MY_PORTNOhtons(65500) #define BUF_CNT (8) #define search_empty_buffer(index)search_buffer(1, (index)) #define search_received_buffer(index)search_buffer(0, (index)) typedef struct buffer { volatile INT datsiz; /* data size in buffer */ T_IPV4EP dstaddr; /* destination address received from or sent to */ char buf[256]; buffer_t; static buffer_t _bufs[buf_cnt]; int get_next_index(int current) { return (current + 1 < BUF_CNT)? current + 1 : 0; int search_buffer(int empty, int current) { int tmpidx; tmpidx = current; while (empty? (0!= _bufs[tmpidx].datsiz) : (0 == _bufs[tmpidx].datsiz)) { tmpidx = get_next_index(tmpidx); if (tmpidx == current) { 47

55 return tmpidx; /* not found */ tmpidx = -1; break; ER udp_callback(id cepid, FN fncd, VP p_parblk) { static int cbidx = 0; int tmpidx; int rcvsiz; buffer_t *p_buf; if (TEV_UDP_RCV_DAT == fncd) { tmpidx = search_empty_buffer(cbidx); if (tmpidx >= 0) { cbidx = tmpidx; p_buf = &_bufs[cbidx]; rcvsiz = *((INT *)p_parblk); udp_rcv_dat(cepid, &p_buf->dstaddr, p_buf->buf, rcvsiz, TMO_POL); p_buf->datsiz = rcvsiz; cbidx = get_next_index(cbidx); return 0; void test_main() { ER ercd; ID cepid; T_UDP_CCEP ccep; buffer_t *p_buf; int sndidx; int tmpidx; memset(&_bufs, 0, sizeof(_bufs)); sndidx = 0; memset(&ccep, 0, sizeof(ccep)); ccep.myaddr.ipaddr = MY_IPADDR; ccep.myaddr.portno = MY_PORTNO; ccep.callback = udp_callback; cepid = 1; ercd = udp_cre_cep(cepid, &ccep); while (ercd >= 0) { /* loop back received data */ tmpidx = search_received_buffer(sndidx); if (tmpidx >= 0) { sndidx = tmpidx; 48

56 p_buf = &_bufs[sndidx]; ercd = udp_snd_dat(cepid, &p_buf->dstaddr, p_buf->buf, p_buf->datsiz, TMO_FEVR); if (ercd < 0) { /* exit from loop because something error occured */ break; p_buf->datsiz = 0; sndidx = get_next_index(sndidx); udp_del_cep(cepid); 49

57 D D.1 OS 1. ITRON V3 ITRON V4 T-Kernel V1.00 INT typedef INT INT UH 16 typedef unsigned short UH typedef unsigned short UH UW VP 32 typedef unsigned long UW typedef void *VP FP typedef void (*FP)() ID ID 16 typedef unsigned int UW typedef void *VP typedef void (*FP)() typedef INT ID ER 8 typedef INT ER ATR typedef UINT ATR NADR (-1) NULL SIZE TMO INT 16 typedef INT TMO FN typedef INT FN 50

58 E OS E.1 OS 2. ITRON V3 ITRON V4 T-Kernel V1.00 E_OK E_SYS (-5) -5 ERCD(-5,0) E_NOSPT (-17) -9 ERCD(-33,0) E_RSATR (-24) -11 ERCD(-11,0) E_PAR (-33) -17 ERCD(-17,0) E_ID (-35) -18 ERCD(-18,0) E_MACV (-65) -26 ERCD(-26,0) E_NOMEM (-10) -33 ERCD(-33,0) E_OBJ (-63) -41 ERCD(-41,0) E_NOEXS (-52) -42 ERCD(-42,0) E_QOVR (-73) -43 ERCD(-43,0) E_RLWAI (-86) -49 ERCD(-49,0) E_TMOUT (-85) -50 ERCD(-50,0) E_DLT (-81) -51 ERCD(-51,0) E_WBLK (-83) *1-57 ERCD(-57,0) *1 E_CLS (-87) *1-52 ERCD(-52,0) *1 E_BOVR (-89) *1-58 ERCD(-58,0) *1 *1),ITRON TCP/IP E.2 OS 3. ITRON V3 ITRON V4 T-Kernel V1.00 TMO_POL TMO_FEVR TMO_NBLK -2 * *1 *1),ITRON TCP/IP

59 F F.1 ER API ER INT ER 8 INT F.2 NADR NADR OS OS NADR ITRON V3,ITRON TCP/IP ITRON V3NADR = -1 ITRON V4NADR = NULL( = 0) T-Kernel V1.00NADR = NULL( = 0) 52

60 G IPv4 IPv6 G.1 IPv4 IPv6 4. IPV4 IPV6 IP / T_IPV4EP T_IPV6EP T_TCP_CREP T_TCP_CREP_IPV6 T_UDP_CCEP T_UDP_CCEP_IPV6 IP IPV4_ADDRANY IPV6_ADDRANY CONST_IPV6_ADDRANY TCP API TCP_CRE_REP tcp_cre_rep TCP_CRE_REP_IPV6 tcp_cre_rep_ipv6 API tcp_acp_cep tcp_acp_cep_ipv6 API tcp_con_cep tcp_con_cep_ipv6 UDP API UDP_CRE_CEP udp_cre_cep UDP_CRE_CEP_IPV6 udp_cre_cep_ipv6 API udp_snd_dat udp_snd_dat_ipv6 API udp_rcv_dat udp_rcv_dat_ipv6 53

61

ITRON TCP/IP API仕様

ITRON TCP/IP API仕様 ITRON TCP/IP API Ver. 1.00.01 Embedded TCP/IP ( ) ITRON Copyright (C) 1997 1998 by Embedded TCP/IP Technical Committee, JAPAN Copyright (C) 1998 by ITRON Technical Committee, TRON ASSOCIATION, JAPAN TRON

More information

NORTi Version 4 ユーザーズガイド・TCP/IP編

NORTi Version 4 ユーザーズガイド・TCP/IP編 ITRON TCP/IP API 仕様準拠プロトコルスタック TCP/IP 編 ユーザーズガイド 株式会社ミスポ 第 8 版 ( 本版 ) で改訂された項目 ページ 内容 - 各 API 関数の引数に const が抜けていた点を修正 1 特長の説明で 具体的なプロセッサ名や Ethernet コントローラ名を削除 ( 対応状況は頻 繁に更新されるため ) 1 特長の説明にマルチホームに関する記述を追加

More information

【注意事項】RXファミリ 組み込み用TCP/IP M3S-T4-Tiny

【注意事項】RXファミリ 組み込み用TCP/IP M3S-T4-Tiny 注意事項 RX ファミリ組み込み用 TCP/IP M3S-T4-Tiny R20TS0227JJ0100 Rev.1.00 号 概要 RX ファミリ組み込み用 TCP/IP M3S-T4-Tiny ( 注 ) の使用上の注意事項を連絡します 1. Ping Reply パケットに関する注意事項 2. LAN ネットワーク環境に関する注意事項 3. select() 関数のタイムアウト設定値に関する注意事項

More information

SSL for NORTi User`s Guide

SSL for NORTi User`s Guide User's Guide 2011 年 03 月版 株式会社ミスポ 目次第 1 章導入...4 1.1 はじめに...4 1.2 特長...4 1.3 制限事項...4 1.4 ファイル構成...5 1.5 用語...6 第 2 章 SSL/TLSプロトコルの構成...8 2.1 概要...8 2.2 階層構造...8 2.3 使用するリソース...8 第 3 章コンフィグレーション...9 3.1

More information

NORTi Version 4 ユーザーズガイド補足説明書

NORTi Version 4 ユーザーズガイド補足説明書 NORTi Version 4 ユーザーズガイド 補足説明書 2008 年 12 月版 株式会社ミスポ はじめに 本書には NORTi Version 4 ユーザーズガイドに記載されていない補足説明が記載されています NORTi をご使用になる前に および お問い合せになる前に 本書をよくお読みいただけますようお願いします NORTi Version 4 に共通の事項については 次のドキュメントをご覧ください

More information

Web Browser for NORTi ユーザーズガイド

Web Browser for NORTi ユーザーズガイド Web Browser for NORTi ユーザーズガイド 2006 年 5 月 14 日第 4 版 株式会社ミスポ 目次 1. 概要... 1 2. タスク構成... 2 3. オブジェクト... 3 4. フォルダおよびファイル構成... 4 5.API... 5 5.1 web_ini... 5 5.2 web_ext... 10 5.3 web_inp_key... 11 5.4 web_mse_mov...

More information

Page 1

Page 1 ... 1... 3... 4... 6 0100... 8 0102... 11 0103 FTP... 12 0105... 13 0109... 14... 15 0130... 16 0150 STD... 17 0154 TXT... 18 0170... 19 0180 1... 20 0190 2... 21 0196 3... 22 0200... 23 0300... 24 0500

More information

FTPクライアント リファレンスマニュアル

FTPクライアント リファレンスマニュアル FTP クライアントリファレンスマニュアル 株式会社ルネサス北日本セミコンダクタ ご注意 1. 本製品 ( ソフトウエア製品及びその関連ソフトウエア製品を含む 以下 同じ ) の使用に際しては 外国為替及び外国貿易法 等 技術輸出に関する日本及び関連諸国の関係法規の遵守が必要となります 2. 弊社は 本製品の使用に際しては 弊社もしくは第三者の特許権 著作権 商標権 その他の知的所有権等の権利に関し

More information

Microsoft Word - Man_LanBoard.doc

Microsoft Word - Man_LanBoard.doc OAKS16-LAN Board マニュアル Ver. 2.4 小豆のように小さな通信プロトコルスタック AzkiTCP/IP API 解説書 [ 適応 CPU] M16C/62, M32C/80 シリーズ [ 適応ボード ] OAKS16 シリーズ CPU ボード OAKS16-M30620FCAFP OAKS16-62P シリーズ CPU ボード OAKS16-M30626FHPFP OAKS32

More information

SH-4 組み込み用TCP/IP M3S-T4-Tiny: 導入ガイド

SH-4 組み込み用TCP/IP M3S-T4-Tiny: 導入ガイド アプリケーションノート R20AN0072JJ0101 Rev.1.01 要旨 本資料は M3S-T4-Tiny for the V.1.04 Release00( 以下 T4 と略します ) を導入し 使用するために必要な情報をまとめています T4 は ルネサスマイコンで動作する組み込み用 TCP/IP プロトコルスタックです T4 はライブラリ形式で提供され ユーザプログラムに組み込むことで簡単に

More information

‚æ4›ñ

‚æ4›ñ ( ) ( ) ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 (OUS) 9 26 1 / 28 ( ) ( ) ( ) A B C D Z a b c d z 0 1 2 9 (OUS) 9

More information

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル Instruction Manual Disk No. RE01 6th Edition: November 1999 (YK) All Rights Reserved, Copyright 1996 Yokogawa Electric Corporation 801234567 9 ABCDEF 1 2 3 4 1 2 3 4 1 2 3 4 1 2

More information

1) // 2) I/O 3) Japan Advanced Institute of Science and Technology 2013/07/26 1

1) // 2) I/O 3) Japan Advanced Institute of Science and Technology 2013/07/26 1 I441 2013/07/26 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology 1) // 2) I/O 3) Japan Advanced Institute of Science and Technology 2013/07/26 1 1) Comer: Internetworking

More information

program.dvi

program.dvi 2001.06.19 1 programming semi ver.1.0 2001.06.19 1 GA SA 2 A 2.1 valuename = value value name = valuename # ; Fig. 1 #-----GA parameter popsize = 200 mutation rate = 0.01 crossover rate = 1.0 generation

More information

tutorial_lc.dvi

tutorial_lc.dvi 00 Linux v.s. RT Linux v.s. ART-Linux Linux RT-Linux ART-Linux Linux kumagai@emura.mech.tohoku.ac.jp 1 1.1 Linux Yes, No.,. OS., Yes. Linux,.,, Linux., Linux.,, Linux. Linux.,,. Linux,.,, 0..,. RT-Linux

More information

untitled

untitled II yacc 005 : 1, 1 1 1 %{ int lineno=0; 3 int wordno=0; 4 int charno=0; 5 6 %} 7 8 %% 9 [ \t]+ { charno+=strlen(yytext); } 10 "\n" { lineno++; charno++; } 11 [^ \t\n]+ { wordno++; charno+=strlen(yytext);}

More information

thesis.dvi

thesis.dvi H8 e041220 2009 2 Copyright c 2009 by Kentarou Nagashima c 2009 Kentarou Nagashima All rights reserved , H8.,,,..,.,., AKI-H8/3052LAN. OS. OS H8 Write Turbo. H8 C, Cygwin.,., windows. UDP., (TA7279P).,.

More information

u302.book

u302.book Text Search Filter Library Version 3 3000-6-302-10 P-1MD3-3831* Text Search Filter Library Version 3 03-10 OS AIX 5L V5.2 AIX 5L V5.3 P-24D3-3834 Text Search Filter Library Version 3 03-10 OS Windows 2000

More information

PostgreSQL 解析ドキュメント

PostgreSQL 解析ドキュメント postmaster Unix postmaster postmaster postmaster postmaster DB BootstrapMain() 7.4.2 postmaster [ 2 ] Unix [ 3 ] Unix ( ) (SIGKILL, SIGSTOP) abort exit abort core (core dump) exit core dump ( ) [ 4 ] [

More information

Minimum C Minimum C Minimum C BNF T okenseq W hite Any D

Minimum C Minimum C Minimum C BNF T okenseq W hite Any D 6 2019 5 14 6.1 Minimum C....................... 6 1 6.2....................................... 6 7 6.1 Minimum C Minimum C BNF T okenseq W hite Any Digit ::= 0 1 2... 9. Number ::= Digit Digit. Alphabet

More information

Linux on ITRON-ハイブリッド構造の実装

Linux on ITRON-ハイブリッド構造の実装 Linux on ITRON ハイブリッド構造の実装 目次... 2 Linux... 3... 4... 5 Linux Emblix... 6... 6... 7 OS... 8 FIFO... 8... 11...14 OS...14 Linux...17...18 OS...20...21...22...22 /...25 OS...28 ITRON...29...30 /...30 ITRON...30

More information

2 1: OSI OSI,,,,,,,,, 4 TCP/IP TCP/IP, TCP, IP 2,, IP, IP. IP, ICMP, TCP, UDP, TELNET, FTP, HTTP TCP IP

2 1: OSI OSI,,,,,,,,, 4 TCP/IP TCP/IP, TCP, IP 2,, IP, IP. IP, ICMP, TCP, UDP, TELNET, FTP, HTTP TCP IP 1.,.. 2 OSI,,,,,,,,, TCP/IP,, IP, ICMP, ARP, TCP, UDP, FTP, TELNET, ssh,,,,,,,, IP,,, 3 OSI OSI(Open Systems Interconnection: ). 1 OSI 7. ( 1) 4 ( 4),,,,.,.,..,,... 1 2 1: OSI OSI,,,,,,,,, 4 TCP/IP TCP/IP,

More information

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* ( 2016 2016 07 28 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF : 11011 N N 0 N N 11 1001 N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) 1100100 (2) 1111011 (3) 1110010 (4) 1001011

More information

r07.dvi

r07.dvi 19 7 ( ) 2019.4.20 1 1.1 (data structure ( (dynamic data structure 1 malloc C free C (garbage collection GC C GC(conservative GC 2 1.2 data next p 3 5 7 9 p 3 5 7 9 p 3 5 7 9 1 1: (single linked list 1

More information

ohp07.dvi

ohp07.dvi 19 7 ( ) 2019.4.20 1 (data structure) ( ) (dynamic data structure) 1 malloc C free 1 (static data structure) 2 (2) C (garbage collection GC) C GC(conservative GC) 2 2 conservative GC 3 data next p 3 5

More information

para02-2.dvi

para02-2.dvi 2002 2 2002 4 23 : MPI MPI 1 MPI MPI(Message Passing Interface) MPI UNIX Windows Machintosh OS, MPI 2 1 1 2 2.1 1 1 1 1 1 1 Fig. 1 A B C F Fig. 2 A B F Fig. 1 1 1 Fig. 2 2.2 Fig. 3 1 . Fig. 4 Fig. 3 Fig.

More information

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >=

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >= II 14 2018 7 26 : : proen@mm.ics.saitama-u.ac.jp 14,, 8 2 12:00 1 O(1) n O(n) O(log n) O(1) 32 : 1G int 4 250 M 2.5 int 21 2 0 100 0 100 #include #define HASHSIZE 100 /* */ #define NOTFOUND 0

More information

2003年5月

2003年5月 PDIC PDIC DIC 1 PDIC... 4... 1 PDIC... 3... 3... 4... 4... 6...7... 8... 9...10... 11 PDIC... 11...12...16 PDIC...17 Ethernet...24...25...27...27...32...37 PDIC...38...47 PDIC...47...49...55 PDIC...56...66

More information

bitvisor-ipc v12b.key

bitvisor-ipc v12b.key PC PC OS PC PC 1 1 2 101 101 enum tre_rpc_direction { TRE_RPC_DIRECTION_REQUEST, TRE_RPC_DIRECTION_RESULT }; struct tre_rpc_request { }; enum tre_rpc_direction direction; ulong id; ulong proc_number;

More information

ARM gcc Kunihiko IMAI 2009 1 11 ARM gcc 1 2 2 2 3 3 4 3 4.1................................. 3 4.2............................................ 4 4.3........................................

More information

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * * 2015 2015 07 30 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) +

More information

Makefile, TCPソケットサーバ, コマンドライン引数

Makefile, TCPソケットサーバ, コマンドライン引数 L11(2017-12-12 Tue) : Time-stamp: 2017-12-22 Fri 12:28 JST hig ( ) make http://hig3.net L11 (2017) 1 / 24 I, void die(char message) void die(char message[])... 1 #i n c l u d e 2 / / 3 double

More information

RX600 & RX200シリーズ アプリケーションノート RX用仮想EEPROM

RX600 & RX200シリーズ アプリケーションノート RX用仮想EEPROM R01AN0724JU0170 Rev.1.70 MCU EEPROM RX MCU 1 RX MCU EEPROM VEE VEE API MCU MCU API RX621 RX62N RX62T RX62G RX630 RX631 RX63N RX63T RX210 R01AN0724JU0170 Rev.1.70 Page 1 of 33 1.... 3 1.1... 3 1.2... 3

More information

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( ) L09 IP (2017) 1 / 28

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( )   L09 IP (2017) 1 / 28 L09(2017-11-21 Tue) : Time-stamp: 2017-11-21 Tue 14:52 JST hig TCP/IP. IP,,,. http://hig3.net L09 (2017) 1 / 28 9, IP, - L09 (2017) 2 / 28 C (ex. ) 1 TCP/IP 2 3 ( ) ( L09 (2017) 3 / 28 50+5, ( )50+5. (

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

:30 12:00 I. I VI II. III. IV. a d V. VI 2017 2017 08 03 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF X [ S ] a S S ; X X X, S [, a, ], ; BNF X (parse tree) (1) [a;a] (2) [[a]] (3) [a;[a]] (4) [[a];a] : [a] X 2 222222

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

:30 12:00 I. I VI II. III. IV. a d V. VI 2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx

More information

NTP for NORTi ユーザーズガイド

NTP for NORTi ユーザーズガイド NTP for NORTi User's Guide 2008 年 5 月版 株式会社ミスポ 目次 第 1 章導入... 1 1.1 はじめに... 1 1.2 NTP の概要... 1 1.3 特長... 2 1.4 NTP for NORTi の動作... 2 1.5 制限事項... 2 1.6 ファイル構成... 3 第 2 章 NTP の実装... 4 2.1 概要... 4 2.2 リソース...

More information

main.dvi

main.dvi JTRON2.0 1998 9 25 Ver2.00.00 Final Java Technology on ITRON-specification OS Editor: Yukikazu Nakamoto Assistant Editor: Kazutoshi Usui Page Layout Design: Kazutoshi Usui Special thanks to Natsuko Noda

More information

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1: 005 9 7 1 1.1 1 Hello World!! 5 p r i n t f ( H e l l o World!! \ n ) ; 7 return 0 ; 8 } 1: 1 [ ] Hello World!! from Akita National College of Technology. 1 : 5 p r i n t f ( H e l l o World!! \ n ) ;

More information

(search: ) [1] ( ) 2 (linear search) (sequential search) 1

(search: ) [1] ( ) 2 (linear search) (sequential search) 1 2005 11 14 1 1.1 2 1.2 (search:) [1] () 2 (linear search) (sequential search) 1 2.1 2.1.1 List 2-1(p.37) 1 1 13 n

More information

FreeBSD 1

FreeBSD 1 FreeBSD 1 UNIX OS 1 ( ) open, close, read, write, ioctl (cdevsw) OS DMA 2 (8 ) (24 ) 256 open/close/read/write Ioctl 3 2 2 I/O I/O CPU 4 open/close/read/write open, read, write open/close read/write /dev

More information

main main Makefile Makefile C.5 Makefile Makefile Makefile A Mech (TA ) 1. Web (http://www.jsk.t.u-tokyo.ac.jp/ iku

main main Makefile Makefile C.5 Makefile Makefile Makefile A Mech (TA ) 1. Web (http://www.jsk.t.u-tokyo.ac.jp/ iku 2008 (mizuuchi@i.u-tokyo.ac.jp) http://www.jsk.t.u-tokyo.ac.jp/ http://www.jsk.t.u-tokyo.ac.jp/ ikuo/enshu/keisanki/ 2008 5 19 6 24 1 2 2.1 my_sound.c, my_sounc.h, play.c, record.c 2 2. 2.2 2.2.1 main

More information

joho07-1.ppt

joho07-1.ppt 0xbffffc5c 0xbffffc60 xxxxxxxx xxxxxxxx 00001010 00000000 00000000 00000000 01100011 00000000 00000000 00000000 xxxxxxxx x y 2 func1 func2 double func1(double y) { y = y + 5.0; return y; } double func2(double*

More information

buho210.dvi

buho210.dvi int fp7220::opensocket( void ) { struct hostent *hp; struct sockaddr_in sin; unsigned timeout; int result, s; } // make socket if (!(hp = gethostbyname(szserverloc)) ) return -1; if ( (s = socket(af_inet,

More information

untitled

untitled II 4 Yacc Lex 2005 : 0 1 Yacc 20 Lex 1 20 traverse 1 %% 2 [0-9]+ { yylval.val = atoi((char*)yytext); return NUM; 3 "+" { return + ; 4 "*" { return * ; 5 "-" { return - ; 6 "/" { return / ; 7 [ \t] { /*

More information

untitled

untitled RPC (( Remote Procedure Call (RPC: Message-Oriented Middleware (MOM) data-streaming =(protocol) A B A B Connection protocol = connection oriented protocol TCP (Transmission Control Protocol) connectionless

More information

double float

double float 2015 3 13 1 2 2 3 2.1.......................... 3 2.2............................. 3 3 4 3.1............................... 4 3.2 double float......................... 5 3.3 main.......................

More information

O(N) ( ) log 2 N

O(N) ( ) log 2 N 2005 11 21 1 1.1 2 O(N) () log 2 N 1.2 2 1 List 3-1 List 3-3 List 3-4? 3 3.1 3.1.1 List 2-1(p.70) 1 1 10 1 3.1.2 List 3-1(p.70-71) 1 1 2 1 2 2 1: 1 3 3.1.3 1 List 3-1(p.70-71) 2 #include stdlib.h

More information

J.JSSAC Vol. 7, No. 2, Mathematica Maple,., Open asir Open xxx asir. Open xxx Open asir, asir., Open xxx, Linux Open asir Open sm1 (kan/sm1). C

J.JSSAC Vol. 7, No. 2, Mathematica Maple,., Open asir Open xxx asir. Open xxx Open asir, asir., Open xxx, Linux Open asir Open sm1 (kan/sm1). C J.JSSAC (1999) Vol. 7, No. 2, pp. 2-17 Open asir HPC (Received 1997/12/1) 1 Open asir Open xxx,., ( ),,,,,.,., (1) (2) (3) (4),. Open xxx,.,., 1.,.,., 0 10, dx,.,., ohara@math.kobe-u.ac.jp taka@math.kobe-u.ac.jp

More information

II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C main main 1 NULL NULL for 2 (a) Yacc 2 (b) 2 3 y

II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C main main 1 NULL NULL for 2 (a) Yacc 2 (b) 2 3 y II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C 1 6 9 1 main main 1 NULL NULL 1 15 23 25 48 26 30 32 36 38 43 45 47 50 52 for 2 (a) 2 2 1 Yacc 2 (b) 2 3 yytext tmp2 ("") tmp2->next->word tmp2 yytext tmp2->next->word

More information

解きながら学ぶC++入門編

解きながら学ぶC++入門編 !... 38!=... 35 "... 112 " "... 311 " "... 4, 264 #... 371 #define... 126, 371 #endif... 369 #if... 369 #ifndef... 369 #include... 3, 311 #undef... 371 %... 17, 18 %=... 85 &... 222 &... 203 &&... 40 &=...

More information

Emacs ML let start ::= exp (1) exp ::= (2) fn id exp (3) ::= (4) (5) ::= id (6) const (7) (exp) (8) let val id = exp in

Emacs ML let start ::= exp (1) exp ::= (2) fn id exp (3) ::= (4) (5) ::= id (6) const (7) (exp) (8) let val id = exp in Emacs, {l06050,sasano}@sic.shibaura-it.ac.jp Eclipse Visual Studio Standard ML Haskell Emacs 1 Eclipse Visual Studio variable not found LR(1) let Emacs Emacs Emacs Java Emacs JDEE [3] JDEE Emacs Java 2

More information

Netfilter Linux Kernel IPv4 IPv6 Ethernet iptables IPv4 ip6tables IPv6 ebtables Ethernet API Kernel

Netfilter Linux Kernel IPv4 IPv6 Ethernet iptables IPv4 ip6tables IPv6 ebtables Ethernet API Kernel Netfilter(iptables) Winny/Share @ Netfilter Linux Kernel IPv4 IPv6 Ethernet iptables IPv4 ip6tables IPv6 ebtables Ethernet API Kernel IPP2P P2P Netfilter edonkey emule Kademlia KaZaA FastTrack Gnutella

More information

For_Beginners_CAPL.indd

For_Beginners_CAPL.indd CAPL Vector Japan Co., Ltd. 目次 1 CAPL 03 2 CAPL 03 3 CAPL 03 4 CAPL 04 4.1 CAPL 4.2 CAPL 4.3 07 5 CAPL 08 5.1 CANoe 5.2 CANalyzer 6 CAPL 10 7 CAPL 11 7.1 CAPL 7.2 CAPL 7.3 CAPL 7.4 CAPL 16 7.5 18 8 CAPL

More information

1 Linux UNIX-PC LAN. UNIX. LAN. UNIX. 1.1 UNIX LAN. 1.2 Linux PC Linux. 1.3 studenta odd kumabari studentb even kumabari studentc odd kumabari student

1 Linux UNIX-PC LAN. UNIX. LAN. UNIX. 1.1 UNIX LAN. 1.2 Linux PC Linux. 1.3 studenta odd kumabari studentb even kumabari studentc odd kumabari student LAN 0000000000 6/6, 6/13, 6/20 1 Linux UNIX-PC LAN. UNIX. LAN. UNIX. 1.1 UNIX LAN. 1.2 Linux PC Linux. 1.3 studenta odd kumabari studentb even kumabari studentc odd kumabari studentd even kumabari 1: LAN

More information

ohp08.dvi

ohp08.dvi 19 8 ( ) 2019.4.20 1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: 2 (2) NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( 2) 3 (3) head cur tail head cur prev data

More information

NORTi TCP/IPv6 ユーサーズガイド

NORTi TCP/IPv6 ユーサーズガイド ユーザーズガイド 2010 年 4 月 版 株 式 会 社 ミスポ 2010 年 4 月 版 で 改 訂 された 項 目 ページ P32 更 新 内 容 IPV6_ADDRANY を IP アドレスに 指 定 した 場 合 に 設 定 されるアドレスに 誤 記 が あったのを 修 正 2009 年 3 月 版 で 改 訂 された 項 目 ページ 更 新 内 容 P15 3.6 互 換 性 に 使 用

More information

エラー処理・分割コンパイル・コマンドライン引数

エラー処理・分割コンパイル・コマンドライン引数 L10(2017-12-05 Tue) : Time-stamp: 2017-12-17 Sun 11:59 JST hig. recv/send http://hig3.net ( ) L10 (2017) 1 / 21 IP I swallow.math.ryukoku.ac.jp:13 = 133.83.83.6:13 = : IP ( = ) (well-known ports), :. :,.

More information

: Nonblocking I/O readpartial read EOF Solaris FILE 256 ungetc SEGV errno stdio considered harmful p.

: Nonblocking I/O readpartial read EOF Solaris FILE 256 ungetc SEGV errno stdio considered harmful p. stdio considered harmful akr@m17n.org 2005 06 02 stdio considered harmful p. : Nonblocking I/O readpartial read EOF Solaris FILE 256 ungetc SEGV errno stdio considered harmful p. : stdio stdio Nonblocking

More information

13 I/O

13 I/O 13 I/O 98-0997-3 14 2 7 Linux OS OS OS I/O I/O TS-I/O I/O I/O TS-I/O TS-I/O 3 1 7 2 9 2.1..................... 9 2.2.................. 10 2.3 2...................... 12 2.4 Linux................... 14

More information

Gpci4ソフト_下位DLL_説明書3版.PDF

Gpci4ソフト_下位DLL_説明書3版.PDF G-PCI4 ... 3 WINDOWSNT...3 WINDOWS2000/XP...3... 4...4 DLL WINDOWSNT/2000/XP...4...4... 5...5... 6...6...6...6...6...7...9...11... 11... 11... 11... 12... 12...12 ...13...14 1... 14 2... 15 3... 16 4...

More information

Microsoft PowerPoint - CproNt02.ppt [互換モード]

Microsoft PowerPoint - CproNt02.ppt [互換モード] 第 2 章 C プログラムの書き方 CPro:02-01 概要 C プログラムの構成要素は関数 ( プログラム = 関数の集まり ) 関数は, ヘッダと本体からなる 使用する関数は, プログラムの先頭 ( 厳密には, 使用場所より前 ) で型宣言 ( プロトタイプ宣言 ) する 関数は仮引数を用いることができる ( なくてもよい ) 関数には戻り値がある ( なくてもよい void 型 ) コメント

More information

r08.dvi

r08.dvi 19 8 ( ) 019.4.0 1 1.1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( ) 1 next 1 prev 1 head cur tail head cur prev

More information

I TCP 1/2 1

I TCP 1/2 1 I TCP 1/2 1 Transport layer: a birds-eye view Hosts maintain state for each transport endpoint Routers don t maintain perhost state H R R R R H Transport IP IP IP IP IP Copyright(C)2011 Youki Kadobayashi.

More information

橡Pro PDF

橡Pro PDF 1 void main( ) char c; /* int c; */ int sum=0; while ((c = getchar())!= EOF) if(isdigit(c) ) sum += (c-'0'); printf("%d\n", sum); main()int i,sum=0; for(i=0;i

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 構造体 (struct) 構造体の宣言 typedef 宣言 配列では 複数のデータをひとまとまりにして操作することが出来る しかし それぞれのデータは同じ型 ( 例えば整数 あるいは浮動小数点数 ) 出なければならない 型の違うデータをひとまとまりにして扱う方法に 構造体がある 構造体 文文文文名前字 ( 文字列字字 ) 字 整数学籍番号 ( 整数 ) 身長 ( 浮動小数点数 ) 文字 配列 3

More information

I /07/30 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology

I /07/30 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology I441 2013/07/30 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology I/O Japan Advanced Institute of Science and Technology 2013/07/30 1 fork/pthread create I/O Japan

More information

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology I117 8 1 School of Information Science, Japan Advanced Institute of Science and Technology : CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and

More information

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l C/C++ 2007 6 18 1 C STL(1) 2 1.1............................................... 2 1.2 stdio................................................ 3 1.3.......................................... 10 2 11 2.1 sizeof......................................

More information

GR-SAKURA-SAのサンプルソフト説明

GR-SAKURA-SAのサンプルソフト説明 フルカラーシリアル LED テープ (1m) を GR-KURUMI で使ってみる 2014/2/25 がじぇっとるねさす鈴木 Rev. 1.00 フルカラーシリアル LED の特徴 http://www.switch-science.com/catalog/1399/ 3570 円 1m で 60 個の LED がついている 電源と信号線 1 本で制御する x 24 この信号を 24 個送信して

More information

untitled

untitled H8/300,H8S,H8SX [H8S,H8/300 Tool Chain Ver6.2.0.0] #define Inline static inline //************************************************** Inline char sil_and_mem(char *mem,char and) return (*((volatile

More information

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) 3 5 14 18 21 23 23 24 28 29 29 31 32 34 35 35 36 38 40 44 44 45 46 49 49 50 pref : 2004/6/5 (11:8) 50 51 52 54 55 56 57 58 59 60 61

More information

BSDソケットAPI リファレンスマニュアル

BSDソケットAPI リファレンスマニュアル BSD ソケット API Ver3.0 リファレンスマニュアル ルネサスセミコンダクタパッケージ & テストソリューションズ株式会社 ご注意 1. 本製品 ( ソフトウエア製品及びその関連ソフトウエア製品を含む 以下 同じ ) の使用に際しては 外国為替及び外国貿易法 等 技術輸出に関する日本及び関連諸国の関係法規の遵守が必要となります 2. 弊社は 本製品の使用に際しては 弊社もしくは第三者の特許権

More information

- - http://168iroha.net 018 10 14 i 1 1 1.1.................................................... 1 1.................................................... 7.1................................................

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション プログラミング応用演習 第 4 回再帰的構造体 前回の出席確認演習 #include int main() { FILE *fp; int c, linecount, length, maxlength; fp=fopen("/usr/share/dict/words","r"); if (fp == NULL) return 1; linecount=0; length=0;

More information

C B

C B C 095707B 2010 6 8 1 LEVE1 2 1.1 LEVEL 1.1................................................ 2 1.1.1 1................................................ 2 1.1.2 1.2..............................................

More information

UsersGuide_INR-HG5497c_.doc

UsersGuide_INR-HG5497c_.doc UPS / Web/SNMP VCCI A Web/SNMP... 1.. WEB...1.. SNMP...1.. NETSHUT...1.. 100BASE-TX...1... 2 Web... 4.....5.....7......7......8......9.. UPS...10... UPS...10...13......14......14...15......17......17..

More information

ex12.dvi

ex12.dvi 1 0. C, char., char, 0,. C, ("),., char str[]="abc" ; str abc.,, str 4. str 3. char str[10]="abc" ;, str 10, str 3., char s[]="abc", t[10] ;, t = s. ASCII, 0x00 0x7F, char., "abc" 3, 1. 1 8 256, 2., 2

More information

( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h>

( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h> 2007 12 5 1 2 2.1 ( ) 1 1: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #define H WIN 400 // 8 #define W WIN 300 // 9

More information

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL   2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b II 5 (1 2005 5 26 http://www.math.meiji.ac.jp/~mk/syori2-2005/ UNIX (Linux Linux 1 : 2005 http://www.math.meiji.ac.jp/~mk/syori2-2005/jouhousyori2-2005-00/node2. html ( (Linux 1 2 ( ( http://www.meiji.ac.jp/mind/tool/internet-license/

More information

1.5 1...1 1.1... 1 1.2... 1 2... 2 2.1... 2 2.2 DB... 2 3... 3 3.1... 3 3.2... 3 4 DB... 4 4.1... 4 4.2... 6 4.3... 7 4.3.1.... 7 4.3.2.... 7 4.3.3.... 9 4.3.4.... 10 4.3.5.... 12 4.3.6.... 13 4.3.7....

More information

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO Handy Graphic for Handy Graphic Version 0.5 2008-06-09 1 Handy Graphic Handy Graphic C Handy Graphic Handy Graphic Mac OS X Handy Graphic HgDisplayer Handy Graphic HgDisplayer 2 Handy Graphic 1 Handy Graphic

More information

lexex.dvi

lexex.dvi (2018, c ) http://istksckwanseiacjp/ ishiura/cpl/ 4 41 1 mini-c lexc,, 2 testlexc, lexc mini-c 1 ( ) mini-c ( ) (int, char, if, else, while, return 6 ) ( ) (+, -, *, /, %, &, =, ==,!=, >, >=,

More information

スライド 1

スライド 1 RX62N 周辺機能紹介データフラッシュ データ格納用フラッシュメモリ ルネサスエレクトロニクス株式会社ルネサス半導体トレーニングセンター 2013/08/02 Rev. 1.00 00000-A コンテンツ データフラッシュの概要 プログラムサンプル 消去方法 書き込み方法 読み出し方法 FCUのリセット プログラムサンプルのカスタマイズ 2 データフラッシュの概要 3 データフラッシュとは フラッシュメモリ

More information

18 C ( ) hello world.c 1 #include <stdio.h> 2 3 main() 4 { 5 printf("hello World\n"); 6 } [ ] [ ] #include <stdio.h> % cc hello_world.c %./a.o

18 C ( ) hello world.c 1 #include <stdio.h> 2 3 main() 4 { 5 printf(hello World\n); 6 } [ ] [ ] #include <stdio.h> % cc hello_world.c %./a.o 18 C ( ) 1 1 1.1 hello world.c 5 printf("hello World\n"); 6 } [ ] [ ] #include % cc hello_world.c %./a.out Hello World [a.out ] % cc hello_world.c -o hello_world [ ( ) ] (K&R 4.1.1) #include

More information

( ) ( ) 30 ( ) 27 [1] p LIFO(last in first out, ) (push) (pup) 1

( ) ( ) 30 ( ) 27 [1] p LIFO(last in first out, ) (push) (pup) 1 () 2006 2 27 1 10 23 () 30 () 27 [1] p.97252 7 2 2.1 2.1.1 1 LIFO(last in first out, ) (push) (pup) 1 1: 2.1.2 1 List 4-1(p.100) stack[] stack top 1 2 (push) (pop) 1 2 void stack push(double val) val stack

More information

3 3.1 LAN ISDN (IP) 2 TCP/UDP IP IP IP IP (Ethernet) Ethernet LAN TCP/UDP LAN Ethernet LAN 2: Ethernet ATM, FDDI, LAN IP IP IP 3 IP 2 IP IP IP IP IP 3

3 3.1 LAN ISDN (IP) 2 TCP/UDP IP IP IP IP (Ethernet) Ethernet LAN TCP/UDP LAN Ethernet LAN 2: Ethernet ATM, FDDI, LAN IP IP IP 3 IP 2 IP IP IP IP IP 3 IP 1 (IP) TCP/IP 1 2 2 1 LAN IP C IP 192.168.0.101 192.168.0.104 HUB 100Base-TX 100Mbps UTP Ethernet HUB 192.168.0.101 192.168.0.102 192.168.0.103 192.168.0.104 1: 6 1 3 3.1 LAN ISDN (IP) 2 TCP/UDP IP

More information

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧) CM-3G 周辺モジュール拡張技術文書 MS5607 センサ ( 温度 気圧 ) ( 第 1 版 ) Copyright (C)2016 株式会社コンピューテックス 目次 1. はじめに... 1 2. MS5607 について... 1 3. 接続図... 1 4. アプリケーション ソース... 2 5. アプリケーションのコンパイル方法... 7 6. アプリケーションの実行... 8 1. はじめに

More information

C ( ) C ( ) C C C C C 1 Fortran Character*72 name Integer age Real income 3 1 C mandata mandata ( ) name age income mandata ( ) mandat

C ( ) C ( ) C C C C C 1 Fortran Character*72 name Integer age Real income 3 1 C mandata mandata ( ) name age income mandata ( ) mandat C () 14 5 23 C () C C C C C 1 Fortran Character*72 name Integer age Real income 3 1 C 1.1 3 7 mandata mandata () name age income mandata () mandata1 1 #include struct mandata char name[51];

More information

(Version: 2017/4/18) Intel CPU 1 Intel CPU( AMD CPU) 64bit SIMD Inline Assemler Windows Visual C++ Linux gcc 2 FPU SSE2 Intel CPU do

(Version: 2017/4/18) Intel CPU 1 Intel CPU( AMD CPU) 64bit SIMD Inline Assemler Windows Visual C++ Linux gcc 2 FPU SSE2 Intel CPU do (Version: 2017/4/18) Intel CPU (kashi@waseda.jp) 1 Intel CPU( AMD CPU) 64bit SIMD Inline Assemler Windows Visual C++ Linux gcc 2 FPU SSE2 Intel CPU double 8087 FPU (floating point number processing unit)

More information

C++11概要 ライブラリ編

C++11概要 ライブラリ編 C++11 概要ライブラリ編 H.24/05/26 Egtra Boost. 勉強会 #9 つくば 注意 網羅はしていません 規格を (N3337.pdf も可 ) を読む cpprefjp を書く 読む Misc スマートポインタ unique_ptr 以下の上位互換 std::auto_ptr boost::scoped_ptr, boost::scoped_array shared_ptr boost::shared_ptr

More information

TCP UDP TCP UDP send()sendto()sendmsg() recv()recvfrom()recvmsg() OS Passive Active TCP UDP IP TCP UDP MTAMail Transf

TCP UDP TCP UDP send()sendto()sendmsg() recv()recvfrom()recvmsg() OS Passive Active TCP UDP IP TCP UDP MTAMail Transf 3 -- 7 2011 2 TCPUDP APIApplication Programming Interface BSD UNIX C System V UNIX XTIX /Open Transport Interface XTI TCP/IP ISO OSI XTI TCP/IP OSI TCP UDP API API API API UNIX Windows 7-1 TCP UDP 7-2

More information

ESMPRO/DeliveryManager

ESMPRO/DeliveryManager DeliveryManager Standard Edition [] (1) (2) (3) (4) (3) Microsoft MSMS-DOS Microsoft Windows Microsoft Corporation ESMPRO TM HP-UX Hewlett-Packard UNIX X/Open Motif Open Software Foundation,Inc. X Window

More information

新コンフィギュレータのフレームワークについて

新コンフィギュレータのフレームワークについて : 2007 12 7 6: 2009 5 9 TOPPERS 1.... 4 1.1... 4 1.2 TOPPERS... 4 2.... 4 2.1... 4 3.... 8 4.... 9 4.1... 9 4.2... 10 4.3... 10 4.3.1... 11 4.3.2 INCLUDE... 11 4.3.3 C... 12 4.4 API... 14 4.2.1 API...

More information

4 実験結果 // 用意されたヘッダファイル #include < stdio.h> #include < fcntl.h> #include < netdb.h> #include < sys/types.h> #include < sys/socket.h> #include < sys/sta

4 実験結果 // 用意されたヘッダファイル #include < stdio.h> #include < fcntl.h> #include < netdb.h> #include < sys/types.h> #include < sys/socket.h> #include < sys/sta 実験 6 通信基礎実験 2 1 目的 ネットワークを通じてデータ転送を行うことを体験的に学ぶために 本実験ではT CP/IPプロトコルを使い ワークステーション間で通信を行うクライアントサーバモデルのプログラムを作成する 今回は文字データだけでなく 音声データも使う事により より実践的なプログラミングを行う 2 解説 前実験と同様なので省略する 3 実験 実験 1で作成したプログラムを利用して マイクから入力した音声信号をサーバへ送信するクライアントプログラムを作成せよ

More information

char int float double の変数型はそれぞれ 文字あるいは小さな整数 整数 実数 より精度の高い ( 数値のより大きい より小さい ) 実数 を扱う時に用いる 備考 : 基本型の説明に示した 浮動小数点 とは数値を指数表現で表す方法である 例えば は指数表現で 3 書く

char int float double の変数型はそれぞれ 文字あるいは小さな整数 整数 実数 より精度の高い ( 数値のより大きい より小さい ) 実数 を扱う時に用いる 備考 : 基本型の説明に示した 浮動小数点 とは数値を指数表現で表す方法である 例えば は指数表現で 3 書く 変数 入出力 演算子ここまでに C 言語プログラミングの様子を知ってもらうため printf 文 変数 scanf 文 if 文を使った簡単なプログラムを紹介した 今回は変数の詳細について習い それに併せて使い方が増える入出力処理の方法を習う また 演算子についての復習と供に新しい演算子を紹介する 変数の宣言プログラムでデータを取り扱う場合には対象となるデータを保存する必要がでてくる このデータを保存する場所のことを

More information

TCP TCP TCP fin TCP NULL UDP ICMP Unreachable finger phf nph-test-cgi php ftp 18 1

TCP TCP TCP fin TCP NULL UDP ICMP Unreachable finger phf nph-test-cgi php ftp 18 1 1 1 1.1 TCP 1 1.2 TCP 3 1.3 TCP fin 5 1.4 TCP NULL 7 1.5 UDP ICMP Unreachable 10 1.6 finger 12 1.7 phf 13 1.8 nph-test-cgi 14 1.9 php 16 1.10 ftp 18 1.11 http 23 1.12 smtp VRFY,EXPN 26 1.13 smtp 27 1.14

More information

目次 1. DB 更新情報受信 SW 仕様書 構成および機能 全体の構成 DB 更新情報受信 SW の機能 ソフトウェアの設計仕様 DB 更新情報受信 SW の仕様 資料編... 5

目次 1. DB 更新情報受信 SW 仕様書 構成および機能 全体の構成 DB 更新情報受信 SW の機能 ソフトウェアの設計仕様 DB 更新情報受信 SW の仕様 資料編... 5 書類トレースシステム DigiTANAlog メインサーバマシン DB 更新情報受信 SW 仕様書 Create on 良知洋志 (RACHI, Hiroshi) Date: 2006/02/08 Last Update: 2006/02/15 目次 1. DB 更新情報受信 SW 仕様書... 2 1-1. 構成および機能...2 1-1-1. 全体の構成...2 1-1-2. DB 更新情報受信

More information