Skip to content

Commit

Permalink
Updated website
Browse files Browse the repository at this point in the history
  • Loading branch information
borjasotomayor committed Mar 29, 2024
1 parent bc10938 commit 6b99e14
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 19 deletions.
1 change: 1 addition & 0 deletions _static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
Expand Down
2 changes: 1 addition & 1 deletion academic-honesty.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Academic Honesty &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Spring 2024 Course Calendar &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion code-of-conduct.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Code of Conduct for Course Staff &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion getting-help.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Getting Help &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/project1.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 1: chirc &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
11 changes: 8 additions & 3 deletions projects/project1_rubric.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 1 Rubric &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down Expand Up @@ -286,14 +286,14 @@ <h3>Correctness<a class="headerlink" href="#correctness" title="Link to this hea
</ul>
<p><strong>Project 1A and 1B</strong></p>
<ul class="simple">
<li><p>[Major issue] <strong>Not protecting access to shared data structures (list/hash of channels, users, etc.) with a mutex</strong></p></li>
<li><p>[Major issue] <strong>Not protecting access to shared data structures (channels hash table, users hash table, etc.) with a mutex</strong></p></li>
<li><p><strong>Using mutexes to protect access to data structures, but doing so inconsistently</strong> (e.g., locking the mutex only when writing to a data structure, and not when reading).</p></li>
<li><p><strong>Using mutexes to protect access to data structures, but not to socket accesses</strong>. See <a class="reference external" href="project1_tips.html#inadequate-locking">Inadequate locking</a> in the Project 1 tips for more details.</p></li>
<li><p>[Major issue] <strong>Using a Big Fat Lock</strong> (i.e., using a single mutex lock for the entire server).</p></li>
</ul>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>We may update the Project 1A and 1B rubrics further before those projects are assigned.</p>
<p>We may update the Project 1B rubric further before that project is assigned.</p>
</div>
</section>
<section id="design">
Expand All @@ -316,6 +316,11 @@ <h3>Design<a class="headerlink" href="#design" title="Link to this heading">¶</
<li><p><strong>Implementing modules or structs that are already provided to you</strong>: Make sure you
don’t reinvent the wheel: we provide a lot of scaffolding code, and you should make
sure to use the data structures and functions provided to you.</p></li>
<li><p><strong>Not implementing the chirc_connection_send_message function</strong></p></li>
<li><p><strong>Implementing the chirc_connection_send_message function, but using it inconsistently</strong>
e.g., making direct calls to send() from elsewhere in your code. Your code should be
written in such a way that <cite>chirc_connection_send_message</cite> is the only function
in your entire code to call the <cite>send</cite> function (or some sort of <cite>sendall</cite> helper function)</p></li>
<li><p>[Major issue] <strong>Putting all your code inside the chirc_run function</strong>: This is fine
for the Project 1 Warm-up, but not once you move on to Project 1A</p></li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion projects/project1_tips.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 1 Tips &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down Expand Up @@ -218,6 +218,7 @@ <h3>Inadequate locking<a class="headerlink" href="#inadequate-locking" title="Li
<p>In chirc Assigmnent 4, you now have multiple clients connecting to your server, with one thread
per client. So remember: shared data structures have to be protected by locks, and this includes
any socket that multiple threads could write to. POSIX requires system calls to be thread-safe (i.e., the OS itself should guarantee that send() is done atomically). However, even though a call to send() can be thread-safe, you have to account for the fact that send() might not send all your data in one go. So, you still need to gain exclusive access to the socket until a full message has been sent; otherwise, you could see partial messages interleaved by multiple threads.</p>
<p>Beej’s Guide actually provides a handy <a class="reference external" href="https://beej.us/guide/bgnet/html/#sendall">sendall</a> function that you can use to ensure that send() sends all the data you want it to send. You would still need to update this <cite>sendall</cite> function to lock/unlock the socket’s lock.</p>
</section>
</section>
<section id="common-c-issues">
Expand Down
2 changes: 1 addition & 1 deletion projects/project2.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 2: chitcp &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/project2_rubric.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 2 Rubric &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/project2_tips.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 2 Tips &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/project3.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 3: chirouter &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/project3_rubric.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 3 Rubric &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/project3_tips.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project 3 Tips &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/registering_submitting.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Project Registration &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion projects/started.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Projects - Getting Started &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="../_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion syllabus.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<title>Syllabus &#8212; CMSC 23320 - Foundations of Computer Networks</title>

<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/bootstrap-sphinx.css?v=0bf093e7" />
<link rel="stylesheet" type="text/css" href="_static/chiweb.css?v=4e80c602" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
Expand Down

0 comments on commit 6b99e14

Please sign in to comment.