Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 03-02-2010
Member
 
Join Date: Dec 2009
Posts: 192
Detect users of a application

Hello,
I like MSN messenger but only on a LAN. I blocked a little about using ServerSocket what should I use ServerSocket instance by the program (each program running onthe network has its own ServerSocket, always on the same port, and still serverSocket.accept ()), and also an array or vector. Socket to be used to handle connections initialized from the local to the other posts? and also, how can I explore the network to detect all users who have an instance of my program launched Thanks in advance.

Last edited by Remedy : 03-02-2010 at 12:45 AM.
Reply With Quote
  #2  
Old 03-02-2010
Member
 
Join Date: Nov 2009
Posts: 446
Re: Detect users of a application

Hello,
The simplest would be to a client / server or each instance of your program connects to the server. Only the server would have a ServerSocket to manage the new connection. Your idea obviously is to create a p2p network, or everyone would connect to everyone, but I'd advise against it: it's much more complicated and in your case it does nothing.
Reply With Quote
  #3  
Old 03-02-2010
Member
 
Join Date: Dec 2009
Posts: 192
Re: Detect users of a application

Hello,
Yes, but it also means it takes 2 different programs, one on server and one client out, I could not have permanent server for this program (I wish I could implement it in the tears in my chest is the only area where I have connected more than 2pc together and it's filled with DHCP, proxies, firewalls ,.... short one is quickly limited) I'd like it to be relatively autonomous and intelligent (at least, able to explore the network without a server that should be set anyway)
Reply With Quote
  #4  
Old 03-02-2010
Member
 
Join Date: Nov 2009
Posts: 330
Re: Detect users of a application

Hello,
To my knowledge, even for the P2P, you need a server in the case of P2P its role is very light, since it indicates only the list of connected. Then everyone connects to everyone without going through the server. But without a server, it is virtually impossible. You can can make a list of subscribers that updates itself if all the run and the exchange for everyone. But I tell you not theoretical problems. By cons, you can be saved by noting that the P2P server need not be very intelligent, someone might even dare to imagine that it is a simple update file via FTP (and therefore even more necessary to install a java program), giving the server address of the P2P list, which gives.
Reply With Quote
  #5  
Old 03-02-2010
Member
 
Join Date: Dec 2009
Posts: 192
Re: Detect users of a application

Hello,
Precisely, the classical stuff I've already implemented and I wanted
try to go a little further. I have the GUI client, it remains for me to define a general communication protocol. If I summarize, clients connect to a static server, which contains the list of connected. During the first connection, I refer IDs of all connected, so that the client chooses to which person he wants to communicate. Once selected, I set about a client socket with the other person.

Last edited by Remedy : 03-02-2010 at 12:54 AM.
Reply With Quote
  #6  
Old 03-02-2010
Member
 
Join Date: Nov 2009
Posts: 333
Re: Detect users of a application

Hello,
You can point you toward a system of Chat "multicast" to have no server. The idea is quite simple. A program "client" is started and is on the multicast address that you have booked your program. When writing a message, instead of sending to a server or the client has everything, you send the message on the multicast address. When a multicast packet is intercepted by a network adapter, the battery see if the computer has registered with that address, whether it deals with the package if not ignore it.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Detect users of a application"
Thread Thread Starter Forum Replies Last Post
A+ ToDoMap application for Nokia Lumia users Kindle Portable Devices 3 21-02-2012 03:23 PM
Unable to detect tom tom home application when it connect to laptop PuffDuff Portable Devices 4 20-10-2011 07:25 AM
application needed that should let users input blurbs MonDo021 Software Development 4 02-04-2011 03:39 AM
How to detect and prevent threats on WEB application server Muwafaq Technology & Internet 4 14-02-2010 05:11 AM
Trojan Remover 6.81.2593 application not able to detect Xavier1234 Windows Software 5 10-02-2010 01:02 AM


All times are GMT +5.5. The time now is 08:59 PM.