[BACK]Return to mysocket.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Diff for /OpenXM/src/ox_toolkit/mysocket.c between version 1.2 and 1.3

version 1.2, 2000/01/05 06:05:35 version 1.3, 2000/01/13 07:57:09
Line 1 
Line 1 
 /* -*- mode: C; coding: euc-japan -*- */  /* -*- mode: C; coding: euc-japan -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/mysocket.c,v 1.1 1999/12/09 22:44:55 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/mysocket.c,v 1.2 2000/01/05 06:05:35 ohara Exp $ */
 /*  /*
 setsockopt()してオプションを設定後,  Q: How to get a local port number?
 socket, bind  A: You do setsockopt() to set options and do socket(), bind().
 するとローカルポートが割り当てられる。  An OS set a local port for you.
 その後, getsockname によってポート番号が求まる.  In order to get the local port, you need to do getsockname().
   (See [1] pp. 91, pp. 187 for detail)
   
   Reference
   [1] W. Richard Stevens, "UNIX Network Programming", 2nd ed. Vol. 1
 */  */
   
 #include <stdio.h>  #include <stdio.h>

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

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