Module: PHPRPC

Defined in:
lib/phprpc/server.rb,
lib/phprpc.rb,
lib/phprpc/cgi_server.rb,
lib/phprpc/ebb_server.rb,
lib/phprpc/base_server.rb,
lib/phprpc/fake_server.rb,
lib/phprpc/fcgi_server.rb,
lib/phprpc/scgi_server.rb,
lib/phprpc/thin_server.rb,
lib/phprpc/lsapi_server.rb,
lib/phprpc/mongrel_server.rb,
lib/phprpc/webrick_server.rb

Overview

# The implementation of PHPRPC Protocol 3.0 #

#

server.rb #

#

Release 3.0.5 # Copyright by Team-PHPRPC #

#

WebSite: www.phprpc.org/ #

http://www.phprpc.net/                         #
http://www.phprpc.com/                         #
http://sourceforge.net/projects/php-rpc/       #
                                               #

Authors: Ma Bingyao <[email protected]> #

#

This file may be distributed and/or modified under the # terms of the GNU Lesser General Public License (LGPL) # version 3.0 as published by the Free Software Foundation # and appearing in the included file LICENSE. #

#

PHPRPC Server library.

Copyright: Ma Bingyao <[email protected]> Version: 3.0 LastModified: Mar 8, 2009 This library is free. You can redistribute it and/or modify it.

Defined Under Namespace

Classes: BaseServer, CGIServer, DHParams, EbbServer, FCGIServer, FakeServer, LSAPIServer, MongrelServer, Request, SCGIProcessor, SCGIServer, ThinServer, WEBrickServer, WEBrickServlet

Constant Summary collapse

VERSION =
[3,0]
Server =
case ARGV[0].downcase
when 'mongrel' then MongrelServer
when 'thin' then ThinServer
when 'fcgi' then FCGIServer
when 'scgi' then SCGIServer
when 'lsapi' then LSAPIServer
when 'ebb' then EbbServer
when 'webrick' then WEBrickServer
else (ENV['GATEWAY_INTERFACE'] =~ /CGI\/\d.\d/ ? CGIServer : FakeServer)
end
CR =

String for carriage return

"\015"
LF =

String for linefeed

"\012"
EOL =

Standard internet newline sequence

CR + LF

Class Method Summary collapse

Class Method Details

.releaseObject



49
50
51
# File 'lib/phprpc.rb', line 49

def self.release
  "1.0"
end

.versionObject



45
46
47
# File 'lib/phprpc.rb', line 45

def self.version
  VERSION.join(".")
end