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
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