Go to the first, previous, next, last section, table of contents.


generate_port, try_bind_listen, try_connect, try_accept, register_server

generate_port([use_unix])
:: port の生成
try_bind_listen(port)
:: port に対して bind, listen
try_connect(host,port)
:: port に対して connect
try_accept(socket,port)
:: connect 要求を accept
register_server(control_socket,control_port,server_socket,server_port)
:: connection の成立した control socket, server socket の登録
return
generate_port() のみ整数または文字列. その他は整数.
use_unix
0 または 1
host
文字列
port,control_port,server_port
整数または文字列
socket,control_socket,server_socket
整数
[340] CPort=generate_port();
39896
[341] SPort=generate_port();
37222
[342] CSocket=try_bind_listen(CPort);
3
[343] SSocket=try_bind_listen(SPort);
5

/*
ここで, ox_launch を起動 :
%  ox_launch "127.1" 0 39716 37043 ox_asir "shio:0"
*/

[344] CSocket=try_accept(CSocket,CPort);
6
[345] SSocket=try_accept(SSocket,SPort);  
3
[346] register_server(CSocket,CPort,SSocket,SPort);
0
参照
section ox_launch, ox_launch_nox, ox_shutdown, section ox_launch_generic, section shell, section ox_push_cmo, ox_push_local


Go to the first, previous, next, last section, table of contents.