version 1.11, 2000/10/10 05:23:19 |
version 1.12, 2000/10/10 06:52:13 |
|
|
# Author: ¾®¸¶¸ùǤ @ ¶âÂôÂç³ØÍý³ØÉô·×»»²Ê³Ø¶µ¼¼ |
# Author: ¾®¸¶¸ùǤ @ ¶âÂôÂç³ØÍý³ØÉô·×»»²Ê³Ø¶µ¼¼ |
# URI: http://omega.s.kanazawa-u.ac.jp/ohara/ |
# URI: http://omega.s.kanazawa-u.ac.jp/ohara/ |
# $OpenXM: OpenXM/src/ox_toolkit/README,v 1.10 2000/03/10 12:24:38 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_toolkit/README,v 1.11 2000/10/10 05:23:19 ohara Exp $ |
|
|
/*&ja ox_toolkit ¥æ¡¼¥¶¥¬¥¤¥É |
/*&ja ox_toolkit ¥æ¡¼¥¶¥¬¥¤¥É |
|
|
Line 129 new_cmo_error2(cmo* ob); |
|
Line 129 new_cmo_error2(cmo* ob); |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
2.5 ¥³¥Í¥¯¥·¥ç¥ó |
3. ¥³¥Í¥¯¥·¥ç¥ó |
|
|
OXFILE ¤Ï OpenXM ¤Ç¤ÎÄÌ¿®Ï©¤òɽ¸½¤¹¤ë¥¯¥é¥¹¤Ç¤¢¤ë¡£¤³¤Î¥¯¥é¥¹¤Î¥ª¥Ö¥¸¥§ |
OXFILE ¤Ï OpenXM ¤Ç¤ÎÄÌ¿®Ï©¤òɽ¸½¤¹¤ë¥¯¥é¥¹¤Ç¤¢¤ë¡£¤³¤Î¥¯¥é¥¹¤Î¥ª¥Ö¥¸¥§ |
¥¯¥È¤òÌÀ¼¨Åª¤Ë¤ÏÀ¸À®¤·¤Ê¤¤¤³¤È¡£É¬¤º¥³¥ó¥¹¥È¥é¥¯¥¿¤òÍøÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤é |
¥¯¥È¤òÌÀ¼¨Åª¤Ë¤ÏÀ¸À®¤·¤Ê¤¤¤³¤È¡£É¬¤º¥³¥ó¥¹¥È¥é¥¯¥¿¤òÍøÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤é |
Line 137 OXFILE ¤Ï OpenXM ¤Ç¤ÎÄÌ¿®Ï©¤òɽ¸½¤¹¤ë¥¯¥é¥¹¤Ç¤¢¤ë¡£¤³¤ |
|
Line 137 OXFILE ¤Ï OpenXM ¤Ç¤ÎÄÌ¿®Ï©¤òɽ¸½¤¹¤ë¥¯¥é¥¹¤Ç¤¢¤ë¡£¤³¤ |
|
¥Ð¥¤¥È¥ª¡¼¥À¤Ë´ØÏ¢¤·¤¿½èÍý¤Ï¤³¤Î¥¯¥é¥¹¤Î¥á¥½¥Ã¥É¤Ç¼Â¸½¤µ¤ì¤ë¡£¤³¤Î¥¯¥é |
¥Ð¥¤¥È¥ª¡¼¥À¤Ë´ØÏ¢¤·¤¿½èÍý¤Ï¤³¤Î¥¯¥é¥¹¤Î¥á¥½¥Ã¥É¤Ç¼Â¸½¤µ¤ì¤ë¡£¤³¤Î¥¯¥é |
¥¹¤Î¥á¥½¥Ã¥É¤È¤·¤Æ¼¡¤Î¤â¤Î¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£ |
¥¹¤Î¥á¥½¥Ã¥É¤È¤·¤Æ¼¡¤Î¤â¤Î¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£ |
|
|
2.5.1 ¥³¥ó¥¹¥È¥é¥¯¥¿ |
3.1 ¥³¥ó¥¹¥È¥é¥¯¥¿ |
|
|
OXFILE *oxf_connect_active(char *hostname, short port); |
OXFILE *oxf_connect_active(char *hostname, short port); |
|
|
|
ǽưŪ¤ËÀܳ¤¹¤ë¾ì¹ç¤Î¥³¥ó¥¹¥È¥é¥¯¥¿¡£Ä̾¥µ¡¼¥Ð¤ÇÍøÍѤ¹¤ë¡£ |
|
|
OXFILE *oxf_connect_passive(int listened); |
OXFILE *oxf_connect_passive(int listened); |
|
|
|
¼õưŪ¤ËÀܳ¤¹¤ë¤¿¤á¤Î¥³¥ó¥¹¥È¥é¥¯¥¿¡£ |
|
ÆâÉô¤Ç accept() ¤ò¸Æ¤Ö¤Î¤Ç¡¢listened ¤Ë¤Ï mysocketListen() ¤ÎÊÖ¤·¤¿Ãͤ¬É¬Íס£ |
|
|
OXFILE *oxf_open(int fd); |
OXFILE *oxf_open(int fd); |
|
|
2.5.2 ǧ¾Ú¤Ë´ØÏ¢¤·¤¿¥á¥½¥Ã¥É |
¥¤¥ó¥¹¥¿¥ó¥¹¤òÀ¸À®¤¹¤ë¤À¤±¤Ç¡¢Àܳ¤Ï¹Ô¤ï¤Ê¤¤¡£¤¹¤Ç¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡ |
|
¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ò fd ¤Ë»ØÄꤹ¤ë¡£·×»»¥µ¡¼¥Ð¤Ç¤ÎÍøÍѤòÁÛÄê¡£ |
|
|
|
3.2 ǧ¾Ú¤Ë´ØÏ¢¤·¤¿¥á¥½¥Ã¥É |
|
|
int oxf_confirm_client(OXFILE *oxfp, char *passwd); |
int oxf_confirm_client(OXFILE *oxfp, char *passwd); |
|
|
|
¥¯¥é¥¤¥¢¥ó¥È¦¤Ç¤Îǧ¾Ú¤ò¹Ô¤¦¡£ÊÖ¤êÃͤ¬1¤Î¤È¤¤ËÀ®¸ù¡¢0¤Î¤È¤¤Ë¼ºÇÔ¡£ |
|
|
int oxf_confirm_server(OXFILE *oxfp, char *passwd); |
int oxf_confirm_server(OXFILE *oxfp, char *passwd); |
|
|
|
¥µ¡¼¥Ð¦¤Ç¤Îǧ¾Ú¤ò¹Ô¤¦¡£¾ï¤ËÀ®¸ù¤¹¤ë¡£ |
|
|
void oxf_determine_byteorder_client(OXFILE *oxfp); |
void oxf_determine_byteorder_client(OXFILE *oxfp); |
void oxf_determine_byteorder_server(OXFILE *oxfp); |
void oxf_determine_byteorder_server(OXFILE *oxfp); |
|
|
|
oxfp ¤Î»Ø¤¹ÄÌ¿®Ï©¤Ç¤Î¥Ð¥¤¥È¥ª¡¼¥À¤ò·èÄꤷ¡¢oxfp ¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤ò½ñ¤´¹¤¨¤ë¡£ |
|
|
void oxf_setopt(OXFILE *oxfp, int mode); |
void oxf_setopt(OXFILE *oxfp, int mode); |
|
|
2.5.3 ¤½¤Î¾¤Î¥á¥½¥Ã¥É |
oxfp ¤ÎÀßÄê¤ò¹Ô¤¦¡£oxf_determine_byteorder_XXX() ¤ÇÍѤ¤¤é¤ì¤Æ¤¤¤ë¡£ |
|
|
|
3.3 ¤½¤Î¾¤Î¥á¥½¥Ã¥É |
|
|
int oxf_read(void *buffer, size_t size, size_t num, OXFILE *oxfp); |
int oxf_read(void *buffer, size_t size, size_t num, OXFILE *oxfp); |
int oxf_write(void *buffer, size_t size, size_t num, OXFILE *oxfp); |
int oxf_write(void *buffer, size_t size, size_t num, OXFILE *oxfp); |
void oxf_flush(OXFILE *oxfp); |
void oxf_flush(OXFILE *oxfp); |
void oxf_close(OXFILE *oxfp); |
void oxf_close(OXFILE *oxfp); |
|
|
|
fread, fwrite, fflush, fclose ¤Ë½àµò¡£ |
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3. ¹â¿å½à API(¤³¤Îµ½Ò¤Ï¸Å¤¤¤Î¤Ç»È¤ï¤Ê¤¤¤³¤È) |
4. ¹â¿å½à API(¤³¤Îµ½Ò¤Ï¸Å¤¤¤Î¤Ç»È¤ï¤Ê¤¤¤³¤È) |
|
|
¹â¿å½à API ¤Ï¡ÖOpenXM ¥¯¥é¥¤¥¢¥ó¥È¡×¤«¤éÍøÍѤ¹¤ë¤³¤È¤òÁ°Äó¤ËÀ߷פµ¤ì¤Æ¤¤¤ë¡£ |
¹â¿å½à API ¤Ï¡ÖOpenXM ¥¯¥é¥¤¥¢¥ó¥È¡×¤«¤éÍøÍѤ¹¤ë¤³¤È¤òÁ°Äó¤ËÀ߷פµ¤ì¤Æ¤¤¤ë¡£ |
|
|
3.1 ÄÌ¿®¤Î³«»Ï |
4.1 ÄÌ¿®¤Î³«»Ï |
|
|
ÄÌ¿®¤ò³«»Ï¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢¼¡¤Î´Ø¿ô¤Î¤¤¤º¤ì¤«¤òÍøÍѤ¹¤ë¡£ |
ÄÌ¿®¤ò³«»Ï¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢¼¡¤Î´Ø¿ô¤Î¤¤¤º¤ì¤«¤òÍøÍѤ¹¤ë¡£ |
*/ |
*/ |
/*&en |
/*&en |
3. High-level API |
4. High-level API |
|
|
High-level API is prepared to help an implementation of OpenXM clients. |
High-level API is prepared to help an implementation of OpenXM clients. |
|
|
3.1 How to make connections to OpenXM servers? |
4.1 How to make connections to OpenXM servers? |
|
|
In order to open a connection to an OpenXM server, you need to call |
In order to open a connection to an OpenXM server, you need to call |
ox_start() or to call ox_start_insecure_nonreverse(). |
ox_start() or to call ox_start_insecure_nonreverse(). |
Line 208 OpenXM server run on a remote host and you need to pro |
|
Line 234 OpenXM server run on a remote host and you need to pro |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.2 ÄÌ¿®¤Î½ªÎ» |
4.2 ÄÌ¿®¤Î½ªÎ» |
|
|
ÄÌ¿®¤Î½ªÎ»¤Î¤¿¤á¤Ë¤Ï¼¡¤ÎÆó¤Ä¤Î´Ø¿ô¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£ |
ÄÌ¿®¤Î½ªÎ»¤Î¤¿¤á¤Ë¤Ï¼¡¤ÎÆó¤Ä¤Î´Ø¿ô¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£ |
|
|
*/ |
*/ |
/*&en |
/*&en |
3.2 How to close connections to OpenXM servers? |
4.2 How to close connections to OpenXM servers? |
|
|
In order to close a connection to an OpenXM server, you need to call |
In order to close a connection to an OpenXM server, you need to call |
ox_close() or to call ox_shutdown(). |
ox_close() or to call ox_shutdown(). |
Line 232 void ox_shutdown(OXFILE *sv); |
|
Line 258 void ox_shutdown(OXFILE *sv); |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.3 SM ¥³¥Þ¥ó¥É¤ÎÁ÷¿® |
4.3 SM ¥³¥Þ¥ó¥É¤ÎÁ÷¿® |
*/ |
*/ |
/*&en |
/*&en |
3.3 How to command to OpenXM stack machines? |
4.3 How to command to OpenXM stack machines? |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 252 See OpenXM/include/ox_toolkit_tags.h for a list of ope |
|
Line 278 See OpenXM/include/ox_toolkit_tags.h for a list of ope |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.4 CMO ¤ÎÁ÷¼õ¿® |
4.4 CMO ¤ÎÁ÷¼õ¿® |
*/ |
*/ |
/*&en |
/*&en |
3.4 How to receive a CMO? |
4.4 How to receive a CMO? |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 273 ox_push_cmo ¤Ï cmo ¤òÁ÷¿®¡¢ox_pop_cmo ¤Ï cmo ¤ò¼õ¿®¤¹¤ |
|
Line 299 ox_push_cmo ¤Ï cmo ¤òÁ÷¿®¡¢ox_pop_cmo ¤Ï cmo ¤ò¼õ¿®¤¹¤ |
|
/*&en |
/*&en |
*/ |
*/ |
/*&ja |
/*&ja |
3.5 ¥¹¥¿¥Ã¥¯½èÍý |
4.5 ¥¹¥¿¥Ã¥¯½èÍý |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 285 int ox_pops(OXFILE *sv, int num); |
|
Line 311 int ox_pops(OXFILE *sv, int num); |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.6 ÄÌ¿®Ï©¤Î¥Õ¥é¥Ã¥·¥å |
4.6 ÄÌ¿®Ï©¤Î¥Õ¥é¥Ã¥·¥å |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 297 int ox_flush(OXFILE *sv); |
|
Line 323 int ox_flush(OXFILE *sv); |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.7 ÄÌ¿®¤ÎÃæÃÇ |
4.7 ÄÌ¿®¤ÎÃæÃÇ |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 309 void ox_reset(OXFILE *sv); |
|
Line 335 void ox_reset(OXFILE *sv); |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.8 ¥í¡¼¥«¥ë¸À¸ì¤Ç½ñ¤«¤ì¤¿¥³¥Þ¥ó¥É¤Îɾ²Á |
4.8 ¥í¡¼¥«¥ë¸À¸ì¤Ç½ñ¤«¤ì¤¿¥³¥Þ¥ó¥É¤Îɾ²Á |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 321 void ox_execute_string(OXFILE *sv, char* str); |
|
Line 347 void ox_execute_string(OXFILE *sv, char* str); |
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.9 ´Ø¿ô¸Æ¤Ó½Ð¤· |
4.9 ´Ø¿ô¸Æ¤Ó½Ð¤· |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 333 function(argv[1], ...) ¤ò·×»»¤·¡¢·ë²Ì¤ò¥¹¥¿¥Ã¥¯¤ËÀѤࡠ|
|
Line 359 function(argv[1], ...) ¤ò·×»»¤·¡¢·ë²Ì¤ò¥¹¥¿¥Ã¥¯¤ËÀѤࡠ|
|
|
|
*/ |
*/ |
/*&ja |
/*&ja |
3.10 Mathcap ¤Î¼õ¿® |
4.10 Mathcap ¤Î¼õ¿® |
|
|
*/ |
*/ |
/*&common |
/*&common |
Line 346 Mathcap ¤ò¼õ¤±¼è¤ë¡£¸½ºß¤Ï Mathcap ¤Î½èÍý¤Ï¥æ¡¼¥¶¥×¥í¥ |
|
Line 372 Mathcap ¤ò¼õ¤±¼è¤ë¡£¸½ºß¤Ï Mathcap ¤Î½èÍý¤Ï¥æ¡¼¥¶¥×¥í¥ |
|
*/ |
*/ |
/*&ja |
/*&ja |
|
|
4. Äã¿å½à API |
5. Äã¿å½à API |
|
|
Äã¿å½à API ¤Ï¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òľÀÜÍøÍѤ¹¤ë¡£ |
Äã¿å½à API ¤Ï¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òľÀÜÍøÍѤ¹¤ë¡£ |
|
|
4.1 ÄÌ¿®¤Ë»È¤ï¤ì¤ë¥Ð¥¤¥È¥ª¡¼¥À¤Î·èÄê |
5.1 ÄÌ¿®¤Ë»È¤ï¤ì¤ë¥Ð¥¤¥È¥ª¡¼¥À¤Î·èÄê |
*/ |
*/ |
/*&en |
/*&en |
|
|
4. Low-level API. |
5. Low-level API. |
|
|
In this section, ``fd'' is an identifier of an OpenXM connection. |
In this section, ``fd'' is an identifier of an OpenXM connection. |
|
|
4.1 How to decide a byte order of integers? |
5.1 How to decide a byte order of integers? |
|
|
*/ |
*/ |
/*&common |
/*&common |
Line 379 as an expression for integers. |
|
Line 405 as an expression for integers. |
|
*/ |
*/ |
/*&common |
/*&common |
|
|
4.2 |
5.2 |
|
|
*/ |
*/ |
/*&common |
/*&common |
Line 397 receive_int32() reads 32bits integer from an OpenXM co |
|
Line 423 receive_int32() reads 32bits integer from an OpenXM co |
|
*/ |
*/ |
/*&common |
/*&common |
|
|
4.3 |
5.3 |
|
|
*/ |
*/ |
/*&common |
/*&common |
Line 415 receive_cmo() reads an CMObject from an OpenXM connect |
|
Line 441 receive_cmo() reads an CMObject from an OpenXM connect |
|
*/ |
*/ |
/*&common |
/*&common |
|
|
4.4 |
5.4 |
|
|
*/ |
*/ |
/*&common |
/*&common |
Line 430 next_serial() generates a serial number for ox message |
|
Line 456 next_serial() generates a serial number for ox message |
|
*/ |
*/ |
/*&common |
/*&common |
|
|
4.5 |
5.5 |
|
|
*/ |
*/ |
/*&common |
/*&common |
Line 450 receive_ox_tag() reads a tag and a serial number of an |
|
Line 476 receive_ox_tag() reads a tag and a serial number of an |
|
*/ |
*/ |
/*&common |
/*&common |
|
|
4.6 Sending OX messages. |
5.6 Sending OX messages. |
|
|
*/ |
*/ |
/*&common |
/*&common |
Line 465 OX ¥á¥Ã¥»¡¼¥¸¤òÁ÷¿®¤¹¤ë¡£ |
|
Line 491 OX ¥á¥Ã¥»¡¼¥¸¤òÁ÷¿®¤¹¤ë¡£ |
|
|
|
/*&ja |
/*&ja |
|
|
5. OX expression ¥Ñ¡¼¥µ |
6. OX expression ¥Ñ¡¼¥µ |
|
|
*/ |
*/ |
/*&en |
/*&en |
|
|
5. Parser for OX expressions |
6. Parser for OX expressions |
|
|
*/ |
*/ |
/*&ja |
/*&ja |
Line 484 encoded OX/CMO expression. In this section, we explai |
|
Line 510 encoded OX/CMO expression. In this section, we explai |
|
*/ |
*/ |
/*&en |
/*&en |
|
|
5.1 Setting an option |
6.1 Setting an option |
*/ |
*/ |
/*&ja |
/*&ja |
|
|
5.1 ¥ª¥×¥·¥ç¥ó |
6.1 ¥ª¥×¥·¥ç¥ó |
*/ |
*/ |
/*&common |
/*&common |
|
|
|
|
*/ |
*/ |
/*&en |
/*&en |
|
|
5.2 Initializing |
6.2 Initializing |
*/ |
*/ |
/*&ja |
/*&ja |
|
|
5.2 ½é´ü²½ |
6.2 ½é´ü²½ |
*/ |
*/ |
/*&common |
/*&common |
|
|
Line 524 We give the parser an OX/CMO expression, that is, a Li |
|
Line 550 We give the parser an OX/CMO expression, that is, a Li |
|
*/ |
*/ |
/*&en |
/*&en |
|
|
5.3 Getting an object |
6.3 Getting an object |
*/ |
*/ |
/*&ja |
/*&ja |
|
|
5.3 ·ë²Ì¤òÆÀ¤ë |
6.3 ·ë²Ì¤òÆÀ¤ë |
*/ |
*/ |
/*&common |
/*&common |
|
|