No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
imp
testing
00-testbuild.sh
Makefile
README.txt
cndb
cndb.c
connection.c
connection.h
const.h
db-empty.txt
db-example.txt
defaults.c
friends.c
globals.h
handler.c
handler.h
im.c
imp.tar
ims.h
main.c
rims
runner.sh
start.sh
txtimc
txtimc.c
types.h
udbase.c
udbase.h
user.c

README.txt

cs154-2015 Project 5 "p5ims": IM Server

This directory should contain the following:

ims.h: Start of header file for the IM server, with declarations of the
  functions which are defined in the constituent source files.  Note how the
  source file is indicated (in a comment) above the declarations of the
  symbols defined in the source file.

globals.c: Some global variables.

udbase.c: Start of implementation of functions to read and write the user
  database; lots for you to fill in here.

basic.c: Start of implementation of functions to start and stop server; lots
  for you to fill in here.

main.c: Start of code for main() function of the "ims" server, which you will
  complete for this project.  This code uses getopt() for handling the
  command-line options and setting some global variables based on these.

imp.tar, imp/: Header and library for protocol strings and protocol messages
   * imp/imp.h: the IM protocol header file
   * imp/libimp.so: a Linux shared library
  ****************************************************************************
  *** By default svn thinks that .so files can be ignored, so you may not  ***
  *** actually have imp/libimp.so. So, RIGHT NOW try: "make". If you get:  ***
  ***   ...                                                                ***
  ***   /usr/bin/ld: cannot find -limp                                     ***
  ***   collect2: ld returned 1 exit status                                ***
  ***   make: *** [ims] Error 1                                            ***
  *** Then you know that imp/libimp.so is missing.  So run:                ***
  *** "tar xvf imp.tar",  verify that you now have imp/libimp.so,          ***
  *** and try "make" again.                                                ***
  ****************************************************************************

Makefile: Starter Makefile for "ims". Please modify as you need, according to
  whatever new source files you add to your project (so that the entirety of
  the server is not in main.c).

00-testbuild.sh: a script you should use to approximate the first step of
  grading your project: making sure that upon getting from svn your source
  files, we can run "make" to create "ims".  This should detect, for example,
  if you've added a new file to the Makefile that hasn't been svn commit'ed.
  ****************************************************************************
  *** The output of running this script should end with "P5IMS OK: build"! ***
  ****************************************************************************
  The distributed source files build fine. You should run 00-testbuild.sh
  once a day while you work, and again right before the deadline.  We cannot
  grade what does not compile.

rims: Reference IM server implementation. Example usage:
     cp db-example.txt db.txt
     ./rims -p 15400 -d db.txt
  and then in another shell:
     ./txtimc -s localhost -p 15400

db-empty.txt: A user database file with no registered users

db-example.txt: An example non-empty user database file

txtimc, txtimc.c: A very simple text-based IM client (Linux executable
txtimc) and its single source file txtimc.c.  Study this to see examples
of the imp library in use.

cndb, cndb.c: An executable (cndb) and its single source file (cndb.c).  This
utility has two purposes.  Supplied with one filename as its command-line
argument, this prints to stdout a canonical (sorted) ordering of users and
their friends.  Supplied with two filenames, it sorts and then compares them,
and reports any differences to stdout.  In both cases, the sorting is done
in-memory; the files on disk are untouched.

README.txt: This file