Jetif v1.8.0

jetif.ext.proxy
Class SocketProxyAgent

java.lang.Object
  extended byjetif.ext.proxy.SocketProxyAgent

public class SocketProxyAgent
extends Object

The SocketProxyAgent represents a SOCKET proxy agent implemenation. User should create a instance of this agent inside the application JVM.
Sample usage:

 	// create socket proxy agent
 	SocketProxyAgent agent = new SocketProxyAgent();
 	agent.start();
 

Author:
Vicky Wang

Field Summary
static int DEFAULT_PORT
           
 
Constructor Summary
SocketProxyAgent()
          Construct from default port number.
SocketProxyAgent(int port)
          Construct from specified port number.
 
Method Summary
 void start()
          Start this proxy agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

SocketProxyAgent

public SocketProxyAgent()
                 throws IOException
Construct from default port number.

Throws:
IOException - if error occurs when construct the server socket.

SocketProxyAgent

public SocketProxyAgent(int port)
                 throws IOException
Construct from specified port number.

Parameters:
port - the port to listen.
Throws:
IOException - if error occurs when construct the server socket.
Method Detail

start

public void start()
Start this proxy agent.


Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.