public final class Communication
extends java.lang.Object
Constructor and Description |
---|
Communication() |
Modifier and Type | Method and Description |
---|---|
static void |
sendResponse(int code,
java.lang.String response,
java.lang.String serverName,
java.io.DataOutputStream messageToClient)
sendResponse: send a response, in reply to a request.
|
public static void sendResponse(int code, java.lang.String response, java.lang.String serverName, java.io.DataOutputStream messageToClient)
code
- Code of the response.response
- String with the response.serverName
- String with the name of the server.messageToClient
- Stream with the client.