alworker:tcp_ipサーバー
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
alworker:tcp_ipサーバー [2015/11/22 12:24] – 外部編集 127.0.0.1 | alworker:tcp_ipサーバー [2020/08/27 14:42] – hirohito | ||
---|---|---|---|
行 15: | 行 15: | ||
# イニシャライザでTCPを用意する。 | # イニシャライザでTCPを用意する。 | ||
def initialize2() | def initialize2() | ||
- | @tcp = Tcp.new( "< | + | @tcp = Tcp.new( "< |
@tcp.run( self ) | @tcp.run( self ) | ||
end | end | ||
行 111: | 行 111: | ||
end | end | ||
end | end | ||
+ | |||
+ | |||
+ | class TcpServer < AlWorker | ||
+ | |||
+ | def initialize2() | ||
+ | @tcp = WebServer.new( "< | ||
+ | @tcp.run( self ) | ||
+ | end | ||
+ | |||
+ | end | ||
+ | |||
+ | server = TcpServer.new( " | ||
+ | server.daemon() | ||
</ | </ | ||
alworker/tcp_ipサーバー.txt · 最終更新: 2023/08/19 12:06 by hirohito