Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2007, 02:39 PM
Member
 
Join Date: Dec 2007
Posts: 1
masadjie is on a distinguished road
Identify Client in Socket Client Server Application
Hi All, I am new in Java. So please help me to this thing.

I created client server application with socket. After the server running then I create several client and connecting to the server. the problem is how to identify which client among the others? For example if I need to transfer an image to a specific client which identity i have to used?

Can I used a socket thread to identify ?

I can not use IP Address of client because an IP (client machine) could run more than one client application.


Thanks in advance.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-20-2007, 10:18 AM
Member
 
Join Date: Dec 2007
Location: Roggwil, Switzerland
Posts: 8
daprodigy is on a distinguished road
hello

hmm, that's a hard one ...

if you have to run more than one client apps on the same physical machine, you have to provide a "manager" who knows which client has to receive the image. imagine to create a manager-class like a proxy-server. send the image-request to the manager, the manager itself deals with the server-application and passes the image back to the appropriate client-application.

from the network sight, all client-application have the same ip-address. so you have to do the rest on the client machine, i think.

hope i could help you ...

greets,
daprodigy
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Server)Socket application deploying mdinant Networking 0 04-09-2008 06:10 PM
Server socket - send image to client Hinty Networking 0 11-30-2007 09:15 PM
Socket Programming (Client) JavaForums Java Blogs 0 11-26-2007 05:00 PM
socket Multithreading - & - Obtaining the IP of a client! bluebarca Networking 1 11-16-2007 11:09 AM
Simple example Client Server Application ferosh Networking 1 04-01-2007 11:36 AM


All times are GMT +3. The time now is 12:56 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org