Examples of writeData()


Examples of ca.vanzeben.game.net.packets.Packet00Login.writeData()

        if (!isApplet) {
            Packet00Login loginPacket = new Packet00Login(player.getUsername(), player.x, player.y);
            if (socketServer != null) {
                socketServer.addConnection((PlayerMP) player, loginPacket);
            }
            loginPacket.writeData(socketClient);
        }
    }

    public synchronized void start() {
        running = true;
View Full Code Here

Examples of ca.vanzeben.game.net.packets.Packet01Disconnect.writeData()

    }

    @Override
    public void windowClosing(WindowEvent event) {
        Packet01Disconnect packet = new Packet01Disconnect(this.game.player.getUsername());
        packet.writeData(this.game.socketClient);
    }

    @Override
    public void windowDeactivated(WindowEvent event) {
    }
View Full Code Here

Examples of ca.vanzeben.game.net.packets.Packet02Move.writeData()

            move(xa, ya);
            isMoving = true;

            Packet02Move packet = new Packet02Move(this.getUsername(), this.x, this.y, this.numSteps, this.isMoving,
                    this.movingDir);
            packet.writeData(Game.game.socketClient);
        } else {
            isMoving = false;
        }
        if (level.getTile(this.x >> 3, this.y >> 3).getId() == 3) {
            isSwimming = true;
View Full Code Here

Examples of com.adito.security.pki.SimpleASNWriter.writeData()

                r.write(signature, 0, 20);
            } else {
                r.write(signature, 0, 20);
            }

            asn.writeData(r.toByteArray());
            asn.writeByte(0x02);

            if (((signature[20] & 0x80) == 0x80) && (signature[20] != 0x00)) {
                s.write(0);
                s.write(signature, 20, 20);
View Full Code Here

Examples of com.adito.security.pki.SimpleASNWriter.writeData()

                s.write(signature, 20, 20);
            } else {
                s.write(signature, 20, 20);
            }

            asn.writeData(s.toByteArray());

            SimpleASNWriter asnEncoded = new SimpleASNWriter();
            asnEncoded.writeByte(0x30);
            asnEncoded.writeData(asn.toByteArray());
View Full Code Here

Examples of com.adito.security.pki.SimpleASNWriter.writeData()

            asn.writeData(s.toByteArray());

            SimpleASNWriter asnEncoded = new SimpleASNWriter();
            asnEncoded.writeByte(0x30);
            asnEncoded.writeData(asn.toByteArray());

            byte[] encoded = asnEncoded.toByteArray();

            if (log.isDebugEnabled()) {
                log.debug("Verifying host key signature");
View Full Code Here

Examples of com.atomikos.icatch.DataSerializable.writeData()

        output_ = file_.openNewVersionForWriting();
        final DataByteArrayOutputStream dataByteArrayOutputStream = new DataByteArrayOutputStream();
        while (elements != null && elements.hasMoreElements()) {
          DataSerializable next = (DataSerializable) elements.nextElement();
          dataByteArrayOutputStream.restart();
          next.writeData(dataByteArrayOutputStream);
          output_.write(dataByteArrayOutputStream.getContent());
        }

        output_.getFD().sync();
        // NOTE: we do NOT close the object output, since the client
View Full Code Here

Examples of com.avaje.ebeaninternal.server.deploy.id.IdBinder.writeData()

                os.writeInt(iudType);
                os.writeInt(count);

                for (; i < endOfLoop; i++) {
                    Serializable idValue = idList.get(i);
                    idBinder.writeData(os, idValue);
                }

                os.flush();
                msgList.add(m);
View Full Code Here

Examples of com.avaje.ebeaninternal.server.deploy.id.IdBinder.writeData()

                os.writeUTF(path);
                os.writeInt(count);

                for (; i < endOfLoop; i++) {
                    Serializable idValue = ids.get(i);
                    idBinder.writeData(os, idValue);
                }

                os.flush();
                msgList.add(m);
View Full Code Here

Examples of com.hazelcast.concurrent.semaphore.Permit.writeData()

        out.writeInt(migrationData.size());
        for (Map.Entry<String, Permit> entry : migrationData.entrySet()) {
            String key = entry.getKey();
            Permit value = entry.getValue();
            out.writeUTF(key);
            value.writeData(out);
        }
    }

    @Override
    protected void readInternal(ObjectDataInput in) throws IOException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.