By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Socket on GPRS

P: n/a
Hi group'rs!

Hi downloaded the KKMultiServer-example from Sun for a multi-user
The good thing is, I managed to flip out the protocol and got the
server working.
The bad thing is dat my GPRS-client gets a **NO CARRIER** after each
reply. So it seems the server closes the connection.

W h y ????
Any help is appreciated much!
Here's some code from the example thread-class:

public void run()
PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
BufferedReader in = new BufferedReader(new

String inputLine, outputLine;
KnockKnockProtocol kkp = new KnockKnockProtocol();
outputLine = kkp.processInput(null);

while ((inputLine = in.readLine()) != null)
outputLine = kkp.processInput(inputLine);
if (outputLine.equals("Bye")) break;

catch (IOException e)
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.