/[storm]/storm/org/nongnu/storm/http/server/HTTPServer.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/http/server/HTTPServer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by hemppah, Tue Apr 29 13:16:49 2003 UTC revision 1.3 by hemppah, Mon May 5 13:27:30 2003 UTC
# Line 77  public class HTTPServer extends Thread { Line 77  public class HTTPServer extends Thread {
77          lsock = new ServerSocket(port, backlog, bindAddr);          lsock = new ServerSocket(port, backlog, bindAddr);
78      }      }
79            
80        /** Return the IP-address of remote host */
81        
82        public String getRemoteIPAddress() {
83            
84            return csock.getInetAddress().toString().substring(1);
85            
86        }    
87        
88      public void run() {      public void run() {
89          try {          try {
90              while (!isInterrupted()) {              while (!isInterrupted()) {
91                  Socket csock = lsock.accept();                  csock = lsock.accept();
92                  HTTPConnection sess =                  HTTPConnection sess =
93                      connf.newConnection(csock);                      connf.newConnection(csock);
94              }              }
# Line 90  public class HTTPServer extends Thread { Line 97  public class HTTPServer extends Thread {
97    
98      private ServerSocket lsock;      private ServerSocket lsock;
99      private HTTPConnection.Factory connf;      private HTTPConnection.Factory connf;
100        private Socket csock;
101    
102      public static void main(String[] argv) {      public static void main(String[] argv) {
103          try {          try {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26