Skip to content

Commit

Permalink
clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasb committed Jan 5, 2012
1 parent 8d08145 commit c7f3d54
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/se/forskningsavd/Communicator.java
Expand Up @@ -96,6 +96,7 @@ public void run() {


while (mRunning) {
//TODO reuse buffer/modify the data
ByteBuffer buffer = ByteBuffer.allocate(1024);
buffer.put("CTRL".getBytes());
buffer.put(mTrustServer);
Expand All @@ -106,12 +107,9 @@ public void run() {
buffer.putInt(0); //dy
buffer.put((byte) 0); //kb

// TODO why are these needed???!!1
buffer.put((byte) 0);
buffer.put((byte) 0);
buffer.put((byte) 0);
buffer.put((byte) 0);
//padding bytes
buffer.put((byte) 0);
buffer.putInt(0);

synchronized (mTrustMessages) {
if (mTrustTimeout == 0) {
Expand Down

0 comments on commit c7f3d54

Please sign in to comment.