public class MgcpProvider extends Object
| Constructor and Description |
|---|
MgcpProvider(UdpManager transport,
int port)
Creates new provider instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(MgcpListener listener)
Registers new even listener.
|
MgcpEvent |
createEvent(int eventID,
SocketAddress address)
Creates new event object.
|
void |
removeListener(MgcpListener listener)
Unregisters event listener.
|
void |
send(MgcpEvent event)
Sends message.
|
void |
shutdown() |
public MgcpProvider(UdpManager transport, int port)
transport - the UDP interface instance.port - port number to bindpublic MgcpEvent createEvent(int eventID, SocketAddress address)
eventID - the event identifier: REQUEST or RESPONSEpublic void send(MgcpEvent event) throws IOException
message - the message to send.IOExceptionpublic void addListener(MgcpListener listener) throws TooManyListenersException
listener - the listener instance to be registered.TooManyListenersExceptionpublic void removeListener(MgcpListener listener)
listener - the event listener instance to be unregistered.public void activate()
public void shutdown()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.