@Override
public void push(ApnsNotification message) {
byte[] msg = message.marshall();
IoBuffer buf = IoBuffer.allocate(msg.length);
System.arraycopy(msg, 0, buf.array(), 0, msg.length);
cf.getSession().write(buf);
}
public void start() {
cf = connector.connect(new InetSocketAddress(host, port));