summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:59:39 +0000
committerfcolin2007-02-01 12:59:39 +0000
commita2ad73d7b7c3812434be4d82eb1155dc4e6a6380 (patch)
tree2f9f419470873fdbbb6d1c98c1427f2e2c20603f /Ivy/IvyApplication.cxx
parent439a1c2233af689583e026d1841578b241b335d0 (diff)
downloadivy-cplusplus-a2ad73d7b7c3812434be4d82eb1155dc4e6a6380.zip
ivy-cplusplus-a2ad73d7b7c3812434be4d82eb1155dc4e6a6380.tar.gz
ivy-cplusplus-a2ad73d7b7c3812434be4d82eb1155dc4e6a6380.tar.bz2
ivy-cplusplus-a2ad73d7b7c3812434be4d82eb1155dc4e6a6380.tar.xz
Utilisateur : Fcolin Date : 31/01/01 Heure : 11:18 Archivé dans $/Ivy (vss 6)
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx
index 79110e1..7d55bf1 100644
--- a/Ivy/IvyApplication.cxx
+++ b/Ivy/IvyApplication.cxx
@@ -49,7 +49,7 @@ void IvyApplication::Create(const char* host, UINT & port)
UINT IvyApplication::Create()
{
- String host;
+ string host;
UINT port;
CBufferedSocket::Create();
// Max Listen Connexion
@@ -122,9 +122,9 @@ void IvyApplication::OnReceive(char * line)
exp = new Regexp( arg );
if ( !exp->CompiledOK() )
{
- String regerr = exp->GetErrorString();
- String err;
- err = "Error can't compile regexp '"+String(arg)+"' error "+regerr;
+ string regerr = exp->GetErrorString();
+ string err;
+ err = "Error can't compile regexp '"+string(arg)+"' error "+regerr;
SendMsg( Error, Error, err.c_str() );
TRACE("IvyApplication %s\n",err.c_str());
return;
@@ -228,7 +228,7 @@ void IvyApplication::SendMsg(MsgType msg, int id, const char * arg)
void IvyApplication::OnAccept(int nErrorCode)
{
- String remotehost;
+ string remotehost;
UINT remoteport;
// construct a new, empty socket
@@ -245,7 +245,7 @@ void IvyApplication::OnAccept(int nErrorCode)
void IvyApplication::OnClose(int nErrorCode)
{
- String remotehost;
+ string remotehost;
UINT remoteport;
GetPeerName( remotehost, remoteport );
TRACE("Deconnexion de %s:%u\n", remotehost.c_str(), remoteport );
@@ -271,7 +271,7 @@ int IvyApplication::SendMsg(const char *message)
if ( exp && exp->Match( message ) )
{
- String buffer;
+ string buffer;
for ( int i = 1; i < exp->SubStrings()+1; i++ )
{
buffer += (*exp)[i];
@@ -292,9 +292,9 @@ return appname.c_str();
BOOL IvyApplication::SameApplication(IvyApplication * app)
{
- String host1;
+ string host1;
UINT port1;
- String host2;
+ string host2;
UINT port2;
if ( (remoteService != 0) && (remoteService == app->remoteService) )
{