sP2P c++ STL *nix API  1.2
NAT traversal and peer-to-peer networking API providing all utilities needed to build peer-to-peer application straigth out of box
 All Classes Functions Variables Typedefs Enumerations Enumerator
sp2plib::UTIL Class Reference

Usefull common functions More...

#include <Util.h>

Static Public Member Functions

static sp2plib::UInt64 GetCurrentTimeMilisec ()
 Gets current time in milisec.
 
static sp2plib::UInt32 DownloadURL (::std::string URL,::std::ostream *write_stream)
 Downloads the content from URL.
 
::std::string ConcatTextAndNumber (::std::string Text, int Number)
 Concatenates ::std::stind and int
 
::std::string intToString (int value)
 Convaterts int to ::sdt::string
 
static const char * GetOS ()
 Gets the operating system.
 

Detailed Description

Usefull common functions

Member Function Documentation

::std::string sp2plib::UTIL::ConcatTextAndNumber ( ::std::string  Text,
int  Number 
)
static

Concatenates ::std::stind and int

Parameters
Text::std::stding value
Numberint value
static sp2plib::UInt32 sp2plib::UTIL::DownloadURL ( ::std::string  URL,
::std::ostream *  write_stream 
)
static

Downloads the content from URL.

Parameters
URLURL of the document.
write_streamStream to write data to.
Returns
Numer of bytes read
static sp2plib::UInt64 sp2plib::UTIL::GetCurrentTimeMilisec ( )
static

Gets current time in milisec.

Returns
The current time in milisec.
static const char* sp2plib::UTIL::GetOS ( )
static

Gets the operating system.

Returns
null if it fails, else the operating system.
::std::string sp2plib::UTIL::intToString ( int  value)
static

Convaterts int to ::sdt::string

Parameters
valueInteger value.

The documentation for this class was generated from the following file: