diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-09 09:35:25 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-09 09:35:25 +1200 |
commit | 4d88fa05bb1b673d676ff92b0b2b53bfba19cece (patch) | |
tree | 8b1241bbddfa6d17691e8318296e26f72e20a982 /src/org/traccar/protocol/T800xProtocolEncoder.java | |
parent | 46274ffddf31d0f09a7c370b2e374f53f6ecc2b6 (diff) | |
download | trackermap-server-4d88fa05bb1b673d676ff92b0b2b53bfba19cece.tar.gz trackermap-server-4d88fa05bb1b673d676ff92b0b2b53bfba19cece.tar.bz2 trackermap-server-4d88fa05bb1b673d676ff92b0b2b53bfba19cece.zip |
Migrate remaining protocols
Diffstat (limited to 'src/org/traccar/protocol/T800xProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/T800xProtocolEncoder.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/T800xProtocolEncoder.java b/src/org/traccar/protocol/T800xProtocolEncoder.java index 038a5e51a..ba17c9d75 100644 --- a/src/org/traccar/protocol/T800xProtocolEncoder.java +++ b/src/org/traccar/protocol/T800xProtocolEncoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 Anton Tananaev (anton@traccar.org) + * Copyright 2016 - 2018 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,8 @@ */ package org.traccar.protocol; -import org.jboss.netty.buffer.ChannelBuffer; -import org.jboss.netty.buffer.ChannelBuffers; +import io.netty.buffer.ByteBuf; +import io.netty.buffer.Unpooled; import org.traccar.BaseProtocolEncoder; import org.traccar.helper.DataConverter; import org.traccar.helper.Log; @@ -30,9 +30,9 @@ public class T800xProtocolEncoder extends BaseProtocolEncoder { public static final int MODE_BROADCAST = 0x02; public static final int MODE_FORWARD = 0x03; - private ChannelBuffer encodeContent(Command command, String content) { + private ByteBuf encodeContent(Command command, String content) { - ChannelBuffer buf = ChannelBuffers.dynamicBuffer(); + ByteBuf buf = Unpooled.buffer(); buf.writeByte('#'); buf.writeByte('#'); |