bump
[edit] mporei kapoios na me boh8hseis na ftiaksw ayto edw?
to ekana copy apo ton login kai to perasa sto arxeio l2gameclient.java sta network
pisteyo oti ama perasw ayto 8a ftiaxtei to prob p exw....
public void setState(GameClientState pState)
{
state = pState;
}
public long getConnectionStartTime()
{
return _connectionStartTime;
}
@Override
public boolean decrypt(ByteBuffer buf, int size)
{
boolean reta = false;
try
{
reta = crypt.decrypt(buf.array(), buf.position(), size);
}
catch (IOException e)
{
e.printStackTrace();
closeNow();
return false;
}
if (!reta)
{
byte[] dump = new byte;
System.arraycopy(buf.array(), buf.position(), dump, 0, size);
_log.warning("Wrong checksum from client: "+toString());
closeNow();
}
return reta;
}