Skip to content

Instantly share code, notes, and snippets.

@ashutoshmeher-r3
Created February 21, 2021 18:05
Show Gist options
  • Save ashutoshmeher-r3/d9825d263ca55c0dec33e0950b0f0f89 to your computer and use it in GitHub Desktop.
Save ashutoshmeher-r3/d9825d263ca55c0dec33e0950b0f0f89 to your computer and use it in GitHub Desktop.
private void recieveMailFromClientAndDeliverToEnclave(Socket clientSocket, String routingHint){
try {
DataInputStream input = new DataInputStream(clientSocket.getInputStream());
byte[] mailBytes = new byte[input.readInt()];
input.readFully(mailBytes);
enclaveHost.deliverMail(1, mailBytes, routingHint);
}catch (IOException ioException){
ioException.printStackTrace();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment