polserver/pol-core/clib/network/sckutil.cpp

24 lines
312 B
C++

/** @file
*
* @par History
*/
#include "sckutil.h"
#include "esignal.h"
#include "strutil.h"
#include "wnsckt.h"
namespace Pol
{
namespace Clib
{
void writeline( Socket& sck, const std::string& s )
{
sck.send( (void*)s.c_str(), static_cast<unsigned int>( s.length() ) );
sck.send( "\r\n", 2 );
}
}
}