org.objectweb.joram.mom.proxies.tcp

Class 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, AgentId proxyId, AckedQueue replyQueue, int key, TcpProxyService proxyService, boolean closeConnection)
Creates a new TCP connection.

Method Summary

int
getKey()

Constructor Details

TcpConnection

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

Parameters:
proxyService - the TCP proxy service

Method Details

getKey

public final int getKey()


Copyright B) 2004 Scalagent - All rights reserved