relicensed tcponudp, turtle, unused, upnp, and part of util/

This commit is contained in:
csoler 2018-05-30 21:19:13 +02:00
parent b3853156ce
commit 6cf2090149
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
67 changed files with 1334 additions and 1136 deletions

View File

@ -140,4 +140,6 @@ Licensing issues:
Files after switch: Files after switch:
libresapi/api/json.h MIT license Copyright (c) 2013 Jeff Weinstein (jeff.weinstein at gmail) libresapi/api/json.h MIT license Copyright (c) 2013 Jeff Weinstein (jeff.weinstein at gmail)
libretroshare/src/tcponudp/bss_tou.cc SSL Licence Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
libretroshare/src/upnp/UPnPBase.{h,cpp} GPL Licence Copyright (c) 2004-2009 Marcelo Roberto Jimenez ( phoenix@amule.org )

View File

@ -520,7 +520,6 @@ HEADERS += turtle/p3turtle.h \
HEADERS += util/folderiterator.h \ HEADERS += util/folderiterator.h \
util/rsdebug.h \ util/rsdebug.h \
util/rsmemory.h \ util/rsmemory.h \
util/rscompress.h \
util/smallobject.h \ util/smallobject.h \
util/rsdir.h \ util/rsdir.h \
util/rsdiscspace.h \ util/rsdiscspace.h \
@ -537,7 +536,6 @@ HEADERS += util/folderiterator.h \
util/rsversioninfo.h \ util/rsversioninfo.h \
util/rswin.h \ util/rswin.h \
util/rsrandom.h \ util/rsrandom.h \
util/pugiconfig.h \
util/rsmemcache.h \ util/rsmemcache.h \
util/rstickevent.h \ util/rstickevent.h \
util/rsrecogn.h \ util/rsrecogn.h \
@ -672,7 +670,6 @@ SOURCES += turtle/p3turtle.cc \
SOURCES += util/folderiterator.cc \ SOURCES += util/folderiterator.cc \
util/rsdebug.cc \ util/rsdebug.cc \
util/rsexpr.cc \ util/rsexpr.cc \
util/rscompress.cc \
util/smallobject.cc \ util/smallobject.cc \
util/rsdir.cc \ util/rsdir.cc \
util/rsmemory.cc \ util/rsmemory.cc \

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* "$Id: bio_tou.h,v 1.2 2007-02-18 21:46:50 rmf24 Exp $" * libretroshare/src/tcponudp: bio_tou.h *
* * *
* TCP-on-UDP (tou) network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef BIO_TCPONUDP_H #ifndef BIO_TCPONUDP_H
#define BIO_TCPONUDP_H #define BIO_TCPONUDP_H

View File

