Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16042
| From | Lucyann Lenon Emerick De Assis <lucyann.lenon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: serversocket |
| Date | 2012-07-16 04:49 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <c64ee38e-33db-4da9-a911-6c601fe24fdd@googlegroups.com> (permalink) |
| References | <15b1bc5d-160d-4048-8ad7-2cff9cf862e0@googlegroups.com> <76cf48db-123d-4888-ac60-4b80ccfdeea4@googlegroups.com> <jtsmrv$djo$1@news.albasani.net> <jtsnaj$efi$1@news.albasani.net> |
Well, first I thank you for the answer, and guidelines apply to my learning!
the customer is a good model tk 102 gps, if not I engando communicates via tcp.
What struck me is that the same code works on a smartphone, I used the tracker to emulate mylive sending data tk 102
Em sábado, 14 de julho de 2012 18h12min22s UTC-3, Lew escreveu:
> Lew wrote:
> ... [snip] ...
> > /* Track
> > * $RCSfile$
> > */
> > package eegee;
>
> ...
>
> > public class Track
> > {
>
> ...
>
> > private static void serveConnections(ServerSocket serverSocket)
> > {
> > while (true)
> > {
> > final Socket connectionSocket;
> > try
> > {
> > connectionSocket = serverSocket.accept();
> > }
> > catch (IOException exc)
> > {
> > logger.error(BAD_CONNECT, exc);
> > return;
> > }
> > assert connectionSocket != null;
> >
> > try
> > {
> > handleClient(connectionSocket);
> > }
> > finally
> > {
> > close(connectionSocket);
> > }
> > }
> > }
> ...
>
> I made a mistake in the 'serveConnections()' method, arguably. Or maybe it
> isn't a mistake.
>
> What do you think; is it a mistake or not?
>
> --
> Lew
> Honi soit qui mal y pense.
> http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
serversocket Lucyann Lenon Emerick De Assis <lucyann.lenon@gmail.com> - 2012-07-14 05:41 -0700
Re: serversocket Joerg Meier <joergmmeier@arcor.de> - 2012-07-14 16:40 +0200
Re: serversocket Lew <noone@lewscanon.com> - 2012-07-14 13:04 -0700
Re: serversocket Joerg Meier <joergmmeier@arcor.de> - 2012-07-15 00:42 +0200
Re: serversocket Lucyann Lenon Emerick De Assis <lucyann.lenon@gmail.com> - 2012-07-14 07:56 -0700
Re: serversocket Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2012-07-14 10:23 -0700
Re: serversocket Martin Gregorie <martin@address-in-sig.invalid> - 2012-07-15 00:29 +0000
Re: serversocket Lew <noone@lewscanon.com> - 2012-07-14 14:04 -0700
Re: serversocket Lew <noone@lewscanon.com> - 2012-07-14 14:12 -0700
Re: serversocket Lucyann Lenon Emerick De Assis <lucyann.lenon@gmail.com> - 2012-07-16 04:49 -0700
Re: serversocket Lucyann Lenon Emerick De Assis <lucyann.lenon@gmail.com> - 2012-07-16 04:54 -0700
Re: serversocket Lew <lewbloch@gmail.com> - 2012-07-16 13:59 -0700
csiph-web