1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-26 19:57:22 +08:00
This commit is contained in:
stefanocasazza
2016-07-12 16:11:57 +02:00
parent 10126a71e0
commit eb39e7643a
218 changed files with 1316 additions and 1772 deletions

View File

@@ -273,8 +273,6 @@ protected:
void loadConfigParam();
// COSTRUTTORI
UClient_Base(UFileConfig* pcfg);
~UClient_Base();
@@ -297,8 +295,6 @@ private:
template <class Socket> class U_EXPORT UClient : public UClient_Base {
public:
// COSTRUTTORI
UClient(UFileConfig* pcfg) : UClient_Base(pcfg)
{
U_TRACE_REGISTER_OBJECT(0, UClient, "%p", pcfg)
@@ -322,8 +318,7 @@ private:
UClient& operator=(const UClient&) { return *this; }
};
#ifdef USE_LIBSSL // specializzazione con USSLSocket
#ifdef USE_LIBSSL
template <> class U_EXPORT UClient<USSLSocket> : public UClient_Base {
public:
@@ -354,6 +349,5 @@ private:
UClient<USSLSocket>& operator=(const UClient<USSLSocket>&) { return *this; }
#endif
};
#endif
#endif

View File

@@ -115,8 +115,6 @@ public:
protected:
int nResponseCode;
// Costruttori
URDBClient_Base(UFileConfig* _cfg) : UClient_Base(_cfg)
{
U_TRACE_REGISTER_OBJECT(0, URDBClient_Base, "%p", _cfg)
@@ -152,8 +150,6 @@ private:
template <class Socket> class U_EXPORT URDBClient : public URDBClient_Base {
public:
// COSTRUTTORI
URDBClient(UFileConfig* _cfg) : URDBClient_Base(_cfg)
{
U_TRACE_REGISTER_OBJECT(0, URDBClient, "%p", _cfg)

View File

@@ -46,7 +46,7 @@
* fact that the FTP @a SIZE command, which reports the size of the remote
* file, reports the <i>transfer size</i> of the file, which is not necessarily
* the same as the physical size of the file. The is described in more detail
* in the documentation for the getFileSize() method.
* in the documentation for the getFileSize() method
*/
#define FTP_DATA_CONNECTION_OPEN 125
@@ -177,7 +177,7 @@ public:
* @returns @c true if successful and @c false if the ssl negotiation failed
*
* Notes: The library uses an ssl/tls encryption approach defined in the draft-murray-auth-ftp-ssl
* available at http://www.ford-hutchinson.com/~fh-1-pfh/ftps-ext.html.
* available at http://www.ford-hutchinson.com/~fh-1-pfh/ftps-ext.html
*/
bool negotiateEncryption();

View File

@@ -29,7 +29,7 @@
* A UHttpClient instance can make only one HTTP request (although
* this one request may involve several message exchanges if HTTP redirection
* or authorization is involved). However, HTTP 1.1 introduces
* persistent connections which can make more effective use of TCP/IP.
* persistent connections which can make more effective use of TCP/IP
*/
class UMimeHeader;
@@ -139,7 +139,7 @@ public:
// Redirection may be an iterative process, so it continues until
// we receive a 200 OK response or the maximum number of redirects is exceeded.
//
// We do not process Location headers when accompanying a 200 OK response.
// We do not process Location headers when accompanying a 200 OK response
//=============================================================================
bool sendRequest();
@@ -208,8 +208,6 @@ protected:
else requestHeader->setHeader(U_CONSTANT_TO_PARAM("Proxy-Authorization"), headerValue);
}
// COSTRUTTORI
UHttpClient_Base(UFileConfig* _cfg);
~UHttpClient_Base()
{
@@ -242,8 +240,6 @@ private:
template <class Socket> class U_EXPORT UHttpClient : public UHttpClient_Base {
public:
// COSTRUTTORI
UHttpClient(UFileConfig* _cfg) : UHttpClient_Base(_cfg)
{
U_TRACE_REGISTER_OBJECT(0, UHttpClient, "%p", _cfg)
@@ -272,8 +268,7 @@ private:
#endif
};
#ifdef USE_LIBSSL // specializzazione con USSLSocket
#ifdef USE_LIBSSL
template <> class U_EXPORT UHttpClient<USSLSocket> : public UHttpClient_Base {
public:
@@ -306,6 +301,5 @@ private:
UHttpClient<USSLSocket>& operator=(const UHttpClient<USSLSocket>&) { return *this; }
#endif
};
#endif
#endif

View File

@@ -39,7 +39,7 @@
* Unlike much simpler POP3 protocol, IMAP is a multi-session protocol that supports multiple folders,
* also somewhat confusingly called mailboxes. While you are connected and authenticated, you will be informed
* about new incoming messages, and also about messages deleted or marked by other concurrent sessions using the
* same account. Luckily, you usually only have to care about most of this if you want to.
* same account. Luckily, you usually only have to care about most of this if you want to
*/
class U_EXPORT UImapClient : public Socket {
@@ -109,14 +109,14 @@ public:
/**
* Send 'NOOP' to the server. This is handy if you're just polling
* for new messages. Well, it will be when it actually returns something.
* for new messages. Well, it will be when it actually returns something
*/
bool noop() { return syncCommand("NOOP"); }
/**
* Tell the server we want to log out. If this returns true,
* you'll have to re-login to do anything else.
* you'll have to re-login to do anything else
*/
bool logout();
@@ -145,7 +145,7 @@ public:
* \Noinferiors
* It is not possible for any child levels of hierarchy to exist
* under this name; no child levels exist now and none can be
* created in the future.
* created in the future
*/
typedef struct ListResponse { // (LIST | LSUB) command representation
@@ -205,31 +205,31 @@ public:
/**
* Select a mailbox. The client has a concept of the 'current' mailbox.
* Some operations (check, close, expunge, search, fetch, store, copy)
* require a mailbox to be selected before they will work.
* require a mailbox to be selected before they will work
*/
bool selectMailbox(const UString& name, MailboxInfo& ret);
/**
* Get info about a mailbox without selecting it, otherwise identical to @see select.
* Get info about a mailbox without selecting it, otherwise identical to @see select
*/
bool examineMailbox(const UString& name, MailboxInfo& ret);
/**
* Attempt to create a new mailbox with the given name.
* Attempt to create a new mailbox with the given name
*/
bool createMailbox(const UString& name);
/**
* Attempt to remove the new mailbox with the given name.
* Attempt to remove the new mailbox with the given name
*/
bool removeMailbox(const UString& name);
/**
* Attempt to rename the new mailbox with the given name.
* Attempt to rename the new mailbox with the given name
*/
bool renameMailbox(const UString& from, const UString& to);
@@ -273,7 +273,7 @@ public:
* to the authenticated state from the selected state. No untagged
* EXPUNGE responses are sent.
* No messages are removed, and no error is given, if the mailbox is
* selected by an EXAMINE command or is otherwise selected read-only.
* selected by an EXAMINE command or is otherwise selected read-only
*/
bool close() { return (state == SELECTED ? syncCommand("CLOSE") : false); }
@@ -282,7 +282,7 @@ public:
* Attempt to remove all message from a mailbox. Note that some
* implementations may do something like move all messages to the
* 'trash' box, unless of course the currently selected mailbox IS
* the trash box.
* the trash box
*/
bool expunge(int* ret = 0);
@@ -291,7 +291,7 @@ public:
* Search for messages. For the format of the spec parameter, @see RFC.
* You may specify the charset to be used when searching.
* If you don't specify usingUID, then the returned message numbers
* will be indices, not UIDs.
* will be indices, not UIDs
*/
bool search(int* ret, const UString& spec, const char* charSet = "", bool usingUID = false);
@@ -300,7 +300,7 @@ public:
* Retrieve information about message(s) within the range [start ... end].
* For the format of the spec parameter and the returned value, @see RFC.
* To operate on only one message, specify end == start.
* Specifying usingUID means you're giving UIDs, not indices.
* Specifying usingUID means you're giving UIDs, not indices
*/
bool fetch(UVector<UString>& vec, int start, int end, const UString& spec, bool usingUID = false);
@@ -309,7 +309,7 @@ public:
* Set flags on the message(s) within the range [start ... end].
* To operate on only one message, specify end == start.
* You may set, add or remove flags. @see FlagSetStyle.
* Specifying usingUID means you're giving UIDs, not indices.
* Specifying usingUID means you're giving UIDs, not indices
*/
enum FlagSetStyle {
@@ -323,7 +323,7 @@ public:
/**
* Copy message(s) within the range [start ... end] from the currently
* selected mailbox to that specified in destination.
* Specifying usingUID means you're giving UIDs, not indices.
* Specifying usingUID means you're giving UIDs, not indices
*/
bool copy(int start, int end, const UString& destination, bool usingUID = false);
@@ -348,7 +348,7 @@ private:
/**
* Run a command and return the response from the server.
* Takes care of prepending the unique string necessary.
* Takes care of prepending the unique string necessary
*/
bool syncCommand(const char* format, ...) U_NO_EXPORT;

View File

@@ -160,8 +160,6 @@ public:
bool login(const char* user, const char* passwd);
// Varie
int getSizeMessage(uint32_t n);
int getUIDL(UVector<UString>& vec);

View File

@@ -73,8 +73,6 @@ public:
UString spec, device, host;
// COSTRUTTORI
UIPAllow()
{
U_TRACE_REGISTER_OBJECT(0, UIPAllow, "", 0)
@@ -88,8 +86,6 @@ public:
U_TRACE_UNREGISTER_OBJECT(0, UIPAllow)
}
// ASSEGNAZIONE
UIPAllow& operator=(const UIPAllow& a)
{
U_TRACE(0, "UIPAllow::operator=(%p)", &a)
@@ -186,14 +182,13 @@ public:
U_MEMORY_ALLOCATOR
U_MEMORY_DEALLOCATOR
// COSTRUTTORI
UIPAddress()
{
U_TRACE_REGISTER_OBJECT(0, UIPAddress, "", 0)
pcStrAddress[0] = '\0';
iAddressLength = iAddressType = 0;
iAddressLength =
iAddressType = 0;
}
~UIPAddress()
@@ -209,11 +204,11 @@ public:
// Sets an UIPAddress by providing a pointer to an address
// structure of the form in_addr or in6_addr. This pointer is cast to (void*).
// A boolean value is used to indicate if this points to an IPv6 or IPv4 address.
// A boolean value is used to indicate if this points to an IPv6 or IPv4 address
void setAddress(void* address, bool bIPv6 = false);
// Returns a constant integer of the address family represented by the UIPAddress.
// Returns a constant integer of the address family represented by the UIPAddress
u_short getAddressFamily() const { return iAddressType; }
@@ -308,8 +303,6 @@ public:
bool operator!=(const UIPAddress& cOtherAddr) const { return !operator==(cOtherAddr); }
// ASSEGNAZIONE
void set(const UIPAddress& cOtherAddr);
UIPAddress(const UIPAddress& cOtherAddr)
@@ -354,7 +347,7 @@ protected:
/* This method is used to set the contents of the iAddressLength and */
/* pcAddress member variables. Address Length bytes are copied from the */
/* source address to the pcAddress array. This array is 16 bytes long, long */
/* enough to hold both IPv4 and IPv6 addresses. */
/* enough to hold both IPv4 and IPv6 addresses */
/****************************************************************************/
void setAddress(const char* pcNewAddress, int iNewAddressLength);

View File

@@ -1,4 +1,4 @@
// ============================================================================
// ======================================================================================
//
// = LIBRARY
// ULib - c++ library
@@ -9,7 +9,7 @@
// = AUTHOR
// Stefano Casazza
//
// ============================================================================
// ======================================================================================
#ifndef ULIB_IPT_ACCOUNT_H
#define ULIB_IPT_ACCOUNT_H 1
@@ -23,21 +23,19 @@ struct ipt_acc_handle_ip;
struct ipt_acc_handle_sockopt;
#endif
/*
struct ipt_acc_handle_ip {
uint32_t ip;
uint32_t src_packets;
uint32_t src_bytes;
uint32_t dst_packets;
uint32_t dst_bytes;
};
*/
/**
* struct ipt_acc_handle_ip {
* uint32_t ip;
* uint32_t src_packets;
* uint32_t src_bytes;
* uint32_t dst_packets;
* uint32_t dst_bytes;
* };
*/
class U_EXPORT UIptAccount : public USocket {
public:
// COSTRUTTORI
UIptAccount(bool bSocketIsIPv6 = false);
virtual ~UIptAccount();
@@ -49,8 +47,9 @@ public:
int getHandleUsage();
bool readEntries(const char* table, bool bflush);
const char* getError() { return error_str; }
const char* getNextName();
const char* getError() { return error_str; }
const char* getNextName();
#ifdef HAVE_LINUX_NETFILTER_IPV4_IPT_ACCOUNT_H
struct ipt_acc_handle_ip* getNextEntry();
#endif

View File

@@ -26,11 +26,11 @@
#define U_TIME_FOR_ARPING_ASYNC_COMPLETION 15
// -------------------------------------
// PING (protocollo ICMP)
// PING (protocol ICMP)
// -------------------------------------
// send icmp echo request and wait reply
// -------------------------------------
// ARPING (protocollo ARP)
// ARPING (protocol ARP)
// -------------------------------------
// send arp request and wait reply
// -------------------------------------
@@ -59,12 +59,11 @@ public:
int32_t ttl;
} rephdr;
// COSTRUTTORI
UPing(int _timeoutMS = 3000, bool bSocketIsIPv6 = false);
virtual ~UPing();
/** This method is called to test whether a particular host is reachable across an IP network; it is also used to self test the network interface card
/**
* This method is called to test whether a particular host is reachable across an IP network; it is also used to self test the network interface card
* of the computer, or as a latency test. It works by sending ICMP echo request packets to the target host and listening for ICMP echo response replies.
* Note that ICMP (and therefore ping) resides on the Network layer (level 3) of the OSI (Open Systems Interconnection) model. This is the same layer as
* IP (Internet Protocol). Consequently, ping does not use a port for communication
@@ -85,18 +84,19 @@ public:
U_RETURN(result);
}
/* Two important types of ARP packets are ARP Request packets and ARP Reply packets. In the ARP Request packets, we say who has the mentioned
/**
* Two important types of ARP packets are ARP Request packets and ARP Reply packets. In the ARP Request packets, we say who has the mentioned
* MAC address and broadcast this packet. In the ARP Reply packets, owner of thementioned MAC address sets his IP address in the reply packet
* and sends it only to the questioner.
*
* The arping command tests whether a given IP network address is in use on the local network, and can get additional information about the
* device using that address. The arping command is similar in function to ping, but it operates using Address Resolution Protocol (ARP)
* instead of Internet Control Message Protocol. Because it uses ARP, arping is only usable on the local network; in some cases the response
* will be coming, not from the arpinged host, but rather from an intermediate system that engages in proxy ARP (such as a router).
* will be coming, not from the arpinged host, but rather from an intermediate system that engages in proxy ARP (such as a router)
*/
#ifdef HAVE_NETPACKET_PACKET_H
// #define U_ARP_WITH_BROADCAST
// #define U_ARP_WITH_BROADCAST
void initArpPing(const char* device);
@@ -135,6 +135,8 @@ protected:
rephdr* rep;
#ifdef HAVE_NETPACKET_PACKET_H
int recvArpPing();
typedef struct arpmsg {
// Ethernet header
uint8_t h_dest[6]; // 00 destination ether addr
@@ -160,11 +162,9 @@ protected:
struct sockaddr_ll l;
};
# ifndef U_ARP_WITH_BROADCAST
# ifndef U_ARP_WITH_BROADCAST
union uusockaddr_ll he;
# endif
int recvArpPing();
# endif
#endif
void pingAsync(uint32_t nfd, UIPAddress* paddr, const char* device);

View File

@@ -17,12 +17,12 @@
#include <ulib/utility/socket_ext.h>
#include <ulib/utility/string_ext.h>
// -----------------------------------------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------------
// Very simple RPC-like layer
//
// Requests and responses are build of little packets each containing a U_TOKEN_NM-byte ascii token,
// an 8-byte hex value or length, and optionally data corresponding to the length.
// -----------------------------------------------------------------------------------------------------------------------------
// an 8-byte hex value or length, and optionally data corresponding to the length
// -------------------------------------------------------------------------------------------------
class U_EXPORT URPC {
public:

View File

@@ -50,8 +50,6 @@ public:
protected:
// COSTRUTTORI
URPCClient_Base(UFileConfig* _cfg) : UClient_Base(_cfg)
{
U_TRACE_REGISTER_OBJECT(0, URPCClient_Base, "%p", _cfg)
@@ -85,8 +83,6 @@ private:
template <class Socket> class U_EXPORT URPCClient : public URPCClient_Base {
public:
// COSTRUTTORI
URPCClient(UFileConfig* _cfg) : URPCClient_Base(_cfg)
{
U_TRACE_REGISTER_OBJECT(0, URPCClient, "%p", _cfg)
@@ -113,8 +109,7 @@ private:
#endif
};
#ifdef USE_LIBSSL // specializzazione con USSLSocket
#ifdef USE_LIBSSL
template <> class U_EXPORT URPCClient<USSLSocket> : public URPCClient_Base {
public:
@@ -147,6 +142,5 @@ private:
URPCClient<USSLSocket>& operator=(const URPCClient<USSLSocket>&) { return *this; }
#endif
};
#endif
#endif

View File

@@ -23,8 +23,8 @@
#define U_RPC_ENCODE_RES(tok,res) URPCMethod::encoder->encodeResponse(tok, res)
/**
@class URPCEncoder
*/
* @class URPCEncoder
*/
class U_EXPORT URPCEncoder {
public:
@@ -36,8 +36,6 @@ public:
U_MEMORY_ALLOCATOR
U_MEMORY_DEALLOCATOR
// COSTRUTTORI
URPCEncoder() : buffer(U_CAPACITY), encodedValue(U_CAPACITY)
{
U_TRACE_REGISTER_OBJECT(0, URPCEncoder, "", 0)
@@ -50,8 +48,6 @@ public:
U_TRACE_UNREGISTER_OBJECT(0, URPCEncoder)
}
// dipendenze di USOAPParser...
void clearData()
{
U_TRACE_NO_PARAM(0, "URPCEncoder::clearData()")

View File

@@ -29,8 +29,6 @@ public:
U_MEMORY_ALLOCATOR
U_MEMORY_DEALLOCATOR
// Costruttori
URPCEnvelope()
{
U_TRACE_REGISTER_OBJECT(0, URPCEnvelope, "", 0)

View File

@@ -32,8 +32,6 @@ public:
enum FaultCode { Sender, Receiver, DataEncodingUnknown, MustUnderstand, VersionMismatch };
// COSTRUTTORI
URPCFault() : detail(U_CAPACITY)
{
U_TRACE_REGISTER_OBJECT(0, URPCFault, "", 0)
@@ -46,8 +44,6 @@ public:
U_TRACE_UNREGISTER_OBJECT(0, URPCFault)
}
// SERVICES
// Gets the general reason why the call failed.
// Returns a string combining the generic fault and any more specific fault data

View File

@@ -20,8 +20,6 @@
class U_EXPORT URPCGenericMethod : public URPCMethod {
public:
// COSTRUTTORI
URPCGenericMethod(const UString& n, const UString& _ns, UCommand* cmd, int rtype) : URPCMethod(n, _ns), response(U_CAPACITY)
{
U_TRACE_REGISTER_OBJECT(0, URPCGenericMethod, "%V,%V,%p,%d", n.rep, _ns.rep, cmd, rtype)
@@ -37,8 +35,6 @@ public:
if (command) delete command;
}
// VIRTUAL METHOD
// Transforms the method into something that servers and clients can send. The encoder holds the actual
// data while the client hands data to be entered in. This makes a whole lot more sense in the samples that
// should have shipped with the library

View File

@@ -44,8 +44,6 @@ public:
U_MEMORY_ALLOCATOR
U_MEMORY_DEALLOCATOR
// COSTRUTTORI
URPCMethod()
{
U_TRACE_REGISTER_OBJECT(0, URPCMethod, "", 0)

View File

@@ -56,8 +56,6 @@ public:
standard_output_binary = 4,
stdin_standard_output_binary = 5 };
// Costruttori
URPCObject()
{
U_TRACE_REGISTER_OBJECT(0, URPCObject, "", 0)
@@ -156,7 +154,7 @@ protected:
virtual void insertGenericMethod(const UString& n, const UString& ns, UCommand* cmd, int rtype)
{
// U_TRACE(0, "URPCObject::insertGenericMethod(%V,%V,%p,%d)", n.rep, ns.rep, cmd, rtype) // problem with sanitize address
U_TRACE(0, "URPCObject::insertGenericMethod(%V,%V,%p,%d)", n.rep, ns.rep, cmd, rtype) // problem with sanitize address
URPCMethod* pmethod;

View File

@@ -18,10 +18,10 @@
#include <ulib/net/rpc/rpc_envelope.h>
/**
@class URPCParser
@brief URPCParser is a parser RPC
*/
* @class URPCParser
*
* @brief URPCParser is a parser RPC
*/
class URPCObject;
@@ -35,8 +35,6 @@ public:
U_MEMORY_ALLOCATOR
U_MEMORY_DEALLOCATOR
// COSTRUTTORI
URPCParser(UVector<UString>* arg = 0);
~URPCParser()

View File

@@ -489,8 +489,6 @@ protected:
static bool isRequestCacheable() __pure;
#endif
// COSTRUTTORI
UClientImage_Base();
virtual ~UClientImage_Base();
@@ -522,8 +520,6 @@ private:
template <class Socket> class U_EXPORT UClientImage : public UClientImage_Base {
public:
// COSTRUTTORI
UClientImage() : UClientImage_Base()
{
U_TRACE_REGISTER_OBJECT(0, UClientImage<Socket>, "", 0)
@@ -549,7 +545,7 @@ private:
UClientImage& operator=(const UClientImage&) { return *this; }
};
#ifdef USE_LIBSSL // specializzazione con USSLSocket
#ifdef USE_LIBSSL
template <> class U_EXPORT UClientImage<USSLSocket> : public UClientImage_Base {
public:

View File

@@ -64,8 +64,7 @@ private:
#endif
};
#ifdef USE_LIBSSL // specializzazione con USSLSocket
#ifdef USE_LIBSSL
template <> class U_EXPORT USkeletonClientImage<USSLSocket> : public UClientImage<USSLSocket> {
public:
@@ -107,7 +106,6 @@ private:
USkeletonClientImage<USSLSocket>& operator=(const USkeletonClientImage<USSLSocket>&) { return *this; }
#endif
};
#endif
#endif

View File

@@ -22,8 +22,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORE
UEchoPlugIn()
{
U_TRACE_REGISTER_OBJECT(0, UEchoPlugIn, "", 0)

View File

@@ -24,8 +24,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UFCGIPlugIn();
virtual ~UFCGIPlugIn();

View File

@@ -25,8 +25,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UGeoIPPlugIn();
virtual ~UGeoIPPlugIn();

View File

@@ -23,8 +23,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UHttpPlugIn()
{
U_TRACE_REGISTER_OBJECT(0, UHttpPlugIn, "", 0)

View File

@@ -68,8 +68,6 @@ public:
enum Status { PEER_DENY, PEER_PERMIT };
// COSTRUTTORI
UModNoCatPeer() : UEventTime(0L,1L), mac(*UString::str_without_mac)
{
U_TRACE_REGISTER_OBJECT(0, UModNoCatPeer, "", 0)
@@ -139,8 +137,6 @@ public:
U_CHECK_FIREWALL = 0x010
};
// COSTRUTTORI
UNoCatPlugIn();
virtual ~UNoCatPlugIn();
@@ -218,8 +214,6 @@ protected:
static UModNoCatPeer* peers_delete; // delete list
static UModNoCatPeer* peers_preallocate;
// VARIE
static void getTraffic();
static void setNewPeer();
static void checkSystem();

View File

@@ -24,8 +24,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UProxyPlugIn();
virtual ~UProxyPlugIn();

View File

@@ -47,13 +47,9 @@ public:
ERROR_A_X509_NOBASICAUTH = 10
};
// COSTRUTTORI
UModProxyService();
~UModProxyService();
// VARIE
int getPort() const { return port; }
UString getUser() const { return user; }
UString getServer() const;

View File

@@ -24,8 +24,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
URpcPlugIn()
{
U_TRACE_REGISTER_OBJECT(0, URpcPlugIn, "", 0)

View File

@@ -24,8 +24,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
USCGIPlugIn();
virtual ~USCGIPlugIn();

View File

@@ -239,8 +239,6 @@ public:
class U_EXPORT UShibPlugIn : public UServerPlugIn {
public:
// COSTRUTTORI
UShibPlugIn();
virtual ~UShibPlugIn();

View File

@@ -49,8 +49,6 @@
class U_EXPORT USkeletonPlugIn : public UServerPlugIn {
public:
// COSTRUTTORE
USkeletonPlugIn() : UServerPlugIn() {}
virtual ~USkeletonPlugIn() {}

View File

@@ -24,8 +24,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
USoapPlugIn()
{
U_TRACE_REGISTER_OBJECT(0, USoapPlugIn, "")

View File

@@ -24,8 +24,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UWebSocketPlugIn();
virtual ~UWebSocketPlugIn();

View File

@@ -22,8 +22,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
USSIPlugIn();
virtual ~USSIPlugIn();

View File

@@ -25,8 +25,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UStreamPlugIn();
virtual ~UStreamPlugIn();

View File

@@ -24,8 +24,6 @@ public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UTsaPlugIn();
virtual ~UTsaPlugIn();

View File

@@ -609,13 +609,9 @@ protected:
static void initThrottlingServer();
#endif
// COSTRUTTORI
UServer_Base(UFileConfig* pcfg);
virtual ~UServer_Base();
// VARIE
#ifndef U_LOG_DISABLE
static uint32_t setNumConnection(char* buffer);
#endif
@@ -773,8 +769,7 @@ private:
#endif
};
#ifdef USE_LIBSSL // specializzazione con USSLSocket
#ifdef USE_LIBSSL
template <> class U_EXPORT UServer<USSLSocket> : public UServer_Base {
public:
@@ -788,7 +783,7 @@ public:
if (pcfg &&
bssl == false)
{
U_ERROR("You need to set bssl before loading the configuration");
U_ERROR("You need to set bssl var before loading the configuration");
}
# endif
@@ -846,6 +841,5 @@ private:
UServer<USSLSocket>& operator=(const UServer<USSLSocket>&) { return *this; }
#endif
};
#endif
#endif

View File

@@ -63,8 +63,6 @@ public:
U_MEMORY_ALLOCATOR
U_MEMORY_DEALLOCATOR
// COSTRUTTORE
UServerPlugIn() {}
virtual ~UServerPlugIn() __pure {}

View File

@@ -26,6 +26,7 @@
#define USP_JSON_PUTS(json) UValue::stringify(*UClientImage_Base::wbuffer, (json))
#define USP_JSON_REQUEST_PARSE(obj) JSON_parse(*UClientImage_Base::body, (obj))
#define USP_JFIND_REQUEST(type,type_len,str) UValue::jfind(*UClientImage_Base::body,(type)i,(type_len),(str))
#define USP_JSON_stringify(json,class_name,obj) ((json).toJSON(UJsonTypeHandler<class_name>(obj)), USP_JSON_PUTS(json))
#define USP_XML_PUTS(string) \

View File

@@ -86,8 +86,6 @@ public:
U_MEMORY_ALLOCATOR
U_MEMORY_DEALLOCATOR
// COSTRUTTORI
enum State {
CLOSE = 0x000,
TIMEOUT = 0x001,
@@ -292,7 +290,7 @@ public:
/**
* This method is called to accept a new pending connection on the server socket.
* The USocket pointed to by the provided parameter is modified to refer to the
* newly connected socket. The remote IP Address and port number are also set.
* newly connected socket. The remote IP Address and port number are also set
*/
bool acceptClient(USocket* pcConnection);
@@ -560,7 +558,7 @@ public:
int recvFrom(void* pBuffer, uint32_t iBufLength, uint32_t uiFlags, UIPAddress& cSourceIP, unsigned int& iSourcePortNumber);
/**
* The socket transmits the data to the remote socket.
* The socket transmits the data to the remote socket
*/
int sendTo(void* pPayload, uint32_t iPayloadLength, uint32_t uiFlags, UIPAddress& cDestinationIP, unsigned int iDestinationPortNumber);

View File

@@ -19,8 +19,6 @@
class U_EXPORT UTCPSocket : public USocket {
public:
// COSTRUTTORI
UTCPSocket(bool bSocketIsIPv6 = false) : USocket(bSocketIsIPv6)
{
U_TRACE_REGISTER_OBJECT(0, UTCPSocket, "%b", bSocketIsIPv6)

View File

@@ -19,8 +19,6 @@
class U_EXPORT UUDPSocket : public USocket {
public:
// COSTRUTTORI
UUDPSocket(bool bSocketIsIPv6 = false) : USocket(bSocketIsIPv6)
{
U_TRACE_REGISTER_OBJECT(0, UUDPSocket, "%b", bSocketIsIPv6)

View File

@@ -81,8 +81,6 @@ public:
U_TRACE_UNREGISTER_OBJECT(0, UUnixSocket)
}
// VARIE
static void setPath(const char* pathname);
// VIRTUAL METHOD