Java IM
Good day.
I am looking at developing an IM(Instant Messengar) that makes use of a proxy server and connects to a clients Hardware address.
If any alternative, please let me know. I chose Hardware-, MAC-, Physical Address because I don't know how to connect to a specific IP that is within a different LAN.
I am connecting through a proxy to the internet. I want to connect to a PC in a different location that is using iBurst as their ISP. They make use of a DHCP server. I need to know how to connect to a PC on that network. Please advise...
[570 byte] By [
Raz0ra] at [2007-11-27 0:57:14]

# 1
You can't connect to anything using a MAC address. Think again.If the intervening network is set up so as to prevent you from making a connection, that's probably why they did it.
ejpa at 2007-7-11 23:30:42 >

# 2
You suck. I know it's possible.
Raz0ra at 2007-7-11 23:30:42 >

# 3
You suck yourself, and also you don't have either any manners or any logic. How exactly can you know something that you don't know?
If you really knew anything about networking, you would know that (i) there is no such thing as a 'connection' below the TCP level; (ii) no such thing as a MAC address above the IP level; and (iii) the IP level is below the TCP level. So your question is in fact entirely meaningless.
Don't be so bloody rude to people who are trying to help you.
ejpa at 2007-7-11 23:30:42 >

# 4
> You suck. I know it's possible.he doesn't suck. he knows more about this subject than you ever will. you suck for being a rude butthole. newbs like you piss me off. no help for you, ever. and this has nothing to do with reflection anyway
# 5
Yeah, I love these geniuses with 2 whole postings who know everything about everything, including how to win friends and influence people, not to mention the answers to their own questions, and which forum to post a networking question in too since you mentioned it. Choice of at least two, missed them both.
Funny how they're always the ones asking the questions though.
ejpa at 2007-7-11 23:30:42 >

# 6
I had one guy stalk me over the boards for days once, telling everyone to ignore me because I was a very negative guy who wanted to discourage newbies from learning anything. why? I told him there was no way to control the temperature of his CPU using java ("there surely is, and I'll find out how, whether you want me to or not"). odd behaviour, as you say, from people who are asking total strangers for free help
# 7
Ok, sorry.
The thing is: I studied this **** last year, but not that hard. I basically assumed that it's possible. Im sorry. I dont know Java that well, Good enough to do what I want, but not everything. I work with a different language, and am doing Java on the side atm.
Thanks for the support.
And the IM, im getting there using a centralised server, but now want to know how to stop or kill a thread. A lot of the functions has been Deprecated, so it's a bit more difficult. Please help.
Raz0ra at 2007-7-11 23:30:42 >

# 8
you don't know how to stop a thread? you suck. I know it's possible
# 9
Thank you, The only difference is... It doesn't bother me at all. That's why I am asking for help.But I was told not to use threads for this, because you will overload your server. Any other ideas?
Raz0ra at 2007-7-11 23:30:42 >

# 10
> Thank you, The only difference is... It doesn't
> bother me at all. That's why I am asking for help.
It doesn't bother you that you are unable to read documentation or use a search engine?
> But I was told not to use threads for this, because
> you will overload your server. Any other ideas?
Use threads anyway. Whoever told you that doesn't seem to know what threads are
# 11
georgemc, you suck. I know threads can overload a server. And I'll prove it...:-}
# 12
EJP wrote the book on networking in Java. Really not the right person to annoy in this context.
> And the IM, im getting there using a centralised
> server, but now want to know how to stop or kill a
> thread. A lot of the functions has been Deprecated,
> so it's a bit more difficult. Please help.
Read the API documents for the deprecated methods. The gist of which is: don't do that. They explain why and what the alternatives are.
(edit) By the way, I'm not having a go, but what made you choose "Reflections & Reference Objects" to post your original query? I'm genuinely curious.
# 13
> georgemc, you suck. I know threads can overload a> server. And I'll prove it...> > :-}Heh heh
# 14
About the Question why I posted in this forum, well, I wasn't aware of where I am only until afterwards. If it is possible to move this to another forum, please let me know how. Thanks.
About the dude that told me not to use threads, he has his own server, and is pretty up to date with linux as well, he is a great programmer in many languages, that's why he told me not to use threads.
Raz0ra at 2007-7-11 23:30:42 >

# 15
> About the Question why I posted in this forum, well,
> I wasn't aware of where I am only until afterwards.
> If it is possible to move this to another forum,
> please let me know how. Thanks.
It's not possible
> About the dude that told me not to use threads, he
> has his own server, and is pretty up to date with
> linux as well, he is a great programmer in many
> languages, that's why he told me not to use threads.
Wow, he has his own server? Big deal. That's about as irrelevant a statement as you could get in this context. He can't be that great a programmer in any language if he thinks threads should be avoided because they'll overload a server. Of course they can overload a server, as could any other resource if used in enough anger. That's certainly no reason not to use them. Sockets can also overload your server, are you going to avoid them, too? Tell your kung foo friend to stop giving you bogus advice, and learn to question anything he tells you because it sounds like you blindly believe whatever he tells you and eventually he'll tell you something even more dodgy than his latest pearl. If his server's getting overloaded by a few threads, it isn't much of a server
# 16
I never follow someones words exactly. I try to get my own way of doing things, because then no one can claim against my work.
Ok, so would you say I should stay with threads, cause at the moment, they work. I managed to figure out how to stop a thread, but there is something else that's a problem. I think I don't understand the concept of threads that well.
If possible, could someone please explain to me the what and why and how to track threads? That's the problem I have now. I want to stop a thread, but not all, only one specific one. Any help?
Raz0ra at 2007-7-21 19:57:01 >