@ -1,31 +1,24 @@
/* /*******************************************************************************
* "$Id: tcppacket.cc,v 1.3 2007-02-18 21:46:50 rmf24 Exp $" * libretroshare/src/tcponudp: tcppacket.cc *
* * *
* TCP-on-UDP (tou) network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "tcppacket.h" #include "tcppacket.h"
/* /*

View File

@ -1,30 +1,24 @@
/* /*******************************************************************************
* "$Id: tcppacket.h,v 1.3 2007-02-18 21:46:50 rmf24 Exp $" * libretroshare/src/tcponudp: tcppacket.h *
* * *
* TCP-on-UDP (tou) network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef TOU_TCP_PACKET_H #ifndef TOU_TCP_PACKET_H
#define TOU_TCP_PACKET_H #define TOU_TCP_PACKET_H

View File

@ -1,29 +1,24 @@
/* /*******************************************************************************
* "$Id: tcpstream.cc,v 1.11 2007-03-01 01:09:39 rmf24 Exp $" * libretroshare/src/tcponudp: tcpstream.cc *
* * *
* TCP-on-UDP (tou) network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -1,30 +1,24 @@
/* /*******************************************************************************
* "$Id: tcpstream.h,v 1.5 2007-02-18 21:46:50 rmf24 Exp $" * libretroshare/src/tcponudp: tcpstream.h *
* * *
* TCP-on-UDP (tou) network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef TOU_TCP_PROTO_H #ifndef TOU_TCP_PROTO_H
#define TOU_TCP_PROTO_H #define TOU_TCP_PROTO_H

View File

@ -1,31 +1,24 @@
/* /*******************************************************************************
* "$Id: tou.cc,v 1.7 2007-02-18 21:46:50 rmf24 Exp $" * libretroshare/src/tcponudp: tou.cc *
* * *
* TCP-on-UDP (tou) network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "tou.h" #include "tou.h"
static const int kInitStreamTable = 5; static const int kInitStreamTable = 5;

View File

@ -1,30 +1,24 @@
/* /*******************************************************************************
* "$Id: tou.h,v 1.4 2007-02-18 21:46:50 rmf24 Exp $" * libretroshare/src/tcponudp: tou.h *
* * *
* TCP-on-UDP (tou) network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef TOU_C_HEADER_H #ifndef TOU_C_HEADER_H
#define TOU_C_HEADER_H #define TOU_C_HEADER_H

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* tcponudp/udppeer.cc * libretroshare/src/tcponudp: udppeer.cc *
* * *
* libretroshare. * libretroshare: retroshare core library *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2010-2010 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "udppeer.h" #include "udppeer.h"
#include <iostream> #include <iostream>

View File

@ -1,31 +1,27 @@
/*******************************************************************************
* libretroshare/src/tcponudp: udppeer.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2010-2010 by Robert Fernie <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RS_UDP_PEER_RECV_H #ifndef RS_UDP_PEER_RECV_H
#define RS_UDP_PEER_RECV_H #define RS_UDP_PEER_RECV_H
/*
* tcponudp/udppeer.h
*
* libretroshare.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef WINDOWS_SYS #ifndef WINDOWS_SYS
#include <netinet/in.h> #include <netinet/in.h>
#endif #endif

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* tcponudp/udprelay.cc * libretroshare/src/tcponudp: udprelay.cc *
* * *
* libretroshare. * libretroshare: retroshare core library *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2010-2010 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "udprelay.h" #include "udprelay.h"
#include <iostream> #include <iostream>
#include <time.h> #include <time.h>

View File

@ -1,31 +1,27 @@
/*******************************************************************************
* libretroshare/src/tcponudp: udprelay.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2010-2010 by Robert Fernie <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RS_UDP_RELAY_H #ifndef RS_UDP_RELAY_H
#define RS_UDP_RELAY_H #define RS_UDP_RELAY_H
/*
* tcponudp/udprelay.h
*
* libretroshare.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "tcponudp/udppeer.h" #include "tcponudp/udppeer.h"
#include <retroshare/rsdht.h> #include <retroshare/rsdht.h>
#include <vector> #include <vector>

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* tcponudp/udpstunner.cc * libretroshare/src/tcponudp: udpstunner.cc *
* * *
* libretroshare. * libretroshare: retroshare core library *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2010-2010 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "tcponudp/udpstunner.h" #include "tcponudp/udpstunner.h"
#include <iostream> #include <iostream>
#include <time.h> #include <time.h>

View File

@ -1,29 +1,26 @@
/*******************************************************************************
* libretroshare/src/tcponudp: udpstunner.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2010-2010 by Robert Fernie <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RS_UDP_STUN_H #ifndef RS_UDP_STUN_H
#define RS_UDP_STUN_H #define RS_UDP_STUN_H
/*
* tcponudp/udpstunner.h
*
* libretroshare.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef WINDOWS_SYS #ifndef WINDOWS_SYS
#include <netinet/in.h> #include <netinet/in.h>

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/services: p3turtle.cc * libretroshare/src/turtle: p3turtle.cc *
* * *
* Services for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2009 by Cyril Soler * Copyright 2009-2018 by Cyril Soler <csoler@users.sourceforge.net> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "csoler@users.sourceforge.net".
*
*/
//#define P3TURTLE_DEBUG //#define P3TURTLE_DEBUG

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/services: p3turtle.h * libretroshare/src/turtle: p3turtle.h *
* * *
* Services for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2009 by Cyril Soler * Copyright 2009-2018 by Cyril Soler <csoler@users.sourceforge.net> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "csoler@users.sourceforge.net".
*
*/
//====================================== General setup of the router ===================================// //====================================== General setup of the router ===================================//
// //

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/turtle: rsturtleitem.cc *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2009-2018 by Cyril Soler <csoler@users.sourceforge.net> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef WINDOWS_SYS #ifndef WINDOWS_SYS
#include <stdexcept> #include <stdexcept>
#endif #endif

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/turtle: rsturtleitem.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2009-2018 by Cyril Soler <csoler@users.sourceforge.net> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
#include "rsitems/rsserviceids.h" #include "rsitems/rsserviceids.h"

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/services: turtleclientservice.h * libretroshare/src/turtle: rsturtleclientservice.h *
* * *
* Services for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2013 by Cyril Soler * Copyright 2013-2018 by Cyril Soler <csoler@users.sourceforge.net> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "csoler@users.sourceforge.net".
*
*/
// This class is the parent class for any service that will use the turtle router to distribute its packets. // This class is the parent class for any service that will use the turtle router to distribute its packets.
// Typical representative clients include: // Typical representative clients include:

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/turtle: rsturtletypes.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2013-2018 by Cyril Soler <csoler@users.sourceforge.net> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
#include "retroshare/rsturtle.h" #include "retroshare/rsturtle.h"

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/services/p3dsdv.h * libretroshare/src/unused: p3dsdv.cc *
* * *
* Network-Wide Routing Service. * libretroshare: retroshare core library *
* * *
* Copyright 2011 by Robert Fernie. * Copyright 2011 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include <list> #include <list>
#include <string> #include <string>
#include <time.h> #include <time.h>

