<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Little UP<br><br>When creating the pqServer, if it cannot connect directly to the server it wait for 60s, I wan to set the time out to 1s.<br><br>the builder line :<br>m_server = m_object_builder->createServer(pqServerResource(host)); //here timeout of 60s if no server<br><br>Thanks<br><br><hr size="2" width="100%"><blockquote><blockquote><b>Wertz Gil</b><br></blockquote><i>gilwertz@hotmail.com</i><br></blockquote><hr size="2" width="100%"><br><br><br><br><hr id="stopSpelling">From: gilwertz@hotmail.com<br>To: paraview@paraview.org<br>Date: Mon, 4 Apr 2011 15:13:33 +0200<br>Subject: [Paraview] change server timeout and hide "Output Messages"<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<style>
.ExternalClass p, .ExternalClass li
{white-space:pre-wrap;}
</style>When I try to connect my client to a pvserver and this one is not launched I have this message :<br><br>
<p style="text-indent: 0px;"><span style="font-family: 'Monospace'; font-size: 9pt; color: rgb(200, 0, 0);">Warning: In /data/wertz/paraview-source/Servers/Common/vtkProcessModuleConnectionManager.cxx, line 299</span></p>
<p style="text-indent: 0px;"><span style="font-family: 'Monospace'; font-size: 9pt; color: rgb(200, 0, 0);">vtkProcessModuleConnectionManager (0x2a84d10): Connect failed. Retrying for 53.8997 more seconds.</span></p><br>How do I set timeout to 1 second ?<br>How do I catch those warning without showing "Output Messages" window and from which element/class/manager does it depend ?<br><br>When I launch pvserver and connect on it with a client, when I try with a second one I get timeout (because pvserver is not multi-client ), how do I get if the server is not launched or if a client is already connected ?<br><br>Thanks.<br><br>Code :<br><br> QString host = "cs://";<br> host += given_host;<br> host += ":";<br> host += port;<br><br> if(m_server)<br> //if any remote or builtin server, delete them to free ressources<br> m_object_builder->removeServer(m_server);<br><br> //create new remote server<br> m_server = m_object_builder->createServer(pqServerResource(host)); //here timeout of 60s blocking thread<br> //if the server is remote then :<br> if(m_server && m_server->isRemote()){<br> ...<br><hr size="2" width="100%"><blockquote><blockquote><b>Wertz Gil</b><br></blockquote><i>gilwertz@hotmail.com</i><br></blockquote><hr size="2" width="100%"><br><br>                                           
<br>_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview                                            </body>
</html>