wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to call a service that this in a door of a server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to call a service that this in a door of a server?" Watch "How to call a service that this in a door of a server?" New topic
Author

How to call a service that this in a door of a server?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Which library in java that I get to call a service that this in a door of a server?

Service: ListAgent
Server: 172.10.20.203
Port: 49500

Example: In PERL a package that I manage to do that exists

service.pl
...
if (! ($remote =
IO::Socket::INET->new (PeerAddr => $server,
PeerPort => $port,
Proto => 'tcp')))
{
push(@return, "Error.... <br> ;
}
else {
#parameters are being passed for the
# service to execute
print $remote "$validate|$who|$command\n";
while(<$remote> {
push(@return,$_) if($_);
}
}

How well to call this same service in java?
Thank you
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
My first thought is that you are going to have to open a Socket to get to that Server.
Let's move this to the Socket Forum and see what they have to say.
[ December 16, 2002: Message edited by: Cindy Glass ]

"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Consider Paul's rocket mass heater.
 
subject: How to call a service that this in a door of a server?