Protocol implementation, Netty socket server, J2ME client
Karasko
karas at uralweb.ru
Wed Apr 8 08:09:43 EDT 2009
Hi, everyone.
I am writing a sokcet server, using Netty, which would be serve a requests from
J2ME devices (MIDP 2.0, CLDC). I am new person for networking, and concurrent programming,
so any advice or critics is accepted.
Typical request is to retrieve some data from SQL server, based on text query.
Response could be a text of various lenght, or sometimes binary data (i.e. PNG image).
Can you advise some prototype of simple protocol for this, which i can
easily implement on client side J2ME device with standart packages:
java.io.*;
javax.microedition.io;
I need protocol to be
1) extensible (adding new functionality doesn't require to rewrite code everywhere)
2) compact (less traffic is better)
3) secure (i don't know how to implement it yet, some advices will be nice)
I also want to know how to send an PNG image (or whatever binary data) over socket connection from server..
I think "new line" frame delimiter should be changed for smth else ?
--
View this message in context: http://n2.nabble.com/Protocol-implementation%2C-Netty-socket-server%2C-J2ME-client-tp2604867p2604867.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list