// send client message
int size = Constants.INT_FLT_SIZE;
msg = alias + ": " + msg;
size += msg.length();
ByteBuffer b = ByteBuffer.allocate(size);
synchronized(b) {
b.putInt(Constants.MSG_CHAT);
b.putInt(4);
b.put(msg.getBytes());
b.rewind();
}
How can I get the msg part (string) out of this buffer?
int msgType = b.getInt();
int channel = b.getInt();
String msg = ?????
thanks!

