CN8826 Lab 1 Introduction to environment http://www.cn.ryerson.ca/2009/pod10.html Rules: Login information will be shown for every switch once connected via telnet. Use provided username and password.…
#!/usr/bin/python3 import cse303 # Configure constants and users cse303.indentation = 80 cse303.verbose = cse303.check_args_verbose() alice = cse303.UserConfig(“alice”, “alice_is_awesome”) fakealice = cse303.UserConfig(“alice”, “not_alice_password”) bob = cse303.UserConfig(“bob”,…
#include “../server/concurrenthashtable_impl.h” // Inatantiate the concurrent hash table as a map from ints to ints template class ConcurrentHashTable;
#pragma once #include #include /// protocol.h defines the messages that a client may send, and the responses a /// server will provide. Note that the…
#pragma once #include #include “../common/bytevec.h” #include “../common/protocol.h” #include “storage.h” /// In response to a request for a key, do a reliable send of the contents…
#include #include #include #include // Shouldn’t be needed once everything is working #include #include #include #include “pool.h” using namespace std; /// thread_pool::Internal is the class…
#pragma once #include /// ContextManager is a simple RAII object for ensuring that cleanup code runs /// when a function exits. class ContextManager { ///…
#pragma once #include #include “../common/bytevec.h” #include “storage.h” /// When a new client connection is accepted, this code will run to figure out /// what the…
#pragma once #include #include “../common/bytevec.h” /// AuthTableEntry represents one user stored in the authentication table struct AuthTableEntry { std::string username; // The name of the…
#!/usr/bin/python3 import cse303 # Configure constants and users cse303.indentation = 80 cse303.verbose = cse303.check_args_verbose() alice = cse303.UserConfig(“alice”, “alice_is_awesome”) fakealice = cse303.UserConfig(“alice”, “not_alice_password”) bob = cse303.UserConfig(“bob”,…