summaryrefslogtreecommitdiff
path: root/Bus/Ivy/IvyWatcher.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:04:00 +0000
committerfcolin2007-02-01 13:04:00 +0000
commit14b87193494fbf5b7a318dc032a9eb3f497116ba (patch)
tree7e16063d5fbf6c08b513a69ff6505fa5603e0f78 /Bus/Ivy/IvyWatcher.cxx
parent1324230e3d73631abc350914767e8104b871102b (diff)
downloadivy-cplusplus-14b87193494fbf5b7a318dc032a9eb3f497116ba.zip
ivy-cplusplus-14b87193494fbf5b7a318dc032a9eb3f497116ba.tar.gz
ivy-cplusplus-14b87193494fbf5b7a318dc032a9eb3f497116ba.tar.bz2
ivy-cplusplus-14b87193494fbf5b7a318dc032a9eb3f497116ba.tar.xz
Utilisateur : Fcolin Date : 23/09/05 Heure : 15:27 Archivé dans $/Bus/Ivy Commentaire: (vss 12)
Diffstat (limited to 'Bus/Ivy/IvyWatcher.cxx')
-rw-r--r--Bus/Ivy/IvyWatcher.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bus/Ivy/IvyWatcher.cxx b/Bus/Ivy/IvyWatcher.cxx
index 424c8ac..4faca90 100644
--- a/Bus/Ivy/IvyWatcher.cxx
+++ b/Bus/Ivy/IvyWatcher.cxx
@@ -28,7 +28,7 @@ IvyWatcher::~IvyWatcher()
void IvyWatcher::OnReceive(int nErrorCode)
{
- int err;
+ size_t err;
int version;
char buffer[256];
ivy::string remotehost;
@@ -81,7 +81,7 @@ void IvyWatcher::start(const char *domainlist)
domain = bus->GetDomain( domainlist );
// first find our UDP port
- int sep_index = domain.rfind( ':' );
+ size_t sep_index = domain.rfind( ':' );
if ( sep_index != -1 )
{
port = atoi ( domain.substr( sep_index +1 ).c_str() );
@@ -103,7 +103,7 @@ void IvyWatcher::start(const char *domainlist)
while ( !domain.empty() )
{
// find addr up to separator
- int index = domain.find_first_of( ", \t" );
+ size_t index = domain.find_first_of( ", \t" );
addr = domain.substr( 0, index );
domain.erase( 0, addr.length() +1 );
TRACE("Ivy Broadcasting on %s:%d\n", addr.c_str(), port );