js_open_lang() ???????????ڥ??ե??å????Ѵ??????Ф?
???ѤϤ??롣
#include "jslib.h"
WNN_JSERVER_ID *
js_open(server, lang, timeout)
char *server; /* ?????ФΤ????ޥ????Υۥ???̾ */
char *lang; /* ?????? */
int timeout; /* ?????ॢ???Ȼ??? */
- ???????????ڥ??ե??å????Ѵ??????Фλ??ѤϤ??롣
?????ФΤ????ޥ????Υۥ???̾ server
????NULL?ޤ??ϡ???ʸ???ޤ??ϡ?
"unix"
?ξ????ϡ??ۥ???̾?ϡ?"unix"
?ˤʤꡢUNIX
?ɥᥤ???Υ????åȤ?
???Ѥ????롣???ξ????Ρ??????åȤν?ü̾?ϡ?serverdefs
?ե????????? lang
?????פ????Ԥ???3?ब???Ѥ????롣???줬???Ĥ????ʤ??????ϡ?
?ǥե????? /tmp/jd_sockV4 ?Ǥ??롣
?????ʳ??ξ????ϡ??ۥ???̾?ϡ?gethostname(3N)???????ͤˤʤꡢINET
?ɥ?
?????Υ????åȤ????Ѥ????롣???ξ????Ρ??????ӥ?̾?ϡ?serverdefs
?ե?????????lang
?????פ????Ԥ???4?ब???Ѥ????롣???줬???Ĥ????ʤ?
?????ϡ??ǥե????? wnn4 ?Ǥ??롣
lang
?ǡ??Ѵ??оݤθ????????ꤹ?롣
"ja_JP" ???ܸ?
"zh_CN" ??????
"ko_KR" ?ڹ???
"zh_TW" ???Ѹ?
?Ǥ??롣
timeout(??)?????ˡ??????Ф???³?Ǥ??ʤ??????ϡ???³?????Ǥ??۾ェλ???롣
?????ॢ???Ȥ??????Τ????ˡ?SIGALARM
?????Ѥ??Ƥ??롣 timeout ?? 0
?ޤ??ϡ????ξ????ϡ?SIGALARM
?????Ѥ??ʤ???
???ェλ???ˤϡ???????ID???֤???
?۾ェλ???ˤϡ?NULL ???֤???
- ?????ॢ???Ȥˤϡ?SIGALARM
?????Ѥ??Ƥ????Τǡ????դ?ɬ?פǤ??롣
SIGALARM ?????Ѥ????????ˤϡ?timeout ?? 0
?????ꤷ?ʤ????Фʤ??ʤ???