Help needed (need sounding board) - android/java programming
13 years ago
General
TL;DR I need someone familiar with java to ask questions about networking in java.
I've not touched network programming in java before. Almost every guide or help on it I've seen is based on getting website information using Android's own methods, or anchient. I'm writing a decentralized network app in which chat data, user data, and gps info is transmitted and received. What I'm looking for is someone familiar with this topic to talk to and perhaps hammer out errors in my thinking because I seem to be making very little progress.
I've not touched network programming in java before. Almost every guide or help on it I've seen is based on getting website information using Android's own methods, or anchient. I'm writing a decentralized network app in which chat data, user data, and gps info is transmitted and received. What I'm looking for is someone familiar with this topic to talk to and perhaps hammer out errors in my thinking because I seem to be making very little progress.
Cougar1823
~cougar1823
I know programming in general, and I know Java. Unfortunately I don't know networking programming.
*nods* I think I figured most of it out.. Just I don't like how it's gonna work which means either what I'm doing is inefficient or there's a better way. I'm opening a socket to every phone and each runs a socketserver listening for connection. but that means i need to open and close sockets constantly to send data to all phones. I don't like that.
Cougar1823
~cougar1823
Yes, something about that arrangement doesn't sound very efficient to me. I'm guessing the sockets should only opened and closed when the clients connect or disconnect, respectively. But as I have said I'm not up on my networking protocols, so what you're doing may be correct, just ugly.
FA+