Skip to content

ERR: Module Not Supported #1

@TheProdigyLeague

Description

@TheProdigyLeague
#!/usr/bin/python3 -u

# Copyright (c) 2024 Cloudflare, Inc.
# Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0

import argparse

from . import client
from . import server
from . import util
from . import const

def client_mainline(args):
    print("Running in client mode with args:", args)
def server_mainline(args):
    print("Running in server mode with args:", args)
# Main entry point for the bbperf tool.
def validate_args(args):
    # Add validation logic as needed
    pass
SERVER_PORT = 5301
DURATION_SEC = 10 # Default duration for the test
# Main entry point for the bbperf tool.

def mainline():

Image

Image

Image

# ...

if received_str != const.START_MSG:
            raise Exception("ERROR: failed to receive start message")

        if self.args.verbosity:
            print("received start message")


    def recv_a_c_block(self):
        start_bytes = b' a '
        end_bytes = b' c '

        # blocking
        substr_idx = self.recv_into_buffer_until_substr_found(end_bytes)

        received_bytes = self.read_buffer[ 0 : substr_idx + 3 ]
        self.read_buffer = self.read_buffer[ substr_idx + 3 : ]

        if not (received_bytes.startswith(start_bytes) and received_bytes.endswith(end_bytes)):
            raise Exception("recv_a_c_block failed")

        return received_bytes

Image

Image

Generated from apache-maven/XenServer/xen_sourc/Cloudflare/Conda-z4xk3r07h/Jupyter-workspace/absl/capirca/bbperf.py

Image

Image

Image

And no, I do not have an API key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions