Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
314 |
ligi |
1 |
require 'socket' |
|
|
2 |
|
|
|
3 |
port=2323 |
|
|
4 |
|
|
|
5 |
server=TCPServer.new('192.168.1.42',port) |
|
|
6 |
while (session=server.accept) |
|
|
7 |
puts "accept session: " + session.inspect |
|
|
8 |
session.print "OK" |
|
|
9 |
while (input=session.gets) |
|
|
10 |
p input |
|
|
11 |
end |
|
|
12 |
end |