this.myAddress = sipStack.getHostAddress(); this.myPort = messageProcessor.getPort(); this.stack = sipStack; if (LogWriter.needsLogging) { this.stack.logWriter.logMessage( "Creating message channel " + targetAddr.getHostAddress() + "/" + port); }
this.stack = stack; Thread mythread = new Thread(this); mythread.setName("UDPMessageChannelThread"); mythread.setDaemon(true); mythread.start();
    protected UDPMessageChannel(    InetAddress targetAddr,    int port,    SIPMessageStack sipStack,    UDPMessageProcessor messageProcessor) {        peerAddress = targetAddr;        peerPort = port;        peerProtocol = "UDP";        super.messageProcessor = messageProcessor;        this.myAddress = sipStack.getHostAddress();        this.myPort = messageProcessor.getPort();        this.stack = sipStack;        if (LogWriter.needsLogging) {            this.stack.logWriter.logMessage(            "Creating message channel "            + targetAddr.getHostAddress()            + "/"            + port);        }    }