Preview

Pper

Satisfactory Essays
Open Document
Open Document
255 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pper
STRATHMORE UNIVERSITY
FACULTY OF INFORMATION TECHNOLOGY
BACHELOR OF SCIENCE IN TELECOMMUNICATION

DATA NETWORKS DESIGN

REPORT ON THE SERVER AND CLIENT SOCKETS

Fr Machumilane Achilles 068104 SERVER AND CLIENT SOCKETS

This program enables several clients to communicate with the server remotely. In this communication, the program enables the server to broadcast the message from one of the clients together with the IP address and the Port number of the sender to all the clients connected to the server.
The program runs on the server. It contains the server and client sockets. After binding the server socket to the ports it enables the server to listen and wait for connection requests from the clients. The number of clients that can connect to the server is specified in the code. In this program the server could communicate with three clients.
When the client requests for connection by remote access, the server responds with acknowledgement of successful connection and prompts the client to send any message which will be echoed by the server. The server also records and displays the IP address and the Port number of each client that has been connected to it.
When a client sends any message to the server, the server records this message in its buffer, echoes the message back to the client together with the client’s IP address and Port number. The server too, broadcasts the same message together with the IP address and the Port number of the sender to all the clients that are currently connected to the

You May Also Find These Documents Helpful

  • Powerful Essays

    IS3220 FINAL STUDY GUIDE

    • 1708 Words
    • 7 Pages

    To establish a connection, TCP uses a three-way handshake. Before a client attempts to connect with a server, the server must first bind to and listen at a port to open it up for connections: this is called a passive open. Once the passive open is established, a client may initiate an active open. To establish a connection, the three-way (or 3-step) handshake occurs:…

    • 1708 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    Nt1310 Unit 1 Exercise 1

    • 5033 Words
    • 21 Pages

    If not sure of machine IP address, keep the structure member s_addr to INADDR_ANY. Assign a port number between 3000 and 5000 to sin_port. 3) Listen for connections with the listen (sfd, …) system call 4) sfd = Accept a connection with the accept (sfd, …) system call. This call typically blocks until a client connects with the server. 5) Read the filename from the socket by n = read(sfd, buffer, sizeof(buffer)) 6) Open the file by fd = open(buffer) 7) Read the contents of the file by m = read(fd, buffer1, sizeof(buffer1)) 8) Write the file content to socket by write( sfd, buffer1, m) 9) Go to step 7 if m>0 10)…

    • 5033 Words
    • 21 Pages
    Powerful Essays
  • Satisfactory Essays

    Chapter 20 lab

    • 284 Words
    • 2 Pages

    6. Describe the software and protocols used when Max sends an email to Sam on a remote Linux system.…

    • 284 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IT302 Assignment 5.1

    • 308 Words
    • 2 Pages

    g. What is the ability to respond to multiple IPs or names as if the server were multiple servers called?…

    • 308 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The Telnet is an Application Layer protocol that will provide a bidirectional interactive text-orientated communication facility over the Internet or Local Area Networks. It is a client-server protocol that is based on a reliable connection-oriented transport. The user data is interspersed in-band with Telnet control information in an 8-bit data connection over the TCP.…

    • 623 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 7 Vocab Answers

    • 4516 Words
    • 19 Pages

    * client – An application that works on a individual computer which then relies on another piece of equipment to perform operations.…

    • 4516 Words
    • 19 Pages
    Powerful Essays
  • Powerful Essays

    Nt1310 Unit 1

    • 4209 Words
    • 17 Pages

    83) Which process is responsible for establishing a connection between the client and the server?…

    • 4209 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    Router Simulation

    • 331 Words
    • 2 Pages

    9. What numeric port range is commonly used by clients in a client -> server communication session? 0 to 1023…

    • 331 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ISSC 340

    • 275 Words
    • 2 Pages

    Client Component- The client component runs on the client machine, and enables the client to participate on…

    • 275 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Essay

    • 443 Words
    • 2 Pages

    Client/ server computing – is a program that distinguishes relationship between the client and the server. The client will request a service or resource from another program and this is the server. Once the server has fulfilled the client’s request the connection is terminated. Overall a client/server computing is linking to a computer system where a central server supports a number of networked workstations.…

    • 443 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    chapter 1.1 review

    • 368 Words
    • 2 Pages

    8). Which TCP/IP configuration item allows client computers to communicate with other computers that are…

    • 368 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    It 222

    • 395 Words
    • 2 Pages

    2. Which layer of the TCP/IP model processes requests from hosts to make sure a connection is made to the appropriate port? i. Application Layer…

    • 395 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Securing Windows Media

    • 481 Words
    • 2 Pages

    | The Windows Media distribution server uses a port within this UDP In port range to receive data packets from the origin server.…

    • 481 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    j. A computer that accepts requests from computers connected to it and shares resources with those computers.…

    • 419 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A general term for software that is designed to destroy or disrupt data or do other unwanted actions in a computer system.…

    • 1399 Words
    • 6 Pages
    Satisfactory Essays