View File

@ -1,29 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/services/p3dsdv.h * libretroshare/src/unused: p3dsdv.h *
* * *
* Network-Wide Routing Service. * libretroshare: retroshare core library *
* * *
* Copyright 2011 by Robert Fernie. * Copyright 2011 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef SERVICE_RSDSDV_HEADER #ifndef SERVICE_RSDSDV_HEADER
#define SERVICE_RSDSDV_HEADER #define SERVICE_RSDSDV_HEADER

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/utils: rscompress.cc * libretroshare/src/util: rscompress.cc *
* * *
* Basic memory chunk compression, based on openpgp-sdk * libretroshare: retroshare core library *
* * *
* Copyright 2013 by Cyril Soler * Copyright 2013 Cyril Soler <csoler@users.sourceforge.net> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "csoler@users.sourceforge.net".
*
*/
#include <stdint.h> #include <stdint.h>
#include <algorithm> #include <algorithm>
#include <iostream> #include <iostream>

View File

@ -0,0 +1,30 @@
/*******************************************************************************
* libretroshare/src/util: rscompress.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2013 Cyril Soler <csoler@users.sourceforge.net> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once
class RsCompress
{
public:
static bool compress_memory_chunk(const uint8_t *input_mem,const uint32_t input_size,uint8_t *& output_mem,uint32_t& output_size) ;
static bool uncompress_memory_chunk(const uint8_t *input_mem,const uint32_t input_size,uint8_t *& output_mem,uint32_t& output_size) ;
};

View File

@ -1,31 +1,27 @@
/*******************************************************************************
* libretroshare/src/unused: rsdsdv.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2011 by Robert Fernie <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RETROSHARE_DSDV_INTERFACE_H #ifndef RETROSHARE_DSDV_INTERFACE_H
#define RETROSHARE_DSDV_INTERFACE_H #define RETROSHARE_DSDV_INTERFACE_H
/*
* libretroshare/src/rsiface: rsdsdv.h
*
* RetroShare C++ Interface.
*
* Copyright 2011-2011 by Robert Fernie.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include <inttypes.h> #include <inttypes.h>
#include <string> #include <string>
#include <list> #include <list>

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/serialiser: rsgameitems.cc * libretroshare/src/unused: rsdsdvitems.cc *
* * *
* RetroShare Serialiser. * libretroshare: retroshare core library *
* * *
* Copyright 2007-2008 by Robert Fernie. * Copyright 2011 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "serialiser/rsbaseserial.h" #include "serialiser/rsbaseserial.h"
#include "serialiser/rsdsdvitems.h" #include "serialiser/rsdsdvitems.h"

View File

@ -1,31 +1,27 @@
/*******************************************************************************
* libretroshare/src/unused: rsdsdvitems.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2011 by Robert Fernie <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RS_DSDV_ITEMS_H #ifndef RS_DSDV_ITEMS_H
#define RS_DSDV_ITEMS_H #define RS_DSDV_ITEMS_H
/*
* libretroshare/src/serialiser: rsdsdvitems.h
*
* RetroShare Serialiser.
*
* Copyright 2011-2011 by Robert Fernie.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include <map> #include <map>
#include "rsitems/rsserviceids.h" #include "rsitems/rsserviceids.h"

View File

@ -1,6 +1,24 @@
//Linux only /*******************************************************************************
/* This stuff is actually C */ * libretroshare/src/upnp: upnphandler_linux.cc *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2007-2018 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/upnp: upnphandler_linux.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2007-2018 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef _RS_UPNP_IFACE_H #ifndef _RS_UPNP_IFACE_H
#define _RS_UPNP_IFACE_H #define _RS_UPNP_IFACE_H

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/upnp: upnphandler_miniupnp.cc *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2007-2018 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
// Windows / Mac version. // Windows / Mac version.
/* This stuff is actually C */ /* This stuff is actually C */

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/upnp: upnphandler_miniupnp.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2007-2018 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
//windows/osx (miniupnpc) implementation //windows/osx (miniupnpc) implementation
#ifndef _RS_UPNP_IFACE_H #ifndef _RS_UPNP_IFACE_H
#define _RS_UPNP_IFACE_H #define _RS_UPNP_IFACE_H

