File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Connection to multiple servers. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection to multiple servers." Watch "Connection to multiple servers." New topic

Connection to multiple servers.

Paul Janzen

Joined: Jul 15, 2014
Posts: 2
HI All,

I have created the code below so I can do a search for a device (see mac address) but there has to be a better way of doing this.

I hope someone can help me with a example?


fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11914

Can you tell us what exactly your issue is? What exactly is wrong with this code that you think needs to be improved?

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Paul Janzen

Joined: Jul 15, 2014
Posts: 2
Well for starters it is not very efficient and reusable. I would thought that this could be more of a object kind a way. Not as such a scripting method it is now.

I hope that make sense.

I agree. Here's the link:
subject: Connection to multiple servers.
It's not a secret anymore!