From 5f9c3026aa1e2799c093c5c858dfa4b0eb53ea47 Mon Sep 17 00:00:00 2001 From: zixuanzh Date: Wed, 31 Oct 2018 19:56:24 +0100 Subject: [PATCH] restructured --- connection/__init__.py | 0 {network => connection}/connection_interface.py | 0 connection/muxed_connection.py | 0 connection/muxed_connection_interface.py | 0 connection/raw_connection.py | 0 connection/raw_connection_interface.py | 0 encrpytion/__init__.py | 0 encrpytion/secio.py | 0 libp2p/__init__.py | 0 libp2p/config.py | 0 libp2p/libp2p.py | 0 muxer/__init__.py | 0 muxer/smux_multiplex.py | 0 muxer/stream_muxer_interface.py | 0 network/network_interface.py | 1 + stream/__init__.py | 0 {network => stream}/stream.py | 0 {network => stream}/stream_interface.py | 0 transport/__init__.py | 0 {network => transport}/tcp.py | 0 {network => transport}/transport_interface.py | 0 21 files changed, 1 insertion(+) create mode 100644 connection/__init__.py rename {network => connection}/connection_interface.py (100%) create mode 100644 connection/muxed_connection.py create mode 100644 connection/muxed_connection_interface.py create mode 100644 connection/raw_connection.py create mode 100644 connection/raw_connection_interface.py create mode 100644 encrpytion/__init__.py create mode 100644 encrpytion/secio.py create mode 100644 libp2p/__init__.py create mode 100644 libp2p/config.py create mode 100644 libp2p/libp2p.py create mode 100644 muxer/__init__.py create mode 100644 muxer/smux_multiplex.py create mode 100644 muxer/stream_muxer_interface.py create mode 100644 stream/__init__.py rename {network => stream}/stream.py (100%) rename {network => stream}/stream_interface.py (100%) create mode 100644 transport/__init__.py rename {network => transport}/tcp.py (100%) rename {network => transport}/transport_interface.py (100%) diff --git a/connection/__init__.py b/connection/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/network/connection_interface.py b/connection/connection_interface.py similarity index 100% rename from network/connection_interface.py rename to connection/connection_interface.py diff --git a/connection/muxed_connection.py b/connection/muxed_connection.py new file mode 100644 index 00000000..e69de29b diff --git a/connection/muxed_connection_interface.py b/connection/muxed_connection_interface.py new file mode 100644 index 00000000..e69de29b diff --git a/connection/raw_connection.py b/connection/raw_connection.py new file mode 100644 index 00000000..e69de29b diff --git a/connection/raw_connection_interface.py b/connection/raw_connection_interface.py new file mode 100644 index 00000000..e69de29b diff --git a/encrpytion/__init__.py b/encrpytion/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/encrpytion/secio.py b/encrpytion/secio.py new file mode 100644 index 00000000..e69de29b diff --git a/libp2p/__init__.py b/libp2p/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/libp2p/config.py b/libp2p/config.py new file mode 100644 index 00000000..e69de29b diff --git a/libp2p/libp2p.py b/libp2p/libp2p.py new file mode 100644 index 00000000..e69de29b diff --git a/muxer/__init__.py b/muxer/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/muxer/smux_multiplex.py b/muxer/smux_multiplex.py new file mode 100644 index 00000000..e69de29b diff --git a/muxer/stream_muxer_interface.py b/muxer/stream_muxer_interface.py new file mode 100644 index 00000000..e69de29b diff --git a/network/network_interface.py b/network/network_interface.py index 7fb01769..a7b6a697 100644 --- a/network/network_interface.py +++ b/network/network_interface.py @@ -28,3 +28,4 @@ class INetwork(ABC): :param *args: one or many multiaddrs to start listening on :return: True if at least one success """ + pass \ No newline at end of file diff --git a/stream/__init__.py b/stream/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/network/stream.py b/stream/stream.py similarity index 100% rename from network/stream.py rename to stream/stream.py diff --git a/network/stream_interface.py b/stream/stream_interface.py similarity index 100% rename from network/stream_interface.py rename to stream/stream_interface.py diff --git a/transport/__init__.py b/transport/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/network/tcp.py b/transport/tcp.py similarity index 100% rename from network/tcp.py rename to transport/tcp.py diff --git a/network/transport_interface.py b/transport/transport_interface.py similarity index 100% rename from network/transport_interface.py rename to transport/transport_interface.py