jetif.ext.proxy
Class SocketProxyAgent
java.lang.Object
jetif.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
|
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 |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
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.
start
public void start()
- Start this proxy agent.
Copyright © 2004,2005 Vicky Wang - All Rights Reserved.