View File

@ -1,3 +1,22 @@
/**************************************************************************************
* MiniUPnPc *
* Copyright (c) 2005-2016, Thomas BERNARD *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted provided that the following conditions are met: *
* *
* * Redistributions of source code must retain the above copyright notice, *
* this list of conditions and the following disclaimer. *
* * Redistributions in binary form must reproduce the above copyright notice, *
* this list of conditions and the following disclaimer in the documentation *
* and/or other materials provided with the distribution. *
* * The name of the author may not be used to endorse or promote products *
* derived from this software without specific prior written permission. *
* This software is subject to the conditions detailed in the *
* LICENCE file provided in this distribution. *
* *
**************************************************************************************/
//this file uses miniupnp //this file uses miniupnp
//From https://github.com/miniupnp/miniupnp/blob/master/miniupnpc/upnpc.c //From https://github.com/miniupnp/miniupnp/blob/master/miniupnpc/upnpc.c

View File

@ -1,15 +1,27 @@
/**************************************************************************************
* MiniUPnPc *
* Copyright (c) 2005-2016, Thomas BERNARD *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted provided that the following conditions are met: *
* *
* * Redistributions of source code must retain the above copyright notice, *
* this list of conditions and the following disclaimer. *
* * Redistributions in binary form must reproduce the above copyright notice, *
* this list of conditions and the following disclaimer in the documentation *
* and/or other materials provided with the distribution. *
* * The name of the author may not be used to endorse or promote products *
* derived from this software without specific prior written permission. *
* This software is subject to the conditions detailed in the *
* LICENCE file provided in this distribution. *
* *
**************************************************************************************/
//this file uses miniupnp //this file uses miniupnp
#ifndef MINIUPNP_UTIL_H_ #ifndef MINIUPNP_UTIL_H_
#define MINIUPNP_UTIL_H_ #define MINIUPNP_UTIL_H_
/* $Id: upnpc.c,v 1.50 2007/04/26 19:00:10 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -1,21 +1,25 @@
/*******************************************************************************
* libretroshare/src/util: androiddebug.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2016 Gioacchino Mazzurco <gio@eigenlab.org> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
/*
* Redirect plain stdout and stderr to Android debug
* Copyright (C) 2016 Gioacchino Mazzurco <gio@eigenlab.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Inspired by: https://codelab.wordpress.com/2014/11/03/how-to-use-standard-output-streams-for-logging-in-android-apps/ // Inspired by: https://codelab.wordpress.com/2014/11/03/how-to-use-standard-output-streams-for-logging-in-android-apps/

View File

@ -1,27 +1,24 @@
/*******************************************************************************
/* * libretroshare/src/util: contentvalue.cc *
* util/contentvalue.cc, key val container * *
* * libretroshare: retroshare core library *
* Copyright 2012 Christopher Evi-Parker * *
* * Copyright 2012 Christopher Evi-Parker <retroshare@lunamutt.com> *
* This library is free software; you can redistribute it and/or * *
* modify it under the terms of the GNU Library General Public * This program is free software: you can redistribute it and/or modify *
* License Version 2 as published by the Free Software Foundation. * it under the terms of the GNU Lesser General Public License as *
* * published by the Free Software Foundation, either version 3 of the *
* This library is distributed in the hope that it will be useful, * License, or (at your option) any later version. *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * This program is distributed in the hope that it will be useful, *
* Library General Public License for more details. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* You should have received a copy of the GNU Library General Public * GNU Lesser General Public License for more details. *
* License along with this library; if not, write to the Free Software * *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * You should have received a copy of the GNU Lesser General Public License *
* USA. * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* * *
* Please report all bugs and problems to "retroshare@lunamutt.com". *******************************************************************************/
*
*/
#include <iostream> #include <iostream>
#include <memory.h> #include <memory.h>

