this.peerAddress = inetAddr; this.peerPort = port; this.myPort = messageProcessor.getPort(); this.peerProtocol = "TCP"; this.stack = sipStack; this.tcpMessageProcessor = messageProcessor; this.myAddress = sipStack.getHostAddress();
mySock = sock; peerAddress = mySock.getInetAddress(); myAddress = sipStack.getHostAddress(); myClientInputStream = mySock.getInputStream(); myClientOutputStream = mySock.getOutputStream(); mythread = new Thread(this); mythread.setName("TCPMessageChannelThread");  stack = sipStack; this.tcpMessageProcessor = msgProcessor; this.myPort = this.tcpMessageProcessor.getPort();
	protected TCPMessageChannel(		InetAddress inetAddr,		int port,		SIPStack sipStack,		TCPMessageProcessor messageProcessor)		throws IOException {		if (LogWriter.needsLogging)  {			sipStack.logWriter.logMessage(			"creating new TCPMessageChannel ");			sipStack.logWriter.logStackTrace();		}		this.peerAddress = inetAddr;		this.peerPort = port;		this.myPort = messageProcessor.getPort();		this.peerProtocol = "TCP";		this.stack = sipStack;		this.tcpMessageProcessor = messageProcessor;		this.myAddress = sipStack.getHostAddress();		// Bug report by Vishwashanti Raj Kadiayl 		this.key = MessageChannel.getKey(peerAddress,peerPort,"TCP");		super.messageProcessor = messageProcessor;	}