CSC645/745 Computer Networks: Simple Client and Server Programs

Programming

CSC645/745 COMPUTER NETWORKS

Project 1

1. Goal

The goal of this project is to write simple client and server programs for text

messaging and Internet chatting. The programming language is C and the

operating system is Linux.

2. Instruction

Write a server program and a client program. The server manages a number of

client accounts, each having a username and a password.

Start the server first. When a client process is started, it has a menu for six

functions:

0. Connect to the server

1. Get the user list

2. Send a message

3. Get my messages

4. Initiate a chat with my friend

5. Chat with my friend

These functions allow the client to log onto the server through a TCP connection

using his/her username and password, get the list of other users on the server,

send a text message to another user, check his/her own text messages that were

left by other users, and perform chat with another user.

3. Sample Code

We provide sample code consisting of an “echo” server program and a client

program. The client establishes a TCP connection with the server, and sends a

message to the server, which will echo the message back to the client for display.

Essentially, it gives you a programming template that you can follow to write

your own networking program.

4. Demo

Use the following scenario for demo. The server maintains two client accounts.

One is for Alice, and the other is for Bob. Alice logs onto the server first. She gets

the user list and sees Bob. She sends a text message to Bob. The message carries

Alice’s IP address x and a port number y. After that, Alice selects “4. Initiate a

chat with my friend”, which terminates the TCP connection to the server, and

waits on port y for chatting with Bob. Next, Bob logs onto the server. He logs on

and retrieves his text messages. After seeing Alice’s message, Bob selects “5. Chat

with my friend”, which terminates the TCP connection to the server, and starts a

new TCP connection to Alice on port y. Then, Alice and Bob type in turn, and the

text typed by one will be sent to the other for display.

More details can be found from the demo video posted on iLearn.

5. Submission

Submit one ZIP file consisting of all source files and executables to the regular

submission link on iLearn.

Saint Leo University Nosferatu And Coraline Short Essay

Humanities

Write a short essay (about three pages) in response to ONE of the following. Do not consult outside sources or each other. Work on your own, using Nosferatu and Coraline plus any material in the modules as support. Be sure that you have a solid, defendable thesis statement toward the end of the introduction, which can be brief; focus in on your point quickly. Have a strong, analytic topic sentence that furthers your argument for each paragraph and avoid any sentence-level errors, particularly serious errors such as fused sentences or comma splices. Do NOT summarize; bring up the relevant points from the literature that support your thesis. Pay attention to the author’s language and use quotes to substantiate your claims. Be as specific as you can be. Avoid a thesis that states these two characters are both similar and different, which is very vague. Follow MLA style.

Choose one of the two:

  1. What makes Count Orlok and the Other Mother scary monsters? You might consider what kind of threat they represent and how both drain the lives of their victims.
  2. Both Ellen and Coraline are unexpected heroines who defeat their respective monsters. Compare and contrast how the woman and the girl make their worlds safe. What qualities do the two share in common? Are there important differences?

ignment 4: Special Problems and Challenges and the Future of Policing In America Due Week 10 and worth 200 points Modern law enforcement operations and strategies are driven by best practices in the areas of data collection and manipulation, addressing sp

Business Finance

ignment 4: Special Problems and Challenges and the Future of Policing In America

Due Week 10 and worth 200 points

Modern law enforcement operations and strategies are driven by best practices in the areas of data collection and manipulation, addressing special populations, and preventing organized criminal activities. A tremendous amount of specialization has evolved in today’s sphere of policing, especially among federal, state, and local agencies. Perhaps what is most evident is how the law enforcement agencies of the federal government have retooled to meet today’s challenge of terrorism. Use your textbook, the Internet, and/or the Strayer Library (https://research.strayer.edu) to research credible sources on the aforementioned issues as they relate to law enforcement operations and management.

Write a 6- to 8-page paper in which you:

  • Identify and describe the major functions of the three agencies of the Department of Homeland Security. Of the three agencies, provide a rationale for which agency you feel has the greatest responsibility as it relates to federal law enforcement.
  • Explain the purposes of the Uniform Crime Reports (UCR) and the National Crime Information Center (NCIC). Identify and discuss the various weaknesses related to the accuracy of the Uniform Crime Report (UCR).
  • Describe the major roles of police executives using the Mintzberg model of chief executive officers. Of the executive roles described in the model, provide a rationale for which role you feel is the most important for a chief executive officer’s success.
  • Examine two legislative enactments that are in place to help combat terrorism. Provide your opinion on the effectiveness of these enactments with regard to combatting terrorism.
  • Analyze the problems related to determining the actual numbers of hate crimes and what makes hate crimes different from other crimes.
  • Use at least four quality references including the textbooks. Note: Wikipedia and other websites do not qualify as academic resources.

Your assignment must follow these formatting requirements:

  • Be typed, double-spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references should follow the Strayer Writing Standards (SWS). This format is different than other Strayer University courses. Please take a moment to review the SWS documentation. Check with your professor for any additional instructions.
  • Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length.

The specific course learning outcomes associated with this assignment are:

  • Contrast the organization and administration of federal law enforcement agencies with that of state agencies. Contrast the organization and administration of municipal law enforcement agencies with that of county agencies.
  • Visualize the future of policing in America and identify some of the forces and technologies shaping that future.
  • Use technology and information resources to research issues in law enforcement operations and management.
  • Write clearly and concisely about law enforcement operations and management using proper writing mechanics.

Mountain Belts and the Continental Crust and Geologic Structures

Science

View:

Rocky Mountain Uplift, “Artificial Garnet Schist”, and Strike Slip Demo videos.
To better understand STRIKE and DIP, please view– Strike and Dip


Note: Answers to “short-answer” questions should be no longer than a few sentences.

Note 2: As per instructions (“How to Turn In Assignments”)– make sure that you copy this assignment into a MICROSOFT WORD DOCUMENT, and place your answers below each question…. save it on your computer, and then UPLOAD the assignment using the “SUBMIT ASSIGNMENT” button!

1) Prof Win Means from Albany tries deforming “artificial rocks” in the laboratory– at much lower temperatures, much lower pressures, and over shorter time spans than are associated with real rock deformation in nature. In certain labs, really hi temperatures and pressures can be achieved, but of course, extremely long time spans can never be duplicated.
Look at the images of both the artificial and real quartzites. Answer the following question (explaining your answer):

