The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

Commit 2f7ac3d9 authored by legoc's avatar legoc
Browse files

Added sendCrashMail method in SessionManager

parent e0014553
......@@ -309,8 +309,7 @@ public class SessionManager {
System.err.println("error in parsing response of sendChatMessage");
}
}
public synchronized int getServerPlotyVersion() {
// Create the message type.
......@@ -330,6 +329,28 @@ public class SessionManager {
return version;
}
public synchronized void sendCrashMail(String content) {
// Create the message type.
SessionRequests.Message type = SessionRequests.Message.newBuilder()
.setType(SessionRequests.Message.Type.CrashMail)
.build();
// Create the request.
SessionRequests.CrashMailRequest request = SessionRequests.CrashMailRequest.newBuilder()
.setContent(content)
.build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
try {
Common.BooleanResponse.parseFrom(sessionRequester.receive());
}
catch (InvalidProtocolBufferException e) {
System.err.println("error in parsing response of sendChatMessage");
}
}
public boolean isOk() {
return allOk;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment