From f377eb9ca26fc1d476938b441bb256837bbee4f5 Mon Sep 17 00:00:00 2001 From: SilentSand Date: Thu, 25 Jul 2013 21:45:56 -0400 Subject: [PATCH] Licensing Added the GPLv3 license to some files in addition to fixing some comments at the beginning of the files. --- core/DHT.c | 46 ++++++++--------- core/DHT.h | 43 ++++++++-------- core/Lossless_UDP.c | 44 ++++++++--------- core/Lossless_UDP.h | 43 ++++++++-------- core/Messenger.c | 43 ++++++++-------- core/Messenger.h | 45 ++++++++--------- core/friend_requests.c | 17 +++++++ core/friend_requests.h | 17 +++++++ core/net_crypto.c | 49 +++++++++---------- core/net_crypto.h | 42 ++++++++-------- core/network.c | 43 ++++++++-------- core/network.h | 43 ++++++++-------- other/DHT_bootstrap.c | 19 +++++++ .../DHT_bootstrap_daemon.c | 18 +++++++ testing/DHT_cryptosendfiletest.c | 19 +++++++ testing/DHT_sendfiletest.c | 18 +++++++ testing/DHT_test.c | 19 +++++++ testing/Lossless_UDP_testclient.c | 18 +++++++ testing/Lossless_UDP_testserver.c | 18 +++++++ testing/Messenger_test.c | 19 ++++++- testing/nTox.c | 23 +++++++++ testing/nTox.h | 22 +++++++++ 22 files changed, 442 insertions(+), 226 deletions(-) diff --git a/core/DHT.c b/core/DHT.c index 58cffdba..bf506d0b 100644 --- a/core/DHT.c +++ b/core/DHT.c @@ -1,29 +1,25 @@ /* DHT.c -* -* An implementation of the DHT as seen in docs/DHT.txt -* - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ - - - + * + * An implementation of the DHT as seen in docs/DHT.txt + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #include "DHT.h" diff --git a/core/DHT.h b/core/DHT.h index fdb89de6..849bb81f 100644 --- a/core/DHT.h +++ b/core/DHT.h @@ -1,26 +1,25 @@ /* DHT.h -* -* An implementation of the DHT as seen in docs/DHT.txt -* - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ + * + * An implementation of the DHT as seen in docs/DHT.txt + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #ifndef DHT_H diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c index c4c464b6..47d63a71 100644 --- a/core/Lossless_UDP.c +++ b/core/Lossless_UDP.c @@ -1,26 +1,26 @@ -/* Lossless_UDP.c -* -* An implementation of the Lossless_UDP protocol as seen in docs/Lossless_UDP.txt -* - - Copyright (C) 2013 Tox project All Rights Reserved. +/* Lossless_UDP.c + * + * An implementation of the Lossless_UDP protocol as seen in docs/Lossless_UDP.txt + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ /* TODO: clean this file a bit. There are a couple of useless variables to get rid of. */ #include "Lossless_UDP.h" diff --git a/core/Lossless_UDP.h b/core/Lossless_UDP.h index 0f5bb119..4b156301 100644 --- a/core/Lossless_UDP.h +++ b/core/Lossless_UDP.h @@ -1,26 +1,25 @@ /* Lossless_UDP.h -* -* An implementation of the Lossless_UDP protocol as seen in docs/Lossless_UDP.txt -* - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ + * + * An implementation of the Lossless_UDP protocol as seen in docs/Lossless_UDP.txt + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #ifndef LOSSLESS_UDP_H #define LOSSLESS_UDP_H diff --git a/core/Messenger.c b/core/Messenger.c index 042d5325..11613cbb 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -1,26 +1,25 @@ /* Messenger.c -* -* An implementation of a simple text chat only messenger on the tox network core. -* - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ + * + * An implementation of a simple text chat only messenger on the tox network core. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #include "Messenger.h" #define MIN(a,b) (((a)<(b))?(a):(b)) diff --git a/core/Messenger.h b/core/Messenger.h index 6afe84ac..baeaaa0f 100644 --- a/core/Messenger.h +++ b/core/Messenger.h @@ -1,26 +1,27 @@ /* Messenger.h -* -* An implementation of a simple text chat only messenger on the tox network core. -* -* NOTE: All the text in the messages must be encoded using UTF-8 - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - + * + * An implementation of a simple text chat only messenger on the tox network core. + * + * NOTE: All the text in the messages must be encoded using UTF-8 + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ */ diff --git a/core/friend_requests.c b/core/friend_requests.c index 18f0866b..ba3f7535 100644 --- a/core/friend_requests.c +++ b/core/friend_requests.c @@ -2,6 +2,23 @@ * * Handle friend requests. * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ #include "friend_requests.h" diff --git a/core/friend_requests.h b/core/friend_requests.h index de116b33..fb19a709 100644 --- a/core/friend_requests.h +++ b/core/friend_requests.h @@ -2,6 +2,23 @@ * * Handle friend requests. * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ diff --git a/core/net_crypto.c b/core/net_crypto.c index 6536189e..a16537e8 100644 --- a/core/net_crypto.c +++ b/core/net_crypto.c @@ -1,29 +1,28 @@ /* net_crypto.c -* -* Functions for the core network crypto. -* See also: docs/Crypto.txt -* -* NOTE: This code has to be perfect. We don't mess around with encryption. -* - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ + * + * Functions for the core network crypto. + * See also: docs/Crypto.txt + * + * NOTE: This code has to be perfect. We don't mess around with encryption. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #include "net_crypto.h" diff --git a/core/net_crypto.h b/core/net_crypto.h index b497f1fb..0dba0552 100644 --- a/core/net_crypto.h +++ b/core/net_crypto.h @@ -1,26 +1,26 @@ /* net_crypto.h -* -* Functions for the core network crypto. -* - - Copyright (C) 2013 Tox project All Rights Reserved. + * + * Functions for the core network crypto. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ #ifndef NET_CRYPTO_H #define NET_CRYPTO_H diff --git a/core/network.c b/core/network.c index 05dc9962..8c9cd0bd 100644 --- a/core/network.c +++ b/core/network.c @@ -1,26 +1,25 @@ /* network.h -* -* Functions for the core networking. -* - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ + * + * Functions for the core networking. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #include "network.h" diff --git a/core/network.h b/core/network.h index 62169d88..e6bf1a7a 100644 --- a/core/network.h +++ b/core/network.h @@ -1,26 +1,25 @@ /* network.h -* -* Datatypes, functions and includes for the core networking. -* - - Copyright (C) 2013 Tox project All Rights Reserved. - - This file is part of Tox. - - Tox is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Tox 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Tox. If not, see . - -*/ + * + * Datatypes, functions and includes for the core networking. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #ifndef NETWORK_H diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 0bacccd9..9d94fecc 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c @@ -6,6 +6,25 @@ * gcc -O2 -Wall -D VANILLA_NACL -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c ../core/friend_requests.c ../nacl/build/${HOSTNAME%.*}/lib/amd64/{cpucycles.o,libnacl.a,randombytes.o} DHT_bootstrap.c * * gcc -O2 -Wall -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c ../core/friend_requests.c -lsodium DHT_bootstrap.c + * + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ #include "../core/DHT.h" diff --git a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c index 395bd7f2..8e278b28 100644 --- a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c +++ b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c @@ -1,6 +1,24 @@ /* DHT boostrap * * A simple DHT boostrap server for tox - daemon edition. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ #include /* pid_t */ diff --git a/testing/DHT_cryptosendfiletest.c b/testing/DHT_cryptosendfiletest.c index 39a928d2..6aaac677 100644 --- a/testing/DHT_cryptosendfiletest.c +++ b/testing/DHT_cryptosendfiletest.c @@ -15,7 +15,26 @@ * Saves all received data to: received.txt * * EX: ./test 127.0.0.1 33445 filename.txt + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ + #include "../core/network.h" #include "../core/DHT.h" #include "../core/net_crypto.h" diff --git a/testing/DHT_sendfiletest.c b/testing/DHT_sendfiletest.c index 52ee7400..c9865843 100644 --- a/testing/DHT_sendfiletest.c +++ b/testing/DHT_sendfiletest.c @@ -14,6 +14,24 @@ * Saves all received data to: received.txt * * EX: ./test 127.0.0.1 33445 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef filename.txt ABCDEFGHIJKLMNOPQRSTUVWXYZabcdeg + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ #include "../core/network.h" #include "../core/DHT.h" diff --git a/testing/DHT_test.c b/testing/DHT_test.c index e194d06b..80019029 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c @@ -7,7 +7,26 @@ * EX: ./test 127.0.0.1 33445 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA * * The test will then ask you for the id (in hex format) of the friend you wish to add + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ + //#include "../core/network.h" #include "../core/DHT.c" #include "../core/friend_requests.c" diff --git a/testing/Lossless_UDP_testclient.c b/testing/Lossless_UDP_testclient.c index 0c21867d..07ab319b 100644 --- a/testing/Lossless_UDP_testclient.c +++ b/testing/Lossless_UDP_testclient.c @@ -8,6 +8,24 @@ * * Command line arguments are the ip and port to connect and send the file to. * EX: ./testclient 127.0.0.1 33445 filename.txt + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ #include "../core/network.h" diff --git a/testing/Lossless_UDP_testserver.c b/testing/Lossless_UDP_testserver.c index 8043be25..0ed214e9 100644 --- a/testing/Lossless_UDP_testserver.c +++ b/testing/Lossless_UDP_testserver.c @@ -8,6 +8,24 @@ * * Command line argument is the name of the file to save what we recieve to. * EX: ./testserver filename1.txt + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ #include "../core/network.h" diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c index f9215b44..e5da16e9 100644 --- a/testing/Messenger_test.c +++ b/testing/Messenger_test.c @@ -17,7 +17,24 @@ * Or the argument can be the path to the save file. * * EX: ./test Save.bak - * + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ #include "../core/Messenger.h" diff --git a/testing/nTox.c b/testing/nTox.c index 097c73af..87a87007 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -1,3 +1,26 @@ +/* nTox.c + * + * Textual frontend for Tox. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ + #include "nTox.h" #include #include diff --git a/testing/nTox.h b/testing/nTox.h index fbc5d5c0..5a86830f 100644 --- a/testing/nTox.h +++ b/testing/nTox.h @@ -1,3 +1,25 @@ +/* nTox.h + * + *Textual frontend for Tox. + * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * + */ #ifndef NTOX_H #define NTOX_H