public class OperaLauncherProtocol extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OperaLauncherProtocol.MessageType |
class |
OperaLauncherProtocol.ResponseEncapsulation |
| Constructor and Description |
|---|
OperaLauncherProtocol(Socket client) |
| Modifier and Type | Method and Description |
|---|---|
OperaLauncherProtocol.ResponseEncapsulation |
sendRequest(OperaLauncherProtocol.MessageType type,
byte[] body)
Send a request and receive a result.
|
void |
sendRequestWithoutResponse(OperaLauncherProtocol.MessageType type,
byte[] body)
Send a request without a response.
|
void |
shutdown()
Shuts down the connection to the launcher.
|
public OperaLauncherProtocol(Socket client) throws IOException
IOExceptionpublic void shutdown()
throws IOException
IOException - if the socket is already closedpublic OperaLauncherProtocol.ResponseEncapsulation sendRequest(OperaLauncherProtocol.MessageType type, byte[] body) throws IOException
type - the request type to be sentbody - the serialized request payloadIOException - if socket read error or protocol parse errorpublic void sendRequestWithoutResponse(OperaLauncherProtocol.MessageType type, byte[] body) throws IOException
type - the request type to be sentbody - the serialized request payloadIOException - if socket read error or protocol parse errorCopyright © 2012. All Rights Reserved.