View File

@ -1,29 +1,27 @@
/*******************************************************************************
* libretroshare/src/util: contentvalue.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2012 Christopher Evi-Parker <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef CONTENTVALUE_H #ifndef CONTENTVALUE_H
#define CONTENTVALUE_H #define CONTENTVALUE_H
/*
* util/contentvalue.h, key val container
*
* Copyright 2012 Christopher Evi-Parker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include <inttypes.h> #include <inttypes.h>
#include <string> #include <string>
#include <map> #include <map>

View File

@ -1,21 +1,25 @@
/*******************************************************************************
* libretroshare/src/util: cxx11retrocompat.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2017 Gioacchino Mazzurco <gio@eigenlab.org> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
/*
* RetroShare
* Copyright (C) 2017 Gioacchino Mazzurco <gio@eigenlab.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef __GNUC__ #ifdef __GNUC__
# define GCC_VERSION (__GNUC__*10000+__GNUC_MINOR__*100+__GNUC_PATCHLEVEL__) # define GCC_VERSION (__GNUC__*10000+__GNUC_MINOR__*100+__GNUC_PATCHLEVEL__)

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: dnsresolver.cc *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2017 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#include "dnsresolver.h" #include "dnsresolver.h"
#include "pqi/pqinetwork.h" #include "pqi/pqinetwork.h"

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: dnsresolver.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2017 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
#include "pqi/pqinetwork.h" #include "pqi/pqinetwork.h"

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: extaddrfinder.cc *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2017 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#include "extaddrfinder.h" #include "extaddrfinder.h"
#include "pqi/pqinetwork.h" #include "pqi/pqinetwork.h"

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: extaddrfinder.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2017 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
#include <list> #include <list>

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: folderiterator.cc *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2017 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#include <dirent.h> #include <dirent.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: folderiterator.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2017 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef FOLDERITERATOR_H #ifndef FOLDERITERATOR_H
#define FOLDERITERATOR_H #define FOLDERITERATOR_H

View File

@ -1,62 +0,0 @@
/**
* pugixml parser - version 1.0
* --------------------------------------------------------
* Copyright (C) 2006-2010, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
* Report bugs and download new versions at http://pugixml.org/
*
* This library is distributed under the MIT License. See notice at the end
* of this file.
*
* This work is based on the pugxml parser, which is:
* Copyright (C) 2003, by Kristen Wegner (kristen@tima.net)
*/
#ifndef HEADER_PUGICONFIG_HPP
#define HEADER_PUGICONFIG_HPP
// Uncomment this to enable wchar_t mode
// #define PUGIXML_WCHAR_MODE
// Uncomment this to disable XPath
// #define PUGIXML_NO_XPATH
// Uncomment this to disable STL
// Note: you can't use XPath with PUGIXML_NO_STL
// #define PUGIXML_NO_STL
// Uncomment this to disable exceptions
// Note: you can't use XPath with PUGIXML_NO_EXCEPTIONS
// #define PUGIXML_NO_EXCEPTIONS
// Set this to control attributes for public classes/functions, i.e.:
// #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
// #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
// #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
// In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead
#endif
/**
* Copyright (c) 2006-2010 Arseny Kapoulkine
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: radix32.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2015 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RADIX32_H #ifndef RADIX32_H
#define RADIX32_H #define RADIX32_H

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: radix64.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2015 Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
#include <string> #include <string>

View File

@ -1,26 +1,24 @@
/*******************************************************************************
/* * libretroshare/src/util: retrodb.cc *
* RetroShare : RetroDb functionality * *
* * libretroshare: retroshare core library *
* Copyright 2012-2013 Christopher Evi-Parker * *
* * Copyright 2012 Christopher Evi-Parker <retroshare@lunamutt.com> *
* This library is free software; you can redistribute it and/or * *
* modify it under the terms of the GNU Library General Public * This program is free software: you can redistribute it and/or modify *
* License Version 2 as published by the Free Software Foundation. * it under the terms of the GNU Lesser General Public License as *
* * published by the Free Software Foundation, either version 3 of the *
* This library is distributed in the hope that it will be useful, * License, or (at your option) any later version. *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * This program is distributed in the hope that it will be useful, *
* Library General Public License for more details. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* You should have received a copy of the GNU Library General Public * GNU Lesser General Public License for more details. *
* License along with this library; if not, write to the Free Software * *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * You should have received a copy of the GNU Lesser General Public License *
* USA. * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* * *
* Please report all bugs and problems to "retroshare@lunamutt.com". *******************************************************************************/
*
*/
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>

