hi,
i need send byte[] with mina.
please give me demo?
int blen = gkbPkg.createLoginRespPackage(1).length;
System.out.println("------------------------> len:" + blen );
ByteBuffer buf = ByteBuffer.allocate( blen ) ;
if(buf!=null){
System.out.println("send...");
//buf.clear();
//bb.get(gkbPkg.createLoginRespPackage(1));
buf.put( gkbPkg.createLoginRespPackage(1) );
//buf.put((byte) '.');
//buf.flip();
//session.write(bb.duplicate());
session.write(buf);
//buf.clear();
}
Exception
- hi,how to send byte[] use mina? playboyleekelin
- Re: hi,how to send byte[] use mina? Viktor Balázs
