All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sipstack.netty.codec.sip.TcpConnection Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package io.sipstack.netty.codec.sip;

import io.netty.channel.Channel;
import io.pkts.packet.sip.SipMessage;

import java.net.InetSocketAddress;

/**
 * @author [email protected]
 */
public final class TcpConnection extends AbstractConnection {


    public TcpConnection(final Channel channel, final InetSocketAddress remote) {
        super(channel, remote);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void send(final SipMessage msg) {
        channel().writeAndFlush(toByteBuf(msg));
    }

    @Override
    public boolean connect() {
        return true;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy