5件ヒット
[1-5件を表示]
(0.023秒)
検索結果
先頭5件
-
Socket
:: Constants :: IFF _ XMIT _ DST _ RELEASE (55.0) -
dev_hard_start_xmit() is allowed to release skb->dst
dev_hard_start_xmit() is allowed to release skb->dst -
Socket
:: Constants :: MSG _ FLUSH -> Integer (55.0) -
@todo Start of a hold sequence. Dumps to so_temp
@todo
Start of a hold sequence. Dumps to so_temp -
Socket
:: IFF _ XMIT _ DST _ RELEASE (55.0) -
dev_hard_start_xmit() is allowed to release skb->dst
dev_hard_start_xmit() is allowed to release skb->dst -
Socket
:: MSG _ FLUSH -> Integer (55.0) -
@todo Start of a hold sequence. Dumps to so_temp
@todo
Start of a hold sequence. Dumps to so_temp -
TCPServer (25.0)
-
TCP/IP ストリーム型接続のサーバ側のソケットのクラスです。
...ットを利用したサーバのプログラミングができます。
例えば echo サーバは以下のようになります。
require "socket"
gs = TCPServer.open(0)
socks = [gs]
addr = gs.addr
addr.shift
printf("server is on %s\n", addr.join(":"))
while true
nsock......e
str = s.gets
s.write(str)
end
end
end
end
Thread を使えばもっと短くなります。
require "socket"
gs = TCPServer.open(0)
addr = gs.addr
addr.shift
printf("server is on %s\n", addr.join(":"))
while true
Thread.start(gs.accep...