}
bool Socket::support(const char* transportClassName) const
-throw() {
+{
if(a_transportFactory == NULL)
return false;
// ya tienen activa su propia zona de exclusin.
//---------------------------------------------------------------------------
void Socket::open()
-throw(RuntimeException) {
+noexcept(false) {
if(a_fd != -1)
return;
}
void Socket::close()
-throw() {
+{
if(a_fd == -1)
return;
}
bool Socket::setBlockingMode(const bool blockingMode)
-throw(RuntimeException) {
+noexcept(false) {
int opts;
int result;
anna_socket_assert(a_fd == -1, "Socket is not opened");
}
bool Socket::setReuseMode(const bool reuseMode)
-throw(RuntimeException) {
+noexcept(false) {
anna_socket_assert(a_fd == -1, "Socket is not opened");
if(a_reuseMode == reuseMode)
}
void Socket::bind()
-throw(RuntimeException) {
+noexcept(false) {
Guard guard(*this, "comm::Socket::bind");
if(a_fd == -1)
}
int Socket::do_bind(const struct sockaddr *addr, const int len)
-throw(RuntimeException) {
+noexcept(false) {
return ::bind(a_fd, addr, len);
}
std::string Socket::asString() const
-throw() {
+{
std::string msg("comm::Socket { Domain: ");
switch(a_domain) {
}
xml::Node* Socket::asXML(xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
const char* aux;
xml::Node* result = parent->createChild("comm.Socket");
}
const char* Socket::asText(const Socket::Notify::_v v)
-throw() {
+{
static const char* text [] = { "None", "ReceiveData", "Close", "Corrupt" };
return text [v];
}