UdpMessageSenderpublic abstract class MessageSender extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected InetAddress |
inetAddress |
|
static int |
KEEY_ALIVE_INTERVAL |
|
protected int |
localPort |
|
protected Logger |
logger |
|
protected int |
port |
| Constructor | Description |
|---|---|
MessageSender(int localPort,
InetAddress inetAddress,
int port,
Config config,
String transportName,
Logger logger) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getContact() |
|
int |
getLocalPort() |
|
abstract void |
sendBytes(byte[] bytes) |
|
abstract void |
sendMessage(SipMessage sipMessage) |
|
void |
stopKeepAlives() |
public static final int KEEY_ALIVE_INTERVAL
protected InetAddress inetAddress
protected int port
protected int localPort
protected Logger logger
public MessageSender(int localPort,
InetAddress inetAddress,
int port,
Config config,
String transportName,
Logger logger)
public abstract void sendMessage(SipMessage sipMessage) throws IOException
IOExceptionpublic abstract void sendBytes(byte[] bytes)
throws IOException
IOExceptionpublic String getContact()
public int getLocalPort()
public void stopKeepAlives()
Copyright © 2018. All rights reserved.