* @pre socket_timeout >= 0
*/
public Transportable sendAndReceive(Transportable in, String service_name,
TransportableFactory factory, int socket_timeout, int connect_timeout)
throws IOException, ServiceException {
VinciClient tempClient = new VinciClient(service_name, factory, this, connect_timeout);
tempClient.setSocketTimeout(socket_timeout);
try {
return tempClient.sendAndReceive(in);
} finally {
tempClient.close();
}
}