Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(867)

Issue 339880043: adding SixEPwriter.java

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 5 months ago by dima.alissa
Modified:
6 years, 5 months ago
Reviewers:
safa.ismail.si, dkostic, mustafa.alabaychi, voravitt, robert.herjulf.olsson, armangungor, Alaiin
Visibility:
Public.

Description

adding SixEPwriter.java BUG=

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -0 lines) Patch
A IoT_internal/SixEpWriter.java View 1 chunk +112 lines, -0 lines 6 comments Download

Messages

Total messages: 2
dima.alissa
please review the the SixEPwriter that is representing the Encapsulation function before sending them to ...
6 years, 5 months ago (2017-11-22 08:43:55 UTC) #1
mustafa.alabaychi
6 years, 5 months ago (2017-11-22 09:28:26 UTC) #2
Thank you Dima. Good work!

https://codereview.appspot.com/339880043/diff/1/IoT_internal/SixEpWriter.java
File IoT_internal/SixEpWriter.java (right):

https://codereview.appspot.com/339880043/diff/1/IoT_internal/SixEpWriter.java...
IoT_internal/SixEpWriter.java:15: String sicsEPaddr="130.237.20.137";//6EP IP
address
possibly we can extract the IP address of the 6EP from the tunnel object that is
passed to this object to avoid repetition.

we use SixEpWriter as the name of the class. Possibly we can be more consistent
and name this variable as SixEpAddr?

https://codereview.appspot.com/339880043/diff/1/IoT_internal/SixEpWriter.java...
IoT_internal/SixEpWriter.java:16: InetAddress sepAddress;
possibly sixEpAddrress is a better name?

https://codereview.appspot.com/339880043/diff/1/IoT_internal/SixEpWriter.java...
IoT_internal/SixEpWriter.java:17: private int sepPort=666;
same with the name

https://codereview.appspot.com/339880043/diff/1/IoT_internal/SixEpWriter.java...
IoT_internal/SixEpWriter.java:77: this.outDataBuf.clear();
it is good to write the reason why we have this line. Preparing the buffer for
writing? right?

https://codereview.appspot.com/339880043/diff/1/IoT_internal/SixEpWriter.java...
IoT_internal/SixEpWriter.java:86: //this.sepAddress=dp.getAddress(); //for demo
purpose only
line not used. Maybe it is better to be deleted

https://codereview.appspot.com/339880043/diff/1/IoT_internal/SixEpWriter.java...
IoT_internal/SixEpWriter.java:96: this.outDataBuf.flip();
here we can add comment. Prepare for reading from the buffer.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b