Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16781
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail |
|---|---|
| From | "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-dpk-this> |
| Subject | LAN strategy (Android) |
| Message-ID | <50181D63.55749.calajapr@time.synchro.net> (permalink) |
| X-Comment-To | All |
| Newsgroups | comp.lang.java.programmer |
| X-FTN-AREA | COMP.LANG.JAVA.PROGRAMMER |
| X-FTN-MSGID | 1:261/38 b7bbf65c |
| Content-Type | text/plain; charset=IBM437 |
| Content-Transfer-Encoding | 8bit |
| X-Gateway | time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] |
| Lines | 26 |
| Date | Tue, 31 Jul 2012 18:02:36 GMT |
| NNTP-Posting-Host | 69.21.70.65 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1343757756 69.21.70.65 (Tue, 31 Jul 2012 13:02:36 CDT) |
| NNTP-Posting-Date | Tue, 31 Jul 2012 13:02:36 CDT |
| Organization | tds.net |
| Xref | csiph.com comp.lang.java.programmer:16781 |
Show key headers only | View raw
From: Dirk Bruere at NeoPax <dirk.bruere@gmail.com> What's the best way to do this? I have to read from a LAN using UDP. I open a socket by doing a name lookup (the name of a PC I want to connect to) and port number as the app starts. In a thread I loop around reading the socket for messages and act on them. The problem is what do I do if I cannot access the LAN on startup and so miss getting the name/address? As far as I can see the app sits there doing nothing even if the LAN becomes available. Alternatively, do I put the name/address lookup in the thread loop, and if so, how? -- Dirk Full Spectrum Praxis : ZERO STATE : http://zerostate.net --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
LAN strategy (Android) "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000 Re: LAN strategy (Android) "Roedy Green" <roedy.green@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
csiph-web