It's not a secret anymore!*
The moose likes Java Micro Edition and the fly likes SOCKET CONNECTION Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "SOCKET CONNECTION" Watch "SOCKET CONNECTION" New topic
Author

SOCKET CONNECTION

Gabriel Collet
Greenhorn

Joined: Feb 15, 2005
Posts: 7
Hi, I have an application where two terminals connect with a socket connection. I've done it pretty much by looking at the Network Demo on the Wireless Toolkit. However, now I need to add a new terminal (two terminals connected to a server). I have no Idea how to do it. Any tips?.

Thanks

By the way. Thanks for your previous answers to all my other questions.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"Gabriel"-

We need both your real first and last name. This is more than the third warning. Along with warning about using ALL CAPS TO YELL!.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Well do you have the server up and running and listening for connections? That is really the main point. The example that you have already done is like one device connecting to the Server.

Here's a quick explanation of how Servers are written in Java. The Thread class can be created as a Thread type of "Daemon". What this means is that the Thread is opened and it stays open listening for "calls". When it reaceives a call it usually spawns off a seperate Thread to handle the call.

I hope that helps.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOCKET CONNECTION
 
Similar Threads
Network Client
MVC Web - Architecture
Part II - Question on legacy system
Tomcat collect data at a same time?
Socket connection