Joram ${version}

org.objectweb.joram.mom.proxies.tcp
Class TcpConnection

java.lang.Object
  extended byorg.objectweb.joram.mom.proxies.tcp.TcpConnection

public class TcpConnection
extends java.lang.Object

Handles the TCP connection. Starts the reader and writer threads responsible for reading the requests and writing the replies. Calls the UserConnection in order to invoke the user's proxy and get its replies.

See Also:
TcpProxyService, TcpConnectionListener

Constructor Summary
TcpConnection(IOControl ioctrl, fr.dyade.aaa.agent.AgentId proxyId, AckedQueue replyQueue, int key, TcpProxyService proxyService, boolean closeConnection)
          Creates a new TCP connection.
 
Method Summary
 int getKey()
           
 fr.dyade.aaa.agent.AgentId getProxyId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpConnection

public TcpConnection(IOControl ioctrl,
                     fr.dyade.aaa.agent.AgentId proxyId,
                     AckedQueue replyQueue,
                     int key,
                     TcpProxyService proxyService,
                     boolean closeConnection)
Creates a new TCP connection.

Parameters:
proxyService - the TCP proxy service
Method Detail

getProxyId

public final fr.dyade.aaa.agent.AgentId getProxyId()

getKey

public final int getKey()

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved