public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Add more doc.
macournoyer (author)
Mon Feb 04 21:11:47 -0800 2008
commit  5a0965b38c1c83db9d69ec4aeaad3505888cade3
tree    11378c49e4d70be47d1810e52ade59b0d17a2326
parent  fa34dcfeeb8c1112c8262cf42ab9c2a58126ff5e
...
1
2
3
 
4
5
6
...
1
2
3
4
5
6
7
0
@@ -1,6 +1,7 @@
0
 require 'socket'
0
 
0
 module Thin
0
+ # Connection between the server and client.
0
   class Connection < EventMachine::Connection
0
     include Logging
0
     
...
1
2
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
0
@@ -1,5 +1,9 @@
0
 module Thin
0
   module Connectors
0
+ # A Connector connect the server to the client. It handles:
0
+ # * connection/disconnection to the server
0
+ # * initialization of the connections
0
+ # * manitoring of the active connections.
0
     class Connector
0
       include Logging
0
       
...
1
2
 
3
4
5
 
6
7
8
...
1
2
3
4
5
 
6
7
8
9
0
@@ -1,8 +1,9 @@
0
 module Thin
0
   module Connectors
0
+ # Connectior to act as a TCP socket server.
0
     class TcpServer < Connector
0
       # Address and port on which the server is listening for connections.
0
- attr_accessor :port, :host
0
+ attr_accessor :host, :port
0
       
0
       def initialize(host, port)
0
         @host = host
...
1
2
 
 
3
4
5
...
1
 
2
3
4
5
6
0
@@ -1,5 +1,6 @@
0
 module Thin
0
- module Connectors
0
+ module Connectors
0
+ # Connectior to act as a UNIX domain socket server.
0
     class UnixServer < Connector
0
       # UNIX domain socket on which the server is listening for connections.
0
       attr_accessor :socket

Comments

    No one has commented yet.