Skip to content
Snippets Groups Projects
Commit 2f777776 authored by Jean Coquet's avatar Jean Coquet
Browse files

maintenant le timeout ethernet est toujours sup�rieur au timeout gpib

parent 6c9af5fb
Branches
Tags
No related merge requests found
......@@ -8,7 +8,7 @@
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>GpibPrologix-${aol}-${mode}</artifactId>
<version>1.1.11</version>
<version>1.1.12-SNAPSHOT</version>
<packaging>nar</packaging>
<name>GpibPrologix</name>
<description>GpibPrologix device</description>
......
static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.25 2013-01-21 14:47:15 jean_coquet Exp $";
static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.26 2013-01-22 11:06:30 jean_coquet Exp $";
//+=============================================================================
//
// file : GpibPrologix.cpp
......@@ -13,10 +13,10 @@ static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.25 2013-01-21 14:47:15 jea
//
// $Author: jean_coquet $
//
// $Revision: 1.25 $
// $Revision: 1.26 $
//
// $Revision: 1.25 $
// $Date: 2013-01-21 14:47:15 $
// $Revision: 1.26 $
// $Date: 2013-01-22 11:06:30 $
//
// SVN only:
// $HeadURL: $
......@@ -24,6 +24,9 @@ static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.25 2013-01-21 14:47:15 jea
// CVS only:
// $Source: /users/chaize/newsvn/cvsroot/Communication/GpibPrologix/src/GpibPrologix.cpp,v $
// $Log: not supported by cvs2svn $
// Revision 1.25 2013/01/21 14:47:15 jean_coquet
// ajout nombre d'erreurs consecutives dans le status
//
// Revision 1.24 2013/01/18 16:29:48 jean_coquet
// try to restart socket if communication fails
//
......@@ -1125,6 +1128,9 @@ namespace GpibPrologix_ns
//- internal YAT stuff cooking
yat::Socket::init();
//- le timeout sur la lecture socket doit tre superieur au timeout sur la lecture sur le GPIB
readTimeout + 100;
try
{
sock = new yat::ClientSocket ();
......@@ -1132,8 +1138,8 @@ namespace GpibPrologix_ns
//- sock->set_option(yat::Socket::SOCK_OPT_KEEP_ALIVE, 1);
sock->set_option(yat::Socket::SOCK_OPT_REUSE_ADDRESS, 1);
sock->set_option(yat::Socket::SOCK_OPT_NO_DELAY, 1);
sock->set_option(yat::Socket::SOCK_OPT_OTIMEOUT, 2000);
sock->set_option(yat::Socket::SOCK_OPT_ITIMEOUT, 2000);
sock->set_option(yat::Socket::SOCK_OPT_OTIMEOUT, (readTimeout + 100));
sock->set_option(yat::Socket::SOCK_OPT_ITIMEOUT, (readTimeout + 100));
yat::Address addr(url, port);
sock->connect(addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment