Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic