Skip to content

Commit 7aead25

Browse files
author
Federico Fissore
committed
Re-added license header
1 parent 65c7c67 commit 7aead25

File tree

10 files changed

+220
-110
lines changed

10 files changed

+220
-110
lines changed

linux/bridge/bridge.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
#!/usr/bin/python
22

3-
## Copyright (c) 2013 Arduino LLC. All right reserved.
3+
## This file is part of YunBridge.
44
##
5-
## This library is free software; you can redistribute it and/or
6-
## modify it under the terms of the GNU Lesser General Public
7-
## License as published by the Free Software Foundation; either
8-
## version 2.1 of the License, or (at your option) any later version.
5+
## YunBridge is free software; you can redistribute it and/or modify
6+
## it under the terms of the GNU General Public License as published by
7+
## the Free Software Foundation; either version 2 of the License, or
8+
## (at your option) any later version.
99
##
10-
## This library is distributed in the hope that it will be useful,
10+
## This program is distributed in the hope that it will be useful,
1111
## but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
## Lesser General Public License for more details.
12+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
## GNU General Public License for more details.
1414
##
15-
## You should have received a copy of the GNU Lesser General Public
16-
## License along with this library; if not, write to the Free Software
17-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15+
## You should have received a copy of the GNU General Public License
16+
## along with this program; if not, write to the Free Software
17+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18+
##
19+
## As a special exception, you may use this file as part of a free software
20+
## library without restriction. Specifically, if other files instantiate
21+
## templates or use macros or inline functions from this file, or you compile
22+
## this file and link it with other files to produce an executable, this
23+
## file does not by itself cause the resulting executable to be covered by
24+
## the GNU General Public License. This exception does not however
25+
## invalidate any other reasons why the executable file might be covered by
26+
## the GNU General Public License.
27+
##
28+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1829

1930
import time
2031

linux/bridge/bridgeclient.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
## Copyright (c) 2013 Arduino LLC. All right reserved.
1+
## This file is part of YunBridge.
22
##
3-
## This library is free software; you can redistribute it and/or
4-
## modify it under the terms of the GNU Lesser General Public
5-
## License as published by the Free Software Foundation; either
6-
## version 2.1 of the License, or (at your option) any later version.
3+
## YunBridge is free software; you can redistribute it and/or modify
4+
## it under the terms of the GNU General Public License as published by
5+
## the Free Software Foundation; either version 2 of the License, or
6+
## (at your option) any later version.
77
##
8-
## This library is distributed in the hope that it will be useful,
8+
## This program is distributed in the hope that it will be useful,
99
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
## Lesser General Public License for more details.
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
1212
##
13-
## You should have received a copy of the GNU Lesser General Public
14-
## License along with this library; if not, write to the Free Software
15-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
13+
## You should have received a copy of the GNU General Public License
14+
## along with this program; if not, write to the Free Software
15+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
##
17+
## As a special exception, you may use this file as part of a free software
18+
## library without restriction. Specifically, if other files instantiate
19+
## templates or use macros or inline functions from this file, or you compile
20+
## this file and link it with other files to produce an executable, this
21+
## file does not by itself cause the resulting executable to be covered by
22+
## the GNU General Public License. This exception does not however
23+
## invalidate any other reasons why the executable file might be covered by
24+
## the GNU General Public License.
25+
##
26+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1627

1728
from tcp import TCPJSONClient
1829
from time import sleep

linux/bridge/console.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
## Copyright (c) 2013 Arduino LLC. All right reserved.
1+
## This file is part of YunBridge.
22
##
3-
## This library is free software; you can redistribute it and/or
4-
## modify it under the terms of the GNU Lesser General Public
5-
## License as published by the Free Software Foundation; either
6-
## version 2.1 of the License, or (at your option) any later version.
3+
## YunBridge is free software; you can redistribute it and/or modify
4+
## it under the terms of the GNU General Public License as published by
5+
## the Free Software Foundation; either version 2 of the License, or
6+
## (at your option) any later version.
77
##
8-
## This library is distributed in the hope that it will be useful,
8+
## This program is distributed in the hope that it will be useful,
99
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
## Lesser General Public License for more details.
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
1212
##
13-
## You should have received a copy of the GNU Lesser General Public
14-
## License along with this library; if not, write to the Free Software
15-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
13+
## You should have received a copy of the GNU General Public License
14+
## along with this program; if not, write to the Free Software
15+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
##
17+
## As a special exception, you may use this file as part of a free software
18+
## library without restriction. Specifically, if other files instantiate
19+
## templates or use macros or inline functions from this file, or you compile
20+
## this file and link it with other files to produce an executable, this
21+
## file does not by itself cause the resulting executable to be covered by
22+
## the GNU General Public License. This exception does not however
23+
## invalidate any other reasons why the executable file might be covered by
24+
## the GNU General Public License.
25+
##
26+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1627

1728
from socket import socket, AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR, gethostname
1829
from select import select

linux/bridge/files.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
## Copyright (c) 2013 Arduino LLC. All right reserved.
1+
## This file is part of YunBridge.
22
##
3-
## This library is free software; you can redistribute it and/or
4-
## modify it under the terms of the GNU Lesser General Public
5-
## License as published by the Free Software Foundation; either
6-
## version 2.1 of the License, or (at your option) any later version.
3+
## YunBridge is free software; you can redistribute it and/or modify
4+
## it under the terms of the GNU General Public License as published by
5+
## the Free Software Foundation; either version 2 of the License, or
6+
## (at your option) any later version.
77
##
8-
## This library is distributed in the hope that it will be useful,
8+
## This program is distributed in the hope that it will be useful,
99
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
## Lesser General Public License for more details.
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
1212
##
13-
## You should have received a copy of the GNU Lesser General Public
14-
## License along with this library; if not, write to the Free Software
15-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
13+
## You should have received a copy of the GNU General Public License
14+
## along with this program; if not, write to the Free Software
15+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
##
17+
## As a special exception, you may use this file as part of a free software
18+
## library without restriction. Specifically, if other files instantiate
19+
## templates or use macros or inline functions from this file, or you compile
20+
## this file and link it with other files to produce an executable, this
21+
## file does not by itself cause the resulting executable to be covered by
22+
## the GNU General Public License. This exception does not however
23+
## invalidate any other reasons why the executable file might be covered by
24+
## the GNU General Public License.
25+
##
26+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1627

1728
class Files:
1829
def __init__(self):

linux/bridge/mailbox.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
## Copyright (c) 2013 Arduino LLC. All right reserved.
1+
## This file is part of YunBridge.
22
##
3-
## This library is free software; you can redistribute it and/or
4-
## modify it under the terms of the GNU Lesser General Public
5-
## License as published by the Free Software Foundation; either
6-
## version 2.1 of the License, or (at your option) any later version.
3+
## YunBridge is free software; you can redistribute it and/or modify
4+
## it under the terms of the GNU General Public License as published by
5+
## the Free Software Foundation; either version 2 of the License, or
6+
## (at your option) any later version.
77
##
8-
## This library is distributed in the hope that it will be useful,
8+
## This program is distributed in the hope that it will be useful,
99
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
## Lesser General Public License for more details.
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
1212
##
13-
## You should have received a copy of the GNU Lesser General Public
14-
## License along with this library; if not, write to the Free Software
15-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
13+
## You should have received a copy of the GNU General Public License
14+
## along with this program; if not, write to the Free Software
15+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
##
17+
## As a special exception, you may use this file as part of a free software
18+
## library without restriction. Specifically, if other files instantiate
19+
## templates or use macros or inline functions from this file, or you compile
20+
## this file and link it with other files to produce an executable, this
21+
## file does not by itself cause the resulting executable to be covered by
22+
## the GNU General Public License. This exception does not however
23+
## invalidate any other reasons why the executable file might be covered by
24+
## the GNU General Public License.
25+
##
26+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1627

1728
from tcp import TCPJSONServer
1829
from collections import deque