View File

@ -1,29 +1,27 @@
/*******************************************************************************
* libretroshare/src/util: retrodb.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2012 Christopher Evi-Parker <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RSSQLITE_H #ifndef RSSQLITE_H
#define RSSQLITE_H #define RSSQLITE_H
/*
* RetroShare : RetroDb functionality
*
* Copyright 2012 Christopher Evi-Parker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifdef NO_SQLCIPHER #ifdef NO_SQLCIPHER
#include <sqlite3.h> #include <sqlite3.h>
#else #else

View File

@ -1,34 +0,0 @@
/*
* libretroshare/src/utils: rscompress.h
*
* Basic memory chunk compression, based on openpgp-sdk
*
* Copyright 2013 by Cyril Soler
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "csoler@users.sourceforge.net".
*
*/
#pragma once
class RsCompress
{
public:
static bool compress_memory_chunk(const uint8_t *input_mem,const uint32_t input_size,uint8_t *& output_mem,uint32_t& output_size) ;
static bool uncompress_memory_chunk(const uint8_t *input_mem,const uint32_t input_size,uint8_t *& output_mem,uint32_t& output_size) ;
};

View File

@ -1,26 +1,24 @@
/* /*******************************************************************************
* RetroShare : RetroDb functionality * libretroshare/src/util: rsbdbind.cc *
* * *
* Copyright 2013 Christopher Evi-Parker * libretroshare: retroshare core library *
* * *
* This library is free software; you can redistribute it and/or * Copyright 2013 Christopher Evi-Parker <retroshare@lunamutt.com> *
* modify it under the terms of the GNU Library General Public * *
* License Version 2 as published by the Free Software Foundation. * This program is free software: you can redistribute it and/or modify *
* * it under the terms of the GNU Lesser General Public License as *
* This library is distributed in the hope that it will be useful, * published by the Free Software Foundation, either version 3 of the *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * License, or (at your option) any later version. *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * *
* Library General Public License for more details. * This program is distributed in the hope that it will be useful, *
* * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* You should have received a copy of the GNU Library General Public * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* License along with this library; if not, write to the Free Software * GNU Lesser General Public License for more details. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. * You should have received a copy of the GNU Lesser General Public License *
* * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Please report all bugs and problems to "retroshare@lunamutt.com". * *
* *******************************************************************************/
*/
#include "rsdbbind.h" #include "rsdbbind.h"
RsDoubleBind::RsDoubleBind(double value, int index) RsDoubleBind::RsDoubleBind(double value, int index)

