Minor changes
This commit is contained in:
@@ -152,7 +152,7 @@ public class ConnectDecoderTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encode and insert the given stirng into the given buff
|
* Encode and insert the given string into the given buff
|
||||||
*/
|
*/
|
||||||
private IoBuffer encodeString(IoBuffer buff, String str) throws UnsupportedEncodingException {
|
private IoBuffer encodeString(IoBuffer buff, String str) throws UnsupportedEncodingException {
|
||||||
buff.put(Utils.encodeString(str));
|
buff.put(Utils.encodeString(str));
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public class TestUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify that the given bytes buffer og the given numBytes length is present
|
* Verify that the given bytes buffer of the given numBytes length is present
|
||||||
* in the buff starting from the current position.
|
* in the buff starting from the current position.
|
||||||
*/
|
*/
|
||||||
static void verifyBuff(int numBytes, byte[] bytes, IoBuffer buff) {
|
static void verifyBuff(int numBytes, byte[] bytes, IoBuffer buff) {
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ public class ConnectMessage extends AbstractMessage {
|
|||||||
String m_willtopic;
|
String m_willtopic;
|
||||||
String m_willMessage;
|
String m_willMessage;
|
||||||
|
|
||||||
|
public ConnectMessage() {
|
||||||
|
m_messageType = AbstractMessage.CONNECT;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isCleanSession() {
|
public boolean isCleanSession() {
|
||||||
return m_cleanSession;
|
return m_cleanSession;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user