linux/bridge/packet.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
## Copyright (c) 2013 Arduino LLC. All right reserved.
1+
## This file is part of YunBridge.
22
##
3-
## This library is free software; you can redistribute it and/or
4-
## modify it under the terms of the GNU Lesser General Public
5-
## License as published by the Free Software Foundation; either
6-
## version 2.1 of the License, or (at your option) any later version.
3+
## YunBridge is free software; you can redistribute it and/or modify
4+
## it under the terms of the GNU General Public License as published by
5+
## the Free Software Foundation; either version 2 of the License, or
6+
## (at your option) any later version.
77
##
8-
## This library is distributed in the hope that it will be useful,
8+
## This program is distributed in the hope that it will be useful,
99
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
## Lesser General Public License for more details.
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
1212
##
13-
## You should have received a copy of the GNU Lesser General Public
14-
## License along with this library; if not, write to the Free Software
15-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
13+
## You should have received a copy of the GNU General Public License
14+
## along with this program; if not, write to the Free Software
15+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
##
17+
## As a special exception, you may use this file as part of a free software
18+
## library without restriction. Specifically, if other files instantiate
19+
## templates or use macros or inline functions from this file, or you compile
20+
## this file and link it with other files to produce an executable, this
21+
## file does not by itself cause the resulting executable to be covered by
22+
## the GNU General Public License. This exception does not however
23+
## invalidate any other reasons why the executable file might be covered by
24+
## the GNU General Public License.
25+
##
26+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1627

1728
import tty, termios, select
1829
from contextlib import contextmanager

linux/bridge/processes.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
## Copyright (c) 2013 Arduino LLC. All right reserved.
1+
## This file is part of YunBridge.
22
##
3-
## This library is free software; you can redistribute it and/or
4-
## modify it under the terms of the GNU Lesser General Public
5-
## License as published by the Free Software Foundation; either
6-
## version 2.1 of the License, or (at your option) any later version.
3+
## YunBridge is free software; you can redistribute it and/or modify
4+
## it under the terms of the GNU General Public License as published by
5+
## the Free Software Foundation; either version 2 of the License, or
6+
## (at your option) any later version.
77
##
8-
## This library is distributed in the hope that it will be useful,
8+
## This program is distributed in the hope that it will be useful,
99
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
## Lesser General Public License for more details.
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
1212
##
13-
## You should have received a copy of the GNU Lesser General Public
14-
## License along with this library; if not, write to the Free Software
15-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
13+
## You should have received a copy of the GNU General Public License
14+
## along with this program; if not, write to the Free Software
15+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
##
17+
## As a special exception, you may use this file as part of a free software
18+
## library without restriction. Specifically, if other files instantiate
19+
## templates or use macros or inline functions from this file, or you compile
20+
## this file and link it with other files to produce an executable, this
21+
## file does not by itself cause the resulting executable to be covered by
22+
## the GNU General Public License. This exception does not however
23+
## invalidate any other reasons why the executable file might be covered by
24+
## the GNU General Public License.
25+
##
26+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1627

1728
from subprocess import Popen, PIPE
1829

linux/bridge/sockets.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
## Copyright (c) 2013 Arduino LLC. All right reserved.
1+
## This file is part of YunBridge.
22
##
3-
## This library is free software; you can redistribute it and/or
4-
## modify it under the terms of the GNU Lesser General Public
5-
## License as published by the Free Software Foundation; either
6-
## version 2.1 of the License, or (at your option) any later version.
3+
## YunBridge is free software; you can redistribute it and/or modify
4+
## it under the terms of the GNU General Public License as published by
5+
## the Free Software Foundation; either version 2 of the License, or
6+
## (at your option) any later version.
77
##
8-
## This library is distributed in the hope that it will be useful,
8+
## This program is distributed in the hope that it will be useful,
99
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
## Lesser General Public License for more details.
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
1212
##
13-
## You should have received a copy of the GNU Lesser General Public
14-
## License along with this library; if not, write to the Free Software
15-
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
13+
## You should have received a copy of the GNU General Public License
14+
## along with this program; if not, write to the Free Software
15+
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
##
17+
## As a special exception, you may use this file as part of a free software
18+
## library without restriction. Specifically, if other files instantiate
19+
## templates or use macros or inline functions from this file, or you compile
20+
## this file and link it with other files to produce an executable, this
21+
## file does not by itself cause the resulting executable to be covered by
22+
## the GNU General Public License. This exception does not however
23+
## invalidate any other reasons why the executable file might be covered by
24+
## the GNU General Public License.
25+
##
26+
## Copyright 2013 Arduino LLC (http://www.arduino.cc/)
1627

1728
from socket import AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR, SO_ERROR
1829
from socket import gethostname

0 commit comments

Comments
 (0)