diff options
author | fcolin | 2007-02-01 13:00:11 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:00:11 +0000 |
commit | f872905e098d43cc350bfad3903a8ce9756e07e2 (patch) | |
tree | 152ab8621ad2f45cba9c6efbb7989b66b27d0a3e | |
parent | 009f570f9c4e60137201d782d7c1f6a3b918232f (diff) | |
download | ivy-cplusplus-f872905e098d43cc350bfad3903a8ce9756e07e2.zip ivy-cplusplus-f872905e098d43cc350bfad3903a8ce9756e07e2.tar.gz ivy-cplusplus-f872905e098d43cc350bfad3903a8ce9756e07e2.tar.bz2 ivy-cplusplus-f872905e098d43cc350bfad3903a8ce9756e07e2.tar.xz |
Utilisateur : Fcolin Date : 2/06/05 Heure : 18:42 Archivé dans $/Bus/Ivy Commentaire: Suppression de la STL et ajout d'un namespace pour les datatypes internes Ivy (vss 22)
-rw-r--r-- | Ivy/IvyApplication.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx index 3eaecdb..fb399a6 100644 --- a/Ivy/IvyApplication.cxx +++ b/Ivy/IvyApplication.cxx @@ -81,7 +81,7 @@ void IvyApplication::Create(const char* host, UINT & port) UINT IvyApplication::Create()
{
- string host;
+ ivy::string host;
UINT port;
CBufferedSocket::Create();
// Max Listen Connexion
@@ -164,7 +164,7 @@ void IvyApplication::OnReceive(char * line) exp = pcre_compile( arg, PCRE_CASELESS, &errmsg, &erroffset, NULL );
if ( !exp )
{
- string err( "Error can't compile regexp '" );
+ ivy::string err( "Error can't compile regexp '" );
err += arg;
err += "' error ";
err += errmsg;
@@ -176,7 +176,7 @@ void IvyApplication::OnReceive(char * line) exp = new Regexp( arg );
if ( !exp->CompiledOK() )
{
- string err( "Error can't compile regexp '" );
+ ivy::string err( "Error can't compile regexp '" );
err += arg;
err += "' error ";
err += exp->GetErrorString();
@@ -292,7 +292,7 @@ void IvyApplication::SendMsg(MsgType msg, int id, const char * arg) void IvyApplication::OnAccept(int nErrorCode)
{
- string remotehost;
+ ivy::string remotehost;
UINT remoteport;
// construct a new, empty socket
@@ -309,7 +309,7 @@ void IvyApplication::OnAccept(int nErrorCode) void IvyApplication::OnClose(int nErrorCode)
{
- string remotehost;
+ ivy::string remotehost;
UINT remoteport;
GetPeerName( remotehost, remoteport );
TRACE("Deconnexion de %s:%u\n", remotehost.c_str(), remoteport );
@@ -344,7 +344,7 @@ int IvyApplication::SendMsg(const char *message) int match_count = pcre_exec( exp, NULL, message, strlen( message ), 0, 0, ovector, max_subexp );
if ( match_count > 0 )
{
- string buffer;
+ ivy::string buffer;
const char *substring;
for ( int j = 1; j < match_count; j++ )
{
@@ -359,7 +359,7 @@ int IvyApplication::SendMsg(const char *message) #else
if ( exp && exp->Match( message ) )
{
- string buffer;
+ ivy::string buffer;
for ( int j = 1; j < exp->SubStrings()+1; j++ )
{
buffer += (*exp)[j];
@@ -381,9 +381,9 @@ return appname.c_str(); BOOL IvyApplication::SameApplication(IvyApplication * app)
{
- string host1;
+ ivy::string host1;
UINT port1;
- string host2;
+ ivy::string host2;
UINT port2;
if ( (remoteService != 0) && (remoteService == app->remoteService) )
{
|