com.witjit.game.server.communication.bbmessage.MessageOutHandler.java Source code

Java tutorial

Introduction

Here is the source code for com.witjit.game.server.communication.bbmessage.MessageOutHandler.java

Source

/*
 * Here comes the text of your license
 * Each line should be prefixed with  * 
 */
package com.witjit.game.server.communication.bbmessage;

import com.witjit.game.server.communication.netty.handler.AbstractMessageOutHandler;
import io.netty.buffer.ByteBuf;

/**
 *
 * @author Administrator
 */
public class MessageOutHandler extends AbstractMessageOutHandler<ByteBuf> {

    @Override
    protected void writeEndpointId(ByteBuf mb, long endpointId) {
        mb.writeLong(endpointId);
    }

    @Override
    protected void writeMessage(ByteBuf mb, ByteBuf content) {
        mb.writeBytes(content);
    }

}