15-440 Project 0 Project 0: Implementing a multi-client echo server Due Thursday, January 30, 2014 at 11:59pm The goal of this assignment is to get up to speed on the Go programming language and to help remind you about the basics of socket programming that you learned in 15-213. In this assignment you will implement a simple multi-client echo server in Go: every message sent by a client should be echoed to all connected clients. Server Characteristics Your multi-client echo server must have the following characteristics:
Due: 7 July 2015
For the first checkpoint, the following code features will be due �
- Stanley Hung and William Liu
- February 4, 2015
Section 2: Processes
PDF: http://cs162.eecs.berkeley.edu/static/hw/hw0.pdf
You have probably been using gcc to compile your programs, but this grows tedious and complicated as the number of files you need to compile increases. You will need to write a Makefile that compiles main.c, wc.c, and map.c. You will also need to write a target check that runs some sort of test that will verify the output of wc and main. (You may do this any way you wish, but you MUST verify that
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
path="." | |
tmp="/tmp/mydir" | |
mkdir -p $tmp | |
chksum() { | |
_filename=$@ | |
_size=$(stat -c %s "$_filename") | |
_hash=$(dd if=$1 bs=1M count=1 2>/dev/null | md5sum | awk '{print $1;}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
################################################################## | |
# | |
# Code on github: https://gist.github.com/thinkhy/11027824 | |
# | |
################################################################## | |
use LWP::Simple; | |
use HTML::LinkExtor; | |
use URI::URL; | |
use URI::Escape; |