Skip to content

Commit

Permalink
message fix closes SmingHub#199
Browse files Browse the repository at this point in the history
  • Loading branch information
raburton committed Oct 31, 2015
1 parent f046a0e commit ac573bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sming/SmingCore/Network/TcpServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ err_t TcpServer::onAccept(tcp_pcb *clientTcp, err_t err)
void TcpServer::onClient(TcpClient *client)
{
activeClients++;
debugf("TcpServer onClient %s, activeClients = %d\r\n ",client->getRemoteIp().toString().c_str(),activeClients);
debugf("TcpServer onClient: %s\r\n", client->getRemoteIp().toString().c_str());
if (clientConnectDelegate)
{
clientConnectDelegate(client);
Expand All @@ -138,7 +138,7 @@ void TcpServer::onClient(TcpClient *client)
void TcpServer::onClientComplete(TcpClient& client, bool succesfull)
{
activeClients--;
debugf("TcpSever onComplete : %s activeClients = %d\r\n",client.getRemoteIp().toString().c_str(),activeClients );
debugf("TcpSever onComplete: %s\r\n", client.getRemoteIp().toString().c_str());
if (clientCompleteDelegate)
{
clientCompleteDelegate(client,succesfull);
Expand All @@ -147,8 +147,8 @@ void TcpServer::onClientComplete(TcpClient& client, bool succesfull)

bool TcpServer::onClientReceive (TcpClient& client, char *data, int size)
{
debugf("TcpSever onReceive : %s, %d bytes \r\n",client.getRemoteIp().toString().c_str(),size );
debugf("Data : %s", data);
debugf("TcpSever onReceive: %s, %d bytes\r\n", client.getRemoteIp().toString().c_str(), size);
debugf("Data: %s", data);
if (clientReceiveDelegate)
{
return clientReceiveDelegate(client, data, size);
Expand Down

0 comments on commit ac573bc

Please sign in to comment.