# 17
If you read the API documents for the deprecated methods you will see links to an explanation of (a) why they're deprecated and (b) what you should do instead of using those methods. I think you should read that because it explains the issues and solutions more carefully than I can - plus you should know about the API docs if you don't already. Ask if you need to know where they are.
How come you were in the "Reflections and Reference Objects" category without knowing it? Did you get here via a web search?
On the matter of whether to use threads - yes, there is some slight merit in your friends assertions; for very large numbers of users threads can be an inappropriate solution. However this comes into the category of "premature optimisation". Until such time as you know you'll have that many users you should go for the cleanest architectural solution you can manage, and in this case that means threads.
Incidentally, the fact that your friend knows oodles of languages suggests that his understanding of them individually is probably quite shallow. "Jack of all trades, master of none." So you need to take what he says about any particular one with a pinch of salt.
Dave (who owns his own servers).
# 18
> I never follow someones words exactly. I try to get
> my own way of doing things, because then no one can
> claim against my work.
A poor approach if you ask me. It relies on the assumption that you are perfect and infallible, which by dint of being human, you patently aren't. Why waste time coming up with a novel solution to a problem someone else has already solved? Claim against your work? You mean legally? Not sure where you're going with that one!
> Ok, so would you say I should stay with threads,
> cause at the moment, they work. I managed to figure
> out how to stop a thread, but there is something else
> that's a problem. I think I don't understand the
> concept of threads that well.
Time to read about threads, then. I wouldn't rely on any one person's explaination in a forum, or even a multitude of explainations in a forum, I'd get hold of a reliable source like a book or a tutorial from somewhere reliable, like sun.com.
> If possible, could someone please explain to me the
> what and why and how to track threads? That's the
> problem I have now. I want to stop a thread, but not
> all, only one specific one. Any help?
Any attempt to explain it will be half-baked at first attempt. You'll be back-and-forth for ages, and still miss bits out. Get a book on the subject. I use [url=http://www.amazon.co.uk/Java-Thread-Programming-Paul-Hyde/dp/0672315858/ref=sr_1_6/203-1708115-9526359?ie=UTF8&s=books&qid=1179407964&sr=8-6]this one[/url], but there are better about. I believe [url=http://www.amazon.co.uk/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601/ref=pd_bbs_sr_2/203-1708115-9526359?ie=UTF8&s=books&qid=1179407964&sr=8-2]this[/url] is considered Teh Best there is. Or even your trusty all-purpose "learn java" tome will probably have at least a threads primer in it. Start there
rgds
George (<-- constantly nagged by girlfriend about number of servers in spare room)
# 19
You guys rock. Uhm, thanx. I like what I read, and when I say that, I refer to your sarcasm.I know about the API, but I was hoping for an easy explanation. I'm not the most clever egg in the box when it comes to reading and understanding what I'm reading.Thanx.
Raz0ra at 2007-7-21 19:57:02 >

# 20
> You guys rock. Uhm, thanx. I like what I read, and
> when I say that, I refer to your sarcasm.
>
> I know about the API, but I was hoping for an easy
> explanation. I'm not the most clever egg in the box
> when it comes to reading and understanding what I'm
> reading.
Then you're bang in trouble, developer-wise. Seriously, you'll just have to learn how to read - I mean, read and interpret technical docs, I'm not implying you're illiterate! You won't get too far relying on hearsay, and plain-english explainations of how things work - it's just not feasible. I could give you a nice anecdotal, cutesy way of thinking about Threads in terms of, say, worker ants, but the JVM isn't going to throw an AntKnackeredException, so as soon as things go wrong, you'll be lost again. You're in a technical arena, that's still far from being finalized, you have no real choice but to get to grips with reading material. Besides, which would you rather when things go wrong
1) Ask someone for help, sit and wait for their reply and then get them to explain it in simpler terms, which could take hours or even days
2) Quickly google an error message and know what it means within a couple of minutes
?
Technical docs aren't as gobbledegook as they first appear, and they get less so the more you read them. Trust me
# 21
Don't get me wrong. It's not that I completely cannot interpret tech docs.
Anyway. I agree. To seach google for an error message is much faster. That's the way I have been doing things, but the problem is, that I usually end up at a dead end when looking for something. Anyway. Thanx for all the help. I will let you know of any further progress.
Raz0ra at 2007-7-21 19:57:02 >
