Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-11-04 09:46:23 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3fbdd050ae272b8666141cb3565858b979f6804
f3fbdd05
1 parent
885089b1
findbugs
Change-Id: I040eee94d2eb2622b32fbe8dbf06d81b54765065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
utils/netty/src/main/java/org/onlab/netty/MessageEncoder.java
utils/netty/src/main/java/org/onlab/netty/MessageEncoder.java
View file @
f3fbdd0
...
...
@@ -15,6 +15,8 @@
*/
package
org
.
onlab
.
netty
;
import
java.nio.charset.StandardCharsets
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -32,7 +34,7 @@ public class MessageEncoder extends MessageToByteEncoder<InternalMessage> {
private
final
Logger
log
=
LoggerFactory
.
getLogger
(
getClass
());
// onosiscool in ascii
public
static
final
byte
[]
PREAMBLE
=
"onosiscool"
.
getBytes
(
);
static
final
byte
[]
PREAMBLE
=
"onosiscool"
.
getBytes
(
StandardCharsets
.
US_ASCII
);
public
static
final
int
HEADER_VERSION
=
1
;
public
static
final
int
SERIALIZER_VERSION
=
1
;
...
...
Please
register
or
login
to post a comment