Skip to content

Commit 65c7c67

Browse files
author
Federico Fissore
committed
Added license header
1 parent e08b585 commit 65c7c67

File tree

10 files changed

+154
-1
lines changed

10 files changed

+154
-1
lines changed

linux/bridge/bridge.py

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

3+
## Copyright (c) 2013 Arduino LLC. All right reserved.
4+
##
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.
9+
##
10+
## This library is distributed in the hope that it will be useful,
11+
## 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.
14+
##
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
18+
319
import time
420

521
import packet

linux/bridge/bridgeclient.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
116

217
from tcp import TCPJSONClient
318
from time import sleep

linux/bridge/console.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
16+
117
from socket import socket, AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR, gethostname
218
from select import select
319
import utils

linux/bridge/files.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
116

217
class Files:
318
def __init__(self):

linux/bridge/mailbox.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
116

217
from tcp import TCPJSONServer
318
from collections import deque

linux/bridge/packet.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
116

217
import tty, termios, select
318
from contextlib import contextmanager

linux/bridge/processes.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
116

217
from subprocess import Popen, PIPE
318

linux/bridge/sockets.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
16+
117
from socket import AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR, SO_ERROR
218
from socket import gethostname
319
from select import select

linux/bridge/tcp.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
116

217
from socket import socket, AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR, gethostname
318
from select import select

linux/bridge/utils.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
import time
1+
## Copyright (c) 2013 Arduino LLC. All right reserved.
2+
##
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.
7+
##
8+
## This library is distributed in the hope that it will be useful,
9+
## 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.
12+
##
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
216

17+
import time
318

419
def try_bind(socket, address, port, timeout=30):
520
start_time = time.time()

0 commit comments

Comments
 (0)