Package com.bytedesk.call.mrcp4j.client
Class MrcpSocket
java.lang.Object
com.bytedesk.call.mrcp4j.client.MrcpSocket
Provides an endpoint for communication between the MRCPv2 client and the MRCPv2 server (for internal library use only).
This class is intended for internal use by the MRCP4J implementation code. Please see
MrcpProvider.createChannel(java.lang.String, java.net.InetAddress, int, java.lang.String)
for constructing an MrcpChannel that can be used to send control messages to the media
resource on the MRCP server.
- Author:
- Niels Godfredsen <ngodfredsen@users.sourceforge.net>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Map<ChannelIdentifier,MrcpMessageHandler> (package private) BufferedReaderprivate PrintWriterprivate MrcpRequestEncoderprivate Socket -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessageHandler(ChannelIdentifier channelID, MrcpMessageHandler handler) voidremoveMessageHandler(ChannelIdentifier channelID) voidsendRequest(MrcpRequest request)
-
Field Details
-
_requestEncoder
-
_handlers
Map<ChannelIdentifier,MrcpMessageHandler> _handlers -
_socket
-
_in
BufferedReader _in -
_out
-
-
Constructor Details
-
MrcpSocket
MrcpSocket(InetAddress host, int port) throws IOException - Throws:
IOException
-
-
Method Details
-
sendRequest
- Throws:
IOException
-
addMessageHandler
-
removeMessageHandler
-