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
  • 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
  • Powerful Essays

    Ch09 Solutions

    • 1016 Words
    • 5 Pages

    3. How does a client application identify a server application on another computer on the…

    • 1016 Words
    • 5 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

    IT302 assignment 5

    • 356 Words
    • 2 Pages

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

    • 356 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Lot2 Task 1

    • 719 Words
    • 3 Pages

    Each client computer was able to send a large amount of HTTP requests to the web server.…

    • 719 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    3. How does a client app identify a server app on another computer on the network? Transmission Control Protocol (TCP) & Internet Protocol (IP)…

    • 692 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Chapter 5 Quiz

    • 334 Words
    • 5 Pages

    In a client/server network, a network server provides every connected client with an address so it can be found by others on the network.…

    • 334 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 5 Assignment 1

    • 1348 Words
    • 6 Pages

    4. The server accept the connection and to send the data from server to client and vice…

    • 1348 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Nt1110 Unit 3 Assignment

    • 655 Words
    • 3 Pages

    Here, Raspberry Pi will act as a server which will open a socket on a specified port which will wait for the incoming connection from the client machine once the connection is established it will send and receive messages and the connection will termi-nate only when the client side application exits. As mentioned earlier it is similar to a simple chat server where the client ma-chine will send some instructions as messages and the Pi will send acknowledgment or error message as message only. One thing that should be kept in mind here is that in the case of an error the server side code should not terminate. Now from here code can be further divided into five parts i.e.:…

    • 655 Words
    • 3 Pages
    Good 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

    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
  • Powerful Essays

    631 research paper

    • 1926 Words
    • 7 Pages

    How does it comfort remote users to achieve their goal? Focuses on history of PPTP and how Microsoft implemented the protocol in Windows NT 4.0 Structure and message format of PPTP is detailed like PPTP as an extension of PPP is not similar to it. PPTP is the layer2 of OSI model. PPTP secures PPP through encryption and enclosing. PPTP server interfaces on internet and intranet. How PPTP is used as a protection device for data and is safe to transmit sensitive data in an encrypted format (Yates, 1997). Message format and types of messages. All the services which PPTP provides and its working style. Types of deployment in PPTP are discussed. PPTP supports client server model. Technical specification of PPTP is detailed in RFC 2637.…

    • 1926 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    1. A customer calls into the call center to ask a question about setting up a server. The customer wants to know which ports to use to configure the server, where the ports are located, and how to access them. Select the problem statement that characterizes the customer's problem.…

    • 10888 Words
    • 32 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