Is there substantial space between the grains, or should we say that the grains are “interlocking” (minimal space)?

2) Read the sections on folded rocks. Think about why it is that rocks sometimes break (fault) and sometimes bend (fold).
Two Questions,
First, suggest an interesting geologic place to go see folded rocks. Be specific.
Second, explain what sort of geologic environment would enhance folding versus faulting? (In other words, what does it take to get rocks to bend as opposed to break?)

3) Read about “isostasy”—basically, you will find that mountains (in a way) float on the underlying mantle like icebergs float in the ocean. Most mountain ranges have deep “crustal roots” analogous to the fact that we only see the tips of icebergs!

Some mountain ranges, notably the Sierra Nevada and (to some extent) the Rocky Mountains LACK substantial crustal roots.

Question…WHY IS THIS?

4) First, review the different kinds of faults in the chapter on Geologic Structures (in particular the dip-slip types that include normal, reverse, and thrust).

Second, look at the information and figures on the geologic evolution of the southern Appalachians.

Yes, complicated, but in a general sense, what sort of basic dip-slip fault types would you expect to be associated with

a) The various orogenies (No need to be specific with Taconic, Acadian, Alleghenian– just consider “orogenies” in general!)

b) With the Triassic rifting event.

5) Consider a fault like the San Andreas. It is mostly all about side-to-side motion (no up-down motion), and hence we call it a strike-slip fault.

Review in your textbook about releasing bends and restraining bends, AND also check this out (clip and paste into browser)…

NOW…. Consider the bend in the San Andreas Fault, just north of L.A. Below is a schematic view, looking down, i.e. “map-view”.
(This bend is what we call a “right-step” in a right-lateral fault. This is because no matter which direction you are walking, IF you were to walk along the fault, you’d have to take a bend to the right!…. or, ha ha, perhaps drive down the fault, because nobody walks in LA.)

Think about the sort of stress regime exists near the fault line– specifically in the hachured area (angled black lines), and answer the following question:

Is this a region of squeeze (compression) OR a region of pull-apart (extension)? EXPLAIN YOUR ANSWER

Stress regime image


6)
What type of fault would you expect to generate the unusual occurrence of older rocks sitting atop younger rocks:

A) Strike-Slip, B) normal, C) thrust

7A) What sort of rocks would you expect to find in the center of an eroded anticline (or dome)?
Young rocks or Old rocks? Explain WHY you chose young or old.

7B) Look at a picture of a subduction zone. Lots in your textbook!
What sort of fault is this? (thrust/reverse, or strike-slip, or normal?)

8) At the very end of the video “Rocky Mountain Uplift” (see click link at top of assignment), there is an image that shows the location of the numerous individual Laramide Mountain Ranges (rising around 70-40million years ago, and shown as the tan/grey outlines) AND the purple lines that outline the igneous activity of the Colorado Mineral Belt.

First–Is the igneous activity more or less aligned with the mountains OR does it cut across the mountains?
Second– Do all mountain uplifts involve igneous activity? (i.e., Does mountain uplift require magma rising from beneath?)

9) Click on the link above– “Strike Slip Demo” (at top of assignment)

This is a computer model of geomorphic development during fluvial incision with modification by strike slip faulting.

In plain English, that means…It shows how a landscape should evolve, with streams/rivers cutting into the earth, and then with a fault being introduced.

View the animation and answer the following three Questions–
A) Approximately, at what time-stamp in the video does the fault initiate? (How many minutes/seconds into the video)

B) What sort of strike slip fault is shown (pick one of the following)— right-lateral OR left-lateral

C) The video shows a feature known as “stream capture”. What do you think is meant by that term?

10) Change in shape of a rock is referred to as
A) Strain, B) Stress —–choose A or B.