Created
February 21, 2021 18:05
-
-
Save ashutoshmeher-r3/d9825d263ca55c0dec33e0950b0f0f89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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