You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2012/10/13 00:49:17 UTC

svn commit: r1397734 - in /mina/site/trunk/content/mina/userguide: ch1/features.mdtext ch1/first_steps.mdtext ch1/nio_overview.mdtext ch1/summary.mdtext ch2/sample_udp_client.mdtext ch2/server_architecture.mdtext

Author: elecharny
Date: Fri Oct 12 22:49:16 2012
New Revision: 1397734

URL: http://svn.apache.org/viewvc?rev=1397734&view=rev
Log:
Fixed some typos, accents and remove dHTML tags

Modified:
    mina/site/trunk/content/mina/userguide/ch1/features.mdtext
    mina/site/trunk/content/mina/userguide/ch1/first_steps.mdtext
    mina/site/trunk/content/mina/userguide/ch1/nio_overview.mdtext
    mina/site/trunk/content/mina/userguide/ch1/summary.mdtext
    mina/site/trunk/content/mina/userguide/ch2/sample_udp_client.mdtext
    mina/site/trunk/content/mina/userguide/ch2/server_architecture.mdtext

Modified: mina/site/trunk/content/mina/userguide/ch1/features.mdtext
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/mina/userguide/ch1/features.mdtext?rev=1397734&r1=1397733&r2=1397734&view=diff
==============================================================================
--- mina/site/trunk/content/mina/userguide/ch1/features.mdtext (original)
+++ mina/site/trunk/content/mina/userguide/ch1/features.mdtext Fri Oct 12 22:49:16 2012
@@ -33,7 +33,7 @@ MINA is a simple yet full-featured netwo
     * Single thread
     * One thread pool
     * More than one thread pools (i.e. SEDA)
-* Out-of-the-box SSL · TLS · StartTLS support using Java 5 SSLEngine
+* Out-of-the-box SSL · TLS · StartTLS support using Java 5 SSLEngine
 * Overload shielding & traffic throttling
 * Unit testability using mock objects
 * JMX managability

Modified: mina/site/trunk/content/mina/userguide/ch1/first_steps.mdtext
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/mina/userguide/ch1/first_steps.mdtext?rev=1397734&r1=1397733&r2=1397734&view=diff
==============================================================================
--- mina/site/trunk/content/mina/userguide/ch1/first_steps.mdtext (original)
+++ mina/site/trunk/content/mina/userguide/ch1/first_steps.mdtext Fri Oct 12 22:49:16 2012
@@ -26,21 +26,17 @@ Download the latest MINA release from Do
 
 After the download is complete, extract the content of tar.gz or zip file to local hard drive. The downloaded compressed file has following contents
 
-<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
-<PRE>--/mina-2.0.0
- |
- |- dist
- |- docs
- |- lib
- |- src
- |- LICENSE.txt
- |- LICENSE.jzlib.txt
- |- LICENSE.ognl.txt
- |- LICENSE.slf4j.txt
- |- LICENSE.springframework.txt
- |- NOTICE.txt
-</PRE>
-</DIV></DIV>
+     |
+     +- dist
+     +- docs
+     +- lib
+     +- src
+     +- LICENSE.txt
+     +- LICENSE.jzlib.txt
+     +- LICENSE.ognl.txt
+     +- LICENSE.slf4j.txt
+     +- LICENSE.springframework.txt
+     +- NOTICE.txt
 
 ## Content Details
 
@@ -72,18 +68,12 @@ very basic logging.</TD></TR></TABLE></D
 
 On the command prompt, issue the following command :
 
-<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
-<PRE>&gt;java org.apache.mina.example.gettingstarted.timeserver.MinaTimeServer
-</PRE>
-</DIV></DIV>
+    $ java org.apache.mina.example.gettingstarted.timeserver.MinaTimeServer
 
 This shall start the server. Now telnet and see the program in action
 
 Issue following command to telnet
 
-<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
-<PRE>telnet 127.0.0.1 9123
-</PRE>
-</DIV></DIV>
+    telnet 127.0.0.1 9123
 
 Well, we have run our first MINA program. Please try other sample programs shipped with MINA as examples.

Modified: mina/site/trunk/content/mina/userguide/ch1/nio_overview.mdtext
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/mina/userguide/ch1/nio_overview.mdtext?rev=1397734&r1=1397733&r2=1397734&view=diff
==============================================================================
--- mina/site/trunk/content/mina/userguide/ch1/nio_overview.mdtext (original)
+++ mina/site/trunk/content/mina/userguide/ch1/nio_overview.mdtext Fri Oct 12 22:49:16 2012
@@ -20,7 +20,7 @@ Notice:    Licensed to the Apache Softwa
 
 NIO API's were introduced in Java 1.4 and had since been used for wide number of applications. NIO API's allows IO operations without blocking the processing with it.
 
