File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Connection to multiple servers.

Paul Janzen
Greenhorn

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?

Thanks.
Paul.

fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11475
    
  16

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
Greenhorn

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.

Paul.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection to multiple servers.