Commit a0b9e219 authored by StevenWdV's avatar StevenWdV

Added TODOs

parent b8793705
......@@ -7,7 +7,7 @@ import sys
import btcp
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
parser = argparse.ArgumentParser()
parser.add_argument("-w", "--window", help="Define bTCP window size", type=int, default=100)
......
......@@ -7,7 +7,7 @@ import sys
import btcp
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
# Handle arguments
parser = argparse.ArgumentParser()
......
......@@ -117,6 +117,8 @@ class _RemoteInit:
# TODO more timeouts
# TODO fast retransmit
# TODO cycle sequence numbers
# TODO? dynamic windows size
class _Stream:
def __init__(self, binding: "Binding", local_port: int,
remote_port: int, remote_udp_addr: Any,
......@@ -514,6 +516,7 @@ class Binding:
self.deb = f"{self.local_udp_addr}: "
logging.debug(self.deb + "Set up binding")
# TODO use more threads to avoid poll
def __background(self) -> None:
poller = select.poll() # Does not work on Windows because Python is stupid (WSAPoll is a thing)
poller.register(self.sock, select.POLLIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment