Hey there
I mean simple polling, Thanks for the Posix idea ... but this project should run on client [Windows/*nix/OSX, whatever] side with zero configuration and no special software requirements. I read some stuff about eventhandlers, listeners wait and notify, with this i can maybe check the ArrayBlockingQueue [inQueue] but whats about the incoming iostream from the Socket?
or,
Another thing i'd love to know is why i cannot set a default key for BlowFish and AES encryption higher then 128bit ?
Java generates the key, but unless its wimpy 128bit it would throw an exception because of illegal key length. I hope i didn't get an export version of JCE, even though i'm pretty sure i use bouncy castle :-D. The RSA port on the other hand works pretty well, even with keylength up to 4092b [ but then it takes the server quite a time to initialize every incoming client ]
and because its an gp32 board, a pandora related question:
There will be full blown jre for pandora, will there?
And now, for all the coders a page i really enjoy: Unmaintainable Code
Have a good day,
lastaid
I mean simple polling, Thanks for the Posix idea ... but this project should run on client [Windows/*nix/OSX, whatever] side with zero configuration and no special software requirements. I read some stuff about eventhandlers, listeners wait and notify, with this i can maybe check the ArrayBlockingQueue [inQueue] but whats about the incoming iostream from the Socket?
Code:
while(inQueue.peek()!=null) {
System.out.println("Writing: " + Utils.toHex(inQueue.peek()));
out.write(inQueue.poll());
out.flush();
}
Code:
in = mySocket.getInputStream();
while(in.available>0) {
doSomeStuff();
}
Another thing i'd love to know is why i cannot set a default key for BlowFish and AES encryption higher then 128bit ?
Java generates the key, but unless its wimpy 128bit it would throw an exception because of illegal key length. I hope i didn't get an export version of JCE, even though i'm pretty sure i use bouncy castle :-D. The RSA port on the other hand works pretty well, even with keylength up to 4092b [ but then it takes the server quite a time to initialize every incoming client ]
and because its an gp32 board, a pandora related question:
There will be full blown jre for pandora, will there?
And now, for all the coders a page i really enjoy: Unmaintainable Code
Have a good day,
lastaid