Hi
Im developing a J2ME Chat client and im using MIDP 1.0. I know that Socket connections are not implemented in MIDP 1.0 specifications. Of course if somebody try to compile a code with Socket object, it doesnt compile.
Well for that reason im trying to use a Connector(url) and a StreamConnection. Something like this:
try {
String url = "socket://" + "200.74.214.103" + ":" + "6660";
StreamConnection s = (StreamConnection)
Connector.open(url);
Client( s); //manage messages in s
}
catch (IOException ioe) {
exception(ioe);
}
For me is another way to connect a chat server. I test the program in a different emulators (J2ME wireless toolkit, nokia emulator 60 series, palm emulator, motorola emulator) and it works. But if i run the program in a handset for example Nokia 3650 for GPRS, GTRAN phone, it doesnt work. Now i dont now if the problem is with the code or the implementation of gateways (celular network).
Somebody can tell me if there is something wrong? I can use that in MIDP 1.0? Is there another way to do that, some suggestions?
Thanks a lot.

Reply With Quote
ort" 

