るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.013秒)
トップページ > クエリ:start[x] > ライブラリ:socket[x]

別のキーワード

  1. smtp start
  2. net/smtp start
  3. pop start
  4. pop3 start
  5. http start

種類

クラス

モジュール

キーワード

検索結果

Socket::Constants::IFF_XMIT_DST_RELEASE (18.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 (18.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 (18.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 (18.0)

@todo Start of a hold sequence. Dumps to so_temp

...@todo
Start
of a hold sequence. Dumps to so_temp...

TCPServer (8.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...
...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.accept) do |s| # save to dynamic variable
print(s, " is accept...

絞り込み条件を変える