net.h File Reference

#include <util/utilException.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Spm
namespace  Spm::Util

Classes

class  Spm::Util::NetException
struct  Spm::Util::urlDetails

Functions

int Spm::Util::getSocket (const std::string &host, int port) throw (NetException)
 get a connection to a host
void Spm::Util::closeSocket (int &fdSocket)
 Close a connection.
void Spm::Util::sendTo (int fdSocket, std::string &str) throw (NetException)
 send a string
char * Spm::Util::recv (int fdSocket, int &size) throw (NetException)
 Receive a string from network.
urlDetails Spm::Util::parseUrl (const std::string &url) throw (NetException)
 Parse an URL.
int Spm::Util::getDefaultPortByService (const std::string &serviceName)
 Get the default port of a service.
bool Spm::Util::isUrl (const std::string &str)
 Check if a string is an URL.


Generated on Wed Jul 4 15:27:21 2007 for libSpm by  doxygen 1.4.6