[BACK]Return to DOCUMENT.ja CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_socket

Diff for /OpenXM/src/ox_socket/DOCUMENT.ja between version 1.3 and 1.4

version 1.3, 2000/11/30 13:05:45 version 1.4, 2000/12/01 07:42:42
Line 1 
Line 1 
 $OpenXM: OpenXM/src/ox_socket/DOCUMENT.ja,v 1.2 2000/11/30 00:51:00 maekawa Exp $  $OpenXM: OpenXM/src/ox_socket/DOCUMENT.ja,v 1.3 2000/11/30 13:05:45 maekawa Exp $
   
 Drafts of the specification of the OpenXM standard socket APIs.  Drafts of the specification of the OpenXM standard socket APIs.
   
Line 34  Drafts of the specification of the OpenXM standard soc
Line 34  Drafts of the specification of the OpenXM standard soc
   
         listen(2) の代わりに ox_listen を使うべし.          listen(2) の代わりに ox_listen を使うべし.
   
         struct listen_socks *          struct ox_listen_socks *
         ox_listen(const char *hostname, int *port, int backlog,          ox_listen(const char *hostname, int *port, int backlog,
                   struct ox_sockopt *opt);                    struct ox_sockopt *opt);
   
Line 43  Drafts of the specification of the OpenXM standard soc
Line 43  Drafts of the specification of the OpenXM standard soc
         backlog  - listen(2) の第二引数          backlog  - listen(2) の第二引数
         opt      - setsockopt(2) へ渡したいオプション群 (ox_connect と同様)          opt      - setsockopt(2) へ渡したいオプション群 (ox_connect と同様)
   
         struct listen_socks {          #define OX_MAX_LISTEN_SOCKS     32
   
           struct ox_listen_socks {
                   int     sock[OX_MAX_LISTEN_SOCKS];
                 int     nsocks;                  int     nsocks;
                 int     listen_sock[nsocks];    /* 動的に割り当てられる */  
         };          };
   
         hostname が NULL の場合, ox_listen は任意のホスト          hostname が NULL の場合, ox_listen は任意のホスト
Line 54  Drafts of the specification of the OpenXM standard soc
Line 56  Drafts of the specification of the OpenXM standard soc
         成功すれば listen(2) しているソケットの数と配列への構造体への          成功すれば listen(2) しているソケットの数と配列への構造体への
         ポインタを, 失敗すれば NULL を返す.          ポインタを, 失敗すれば NULL を返す.
   
         listen_socks 構造体を使う理由:          ox_listen_socks 構造体を使う理由:
                 待ち受けているソケットは必ずしもひとつではない.                  待ち受けているソケットは必ずしもひとつではない.
                 IPv4 と IPv6 双方が利用可能な (デュアルスタックな)                  IPv4 と IPv6 双方が利用可能な (デュアルスタックな)
                 マシンにおいて, IPv4 および IPv6 をサポートしている                  マシンにおいて, IPv4 および IPv6 をサポートしている

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>