View File

@ -1,29 +1,27 @@
/*******************************************************************************
* libretroshare/src/util: rsbdbind.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2013 Christopher Evi-Parker <retroshare@lunamutt.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RSDBBIND_H_ #ifndef RSDBBIND_H_
#define RSDBBIND_H_ #define RSDBBIND_H_
/*
* RetroShare : RetroDb functionality
*
* Copyright 2013 Christopher Evi-Parker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include <string> #include <string>
#include <inttypes.h> #include <inttypes.h>

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* "$Id: pqidebug.cc,v 1.6 2007-02-18 21:46:49 rmf24 Exp $" * libretroshare/src/util: rsdebug.cc *
* * *
* 3P/RS network interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2008 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "util/rsdebug.h" #include "util/rsdebug.h"
#include "util/rsthreads.h" #include "util/rsthreads.h"

View File

@ -1,29 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/util: rsdebug.h * libretroshare/src/util: rsdebug.h *
* * *
* Debug interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2008 by Robert Fernie. * Copyright 2004-2008 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
/* Moved from pqi/ to util/ so it can be used more generally. /* Moved from pqi/ to util/ so it can be used more generally.
*/ */

View File

@ -1,21 +1,25 @@
/*******************************************************************************
* libretroshare/src/util: rsdebug.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright (C) 2016 Gioacchino Mazzurco <gio@eigenlab.org> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
/*
* RetroShare deprecation macros
* Copyright (C) 2016 Gioacchino Mazzurco <gio@eigenlab.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define RS_DEPRECATED __attribute__((__deprecated__)) # define RS_DEPRECATED __attribute__((__deprecated__))

View File

@ -1,28 +1,24 @@
/*******************************************************************************
/* * libretroshare/src/util: rsdir.cc *
* "$Id: rsdir.cc,v 1.1 2007-02-19 20:08:30 rmf24 Exp $" * *
* * libretroshare: retroshare core library *
* RetroShare C++ Interface. * *
* * Copyright 2004-2007 by Robert Fernie <retroshare@lunamutt.com> *
* Copyright 2004-2007 by Robert Fernie. * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Lesser General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 2 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Lesser General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
// Includes for directory creation. // Includes for directory creation.
#include <sys/types.h> #include <sys/types.h>

View File

@ -1,29 +1,24 @@
/*******************************************************************************
/* * libretroshare/src/util: rsdir.h *
* "$Id: rsdir.h,v 1.1 2007-02-19 20:08:30 rmf24 Exp $" * *
* * libretroshare: retroshare core library *
* RetroShare C++ Interface. * *
* * Copyright 2004-2007 by Robert Fernie <retroshare@lunamutt.com> *
* Copyright 2004-2007 by Robert Fernie. * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Lesser General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 2 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Lesser General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef RSUTIL_DIRFNS_H #ifndef RSUTIL_DIRFNS_H
#define RSUTIL_DIRFNS_H #define RSUTIL_DIRFNS_H

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/util: rsdiscspace.cc * libretroshare/src/util: rsdiscspace.cc *
* * *
* Universal Networking Header for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2010-2010 by Cyril Soler. * Copyright 2010-2010 by Cyril Soler <csoler@users.sourceforge.net> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "csoler@users.sourceforge.net".
*
*/
#include <iostream> #include <iostream>
#include <stdexcept> #include <stdexcept>
#include <time.h> #include <time.h>

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/util: rsdiscspace.h * libretroshare/src/util: rsdiscspace.h *
* * *
* Universal Networking Header for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2010-2010 by Cyril Soler. * Copyright 2010-2010 by Cyril Soler <csoler@users.sourceforge.net> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "csoler@users.sourceforge.net".
*
*/
#pragma once #pragma once
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,3 +1,25 @@
/*******************************************************************************
* libretroshare/src/util: rsinitedptr.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2010-2010 by Retroshare Team <retroshare.team@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
/** /**
helper class to store a pointer helper class to store a pointer

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* libretroshare/src/util: rsmemcache.h * libretroshare/src/util: rsmemcache.h *
* * *
* Identity interface for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2012-2012 by Robert Fernie. * Copyright 2012-2012 by Robert Fernie <retroshare@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2.1 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef RS_UTIL_MEM_CACHE #ifndef RS_UTIL_MEM_CACHE
#define RS_UTIL_MEM_CACHE #define RS_UTIL_MEM_CACHE

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: rsmemory.cc *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2012-2012 by Cyril Soler <csoler@users.sourceforge.net> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#include "util/rsmemory.h" #include "util/rsmemory.h"
void *rs_malloc(size_t size) void *rs_malloc(size_t size)

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* libretroshare/src/util: rsmemory.h *
* *
* libretroshare: retroshare core library *
* *
* Copyright 2012-2012 by Cyril Soler <csoler@users.sourceforge.net> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#pragma once #pragma once
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,28 +1,25 @@
/* /*******************************************************************************
* libretroshare/src/util: rsnet.cc * libretroshare/src/util: rsnet.cc *
* * *
* Universal Networking Header for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2007-2008 by Robert Fernie. * Copyright 2004-2006 Robert Fernie <retroshare@lunamutt.com> *
* Copyright (C) 2015-2018 Gioacchino Mazzurco <gio@eigenlab.org> * Copyright 2015-2018 Gioacchino Mazzurco <gio@eigenlab.org> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "util/rsnet.h" #include "util/rsnet.h"
#include "util/rsthreads.h" #include "util/rsthreads.h"

View File

@ -1,29 +1,25 @@
/* /*******************************************************************************
* libretroshare/src/util: rsnet.h * libretroshare/src/util: rsnet.h *
* * *
* Universal Networking Header for RetroShare. * libretroshare: retroshare core library *
* * *
* Copyright 2004-2006 by Robert Fernie. * Copyright 2004-2006 Robert Fernie <retroshare@lunamutt.com> *
* Copyright (C) 2015-2018 Gioacchino Mazzurco <gio@eigenlab.org> * Copyright 2015-2018 Gioacchino Mazzurco <gio@eigenlab.org> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Lesser General Public License as *
* License Version 2 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* * GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Lesser General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef RS_UNIVERSAL_NETWORK_HEADER #ifndef RS_UNIVERSAL_NETWORK_HEADER
#define RS_UNIVERSAL_NETWORK_HEADER #define RS_UNIVERSAL_NETWORK_HEADER

View File

@ -1,28 +1,24 @@
/*******************************************************************************
/* * libretroshare/src/util: rsprint.cc *
* libretroshare/src/util: rsprint.cc * *
* * libretroshare: retroshare core library *
* RetroShare Utilities * *
* * Copyright 2008-2008 Robert Fernie <retroshare@lunamutt.com> *
* Copyright 2008 by Robert Fernie. * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Lesser General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 2 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Lesser General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#include "util/rsprint.h" #include "util/rsprint.h"
#include "util/rsstring.h" #include "util/rsstring.h"

View File

@ -1,30 +1,24 @@
/*******************************************************************************
/* * libretroshare/src/util: rsprint.h *
* libretroshare/src/util: rsprint.h * *
* * libretroshare: retroshare core library *
* RetroShare Utilities * *
* * Copyright 2008-2008 Robert Fernie <retroshare@lunamutt.com> *
* Copyright 2008 by Robert Fernie. * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Lesser General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 2 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Lesser General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef RSUTIL_PRINTFNS_H #ifndef RSUTIL_PRINTFNS_H
#define RSUTIL_PRINTFNS_H #define RSUTIL_PRINTFNS_H