-The java.nio.* package contains following key constructs
+The `java.nio.*` package contains following key constructs
 
 * _Buffers_ - Data Containers
 * _Chartsets_ - Containers translators for bytes and Unicode

Modified: mina/site/trunk/content/mina/userguide/ch1/summary.mdtext
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/mina/userguide/ch1/summary.mdtext?rev=1397734&r1=1397733&r2=1397734&view=diff
==============================================================================
--- mina/site/trunk/content/mina/userguide/ch1/summary.mdtext (original)
+++ mina/site/trunk/content/mina/userguide/ch1/summary.mdtext Fri Oct 12 22:49:16 2012
@@ -21,5 +21,3 @@ Notice:    Licensed to the Apache Softwa
 In this chapter, we looked at MINA based Application Architecture, for Client as well as Server. We also touched upon the implementation of Sample TCP Server/Client, and UDP Server and Client.
 
 In the chapters to come we shall discuss about MINA Core constructs and advanced topics
-
-

Modified: mina/site/trunk/content/mina/userguide/ch2/sample_udp_client.mdtext
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/mina/userguide/ch2/sample_udp_client.mdtext?rev=1397734&r1=1397733&r2=1397734&view=diff
==============================================================================
--- mina/site/trunk/content/mina/userguide/ch2/sample_udp_client.mdtext (original)
+++ mina/site/trunk/content/mina/userguide/ch2/sample_udp_client.mdtext Fri Oct 12 22:49:16 2012
@@ -29,35 +29,27 @@ To implement the Client we need to do fo
 
 We will begin by looking at the file [MemMonClient.java](http://mina.apache.org/report/trunk/xref/org/apache/mina/example/udp/client/MemMonClient.html), found in the org.apache.mina.example.udp.client java package. The first few lines of the code are simple and straightforward.
 
-<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
-<PRE>
-connector = new NioDatagramConnector();
-connector.setHandler( this );
-ConnectFuture connFuture = connector.connect( new InetSocketAddress("localhost", MemoryMonitor.PORT ));
-</PRE>
-</DIV></DIV>
+    connector = new NioDatagramConnector();
+    connector.setHandler( this );
+    ConnectFuture connFuture = connector.connect( new InetSocketAddress("localhost", MemoryMonitor.PORT ));
 
 Here we create a NioDatagramConnector, set the handler and connect to the server. One gotcha I ran into was that you must set the host in the InetSocketAddress object or else nothing seems to work. This example was mostly written and tested on a Windows XP machine, so things may be different elsewhere. Next we will wait for acknowledgment that the client has connected to the server. Once we know we are connected, we can start writing data to the server. Here is that code:
 
-<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
-<PRE>
-connFuture.addListener( new IoFutureListener(){
-            public void operationComplete(IoFuture future) {
-                ConnectFuture connFuture = (ConnectFuture)future;
-                if( connFuture.isConnected() ){
-                    session = future.getSession();
-                    try {
-                        sendData();
-                    } catch (InterruptedException e) {
-                        e.printStackTrace();
+    connFuture.addListener( new IoFutureListener(){
+                public void operationComplete(IoFuture future) {
+                    ConnectFuture connFuture = (ConnectFuture)future;
+                    if( connFuture.isConnected() ){
+                        session = future.getSession();
+                        try {
+                            sendData();
+                        } catch (InterruptedException e) {
+                            e.printStackTrace();
+                        }
+                    } else {
+                        log.error("Not connected...exiting");
                     }
-                } else {
-                    log.error("Not connected...exiting");
                 }
-            }
-        });
-</PRE>
-</DIV></DIV>
+            });
 
 Here we add a listener to the ConnectFuture object and when we receive a callback that the client has connected, we will start to write data. The writing of data to the server will be handled by a method called sendData. This method is shown below:
 

Modified: mina/site/trunk/content/mina/userguide/ch2/server_architecture.mdtext
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/mina/userguide/ch2/server_architecture.mdtext?rev=1397734&r1=1397733&r2=1397734&view=diff
==============================================================================
--- mina/site/trunk/content/mina/userguide/ch2/server_architecture.mdtext (original)
+++ mina/site/trunk/content/mina/userguide/ch2/server_architecture.mdtext Fri Oct 12 22:49:16 2012
@@ -25,4 +25,4 @@ We have seen, MINA based Application Arc
 * IOAcceptor listens on the network for incoming connections/packets
 * For a new connection, a new session is created and all subsequent request from IP Address/Port combination are handled in that Session
 * All packets received for a Session, traverses the Filter Chain as specified in the diagram. Filters can be used to modify the content of packets (like converting to Objects, adding/removing information etc). For converting to/from raw bytes to High Level Objects, PacketEncoder/Decoder are particularly useful
-* Finally the packet or converted object lands in IOHandler. IOHandlers can be used to full fill business needs.
+* Finally the packet or converted object lands in `IOHandler`. `IOHandler`s can be used to fulfill business needs.