Port

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
[[Category:Configuration]]
+
{{Cleanup}} [[Category:Configuration]]
  
It is possible to configure Resin to listen to custom protocols using the <port> tag.  <port> is like <[[http]]> or <[[srun]]> in that it listens to a port and accepts connections, but it allows you to choose a custom protocol.
+
It is possible to configure Resin to listen to custom protocols using the <port> directive.  <port> is like <[[http]]> or <[[srun]]> in that it listens to a port and accepts connections, but it allows you to choose a custom protocol.
  
 
In fact, <[[http]]> and <[[srun]]> are specializations of port:
 
In fact, <[[http]]> and <[[srun]]> are specializations of port:

Latest revision as of 21:20, 1 December 2011

40px-Edit-clear.png This article requires cleanup and may refer to a legacy version of Resin.

Please visit http://www.caucho.com/documentation/ for the most up-to-date documentation.

It is possible to configure Resin to listen to custom protocols using the <port> directive. <port> is like <http> or <srun> in that it listens to a port and accepts connections, but it allows you to choose a custom protocol.

In fact, <http> and <srun> are specializations of port:

Configuring a HTTP port

<resin xmlns="http://caucho.com/ns/resin"
       xmlns:resin="http://caucho.com/ns/resin/core">
...
<server>
  <port host="localhost" port="8080">
    <protocol resin:type="com.caucho.server.http.HttpProtocol"/>
  </port>
  ...
</server>
</resin>


Configuring a Srun port outside of a cluster

<resin xmlns="http://caucho.com/ns/resin"
       xmlns:resin="http://caucho.com/ns/resin/core">
...
<server>
  <port host="localhost port="6802">
    <protocol resin:type="com.caucho.server.hmux.HmuxProtocol"/>
  </port>
  ...
</server>
</resin>
Personal tools