Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2006
cesartovic's Avatar
cesartovic cesartovic is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 50
IcePHP

Hello, I'm using IcePHP and I have to put a timeout in an operation.How can I do that?I try to find it in the manual but only appears examples for Java and C.The source code is this:

$p=$ICE->stringToProxy("drupal:tcp -h 127.0.0.1 -p 10040");
$subs=$p->ice_checkedCast("::Management:: Drupal");
$answer=$subs->operation();

Thanks
__________________
Name: César Rodríguez Maurelo
Project:working with TC65 that supports j2ME aplicattions and I will use Ice to comunicate with a server.The project is a consorcium betwen "Universidad Politecnica de Madrid" and "Recreativos Franco".
url: http://www.die.upm.es/
We are trying to improve the technologie of some game machines and one important aspect is communications.The project haven´t got name
Reply With Quote
  #2 (permalink)  
Old 09-25-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
For example, you could use:

$p=$ICE->stringToProxy("drupal:tcp -t timeout -h 127.0.0.1 -p 10040");

Alternatively, you could also override all timeouts with the Ice.Override.Timeout and Ice.Override.ConnectTimeout properties.
Reply With Quote
  #3 (permalink)  
Old 09-25-2006
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 976
Hi,

You can also set a timeout in your code using the ice_timeout function:
Code:
$timeout = 2000;
$p=$p->ice_timeout($timeout);
Take care,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IcePHP & IceStorm lionel Help Center 8 08-09-2006 07:18 AM
Missing IcePHP? g00fy Comments 4 07-13-2006 01:06 PM
IcePHP docs griffima Help Center 2 10-15-2004 02:55 PM
IcePHP 1.1.0 released mes Announcements 0 06-10-2004 07:32 PM
IcePHP 1.0.1 released mes Announcements 0 11-10-2003 08:02 PM


All times are GMT -4. The time now is 12:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.