Preview

Holiday Assignment(Perl)

Powerful Essays
Open Document
Open Document
1582 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Holiday Assignment(Perl)
Holiday Assignment
-Sockets in PERL
Holiday Assignment
-Sockets in PERL

Submitted to:-
S.S.Paul Sir
Submitted by:-
Rahul Singh
Reg No- 20098023(IT-2)
Submitted to:-
S.S.Paul Sir
Submitted by:-
Rahul Singh
Reg No- 20098023(IT-2) by Rahul Singh
This report is a brief overview of the use of Perl in networking and communicating between servers and clients. It explains sockets and modules associated to them in Perl. Additionally, it also gives a brief idea about a Software Requirement Specification (SRS), its meaning, purpose and contents.

by Rahul Singh
This report is a brief overview of the use of Perl in networking and communicating between servers and clients. It explains sockets and modules associated to them in Perl. Additionally, it also gives a brief idea about a Software Requirement Specification (SRS), its meaning, purpose and contents.

SOCKET PROGRAMMING IN PERL
What is a Socket?
Sockets are a mechanism that allows programs to communicate, either on the same machine or across a network. The way it works is pretty simple: Each machine on a network is identified by some address. In tcp/ip networking a network address implies an IP address. (like 192.168.4.4) Apart from the IP address that specifies a machine, each machine has a number of ports that allow handling multiple connections simultaneously.

How does communication using sockets work?
A program that wishes to receive a connection from another program, asks the operating system to create a socket and bind it to some port. Then the program sits and listens on the socket it has created to receive incoming connections. The other program also creates a socket for communicating with the receiver. The caller needs to specify the IP address and the port number of the receiving end. The two programs may exchange information, each by writing to and reading from the socket it has created.
How do sockets apply to Perl programs?
Perl provides support for the socket API

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

    Mt1310 Unit 7 Essay

    • 1045 Words
    • 5 Pages

    The hardware and software functions of the SS7 protocol are divided into functional abstractions called “levels”. These levels map loosely to the Open Systems Interconnect (OSI) 7 layer model defined by the international standards organisation .…

    • 1045 Words
    • 5 Pages
    Powerful 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
  • Satisfactory Essays

    OMNeT++ was designed to support network simulation on a large scale. It consists of modules that communicate with message passing. The active modules are the simple modules which are written in C++ using the simulation class library. Simple modules can be grouped into compound modules. Messages are sent via connections that span the modules or directly to their destination modules. The simple and compound modules are instances of module types. The user creates a system module as a network module which is a special compound module without gates to the external world. These modules can be reused with the help of model frameworks like INET framework and Mobility framework.…

    • 450 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 3 Lab

    • 290 Words
    • 2 Pages

    A 3-way handshake allows a connection to be created between a client and server. The client sends a SYN requesting a connection to the server, then the server sends a SYN-ACK back to acknowledge the request, then the client send an ACK to acknowledge the connection to the server.…

    • 290 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    TCP/IP network - is the basic communication language or protocol of the Internet. It can also be used as a communications protocol in a private network (either an intranet or an extranet).…

    • 559 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Essay

    • 443 Words
    • 2 Pages

    TCP – TCP stands for “transmission control protocol” and it is the pieces that manages all movement of each data packet between computers. It establishes a connection between the computers. It also acknowledges that each packet have been…

    • 443 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    | Two or more computers connected to each other, that allows you to share files, information and communication between different computers in different locations…

    • 429 Words
    • 2 Pages
    Good 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

    Unit 1 Exercise 1

    • 617 Words
    • 2 Pages

    There is a physical connection running between two computers that want to connect. This is made possible because phone lines that run from houses to switches to other houses that the phone company lets dial to each other. Or another alternative it could be network cables going to hubs and other computers. Also, it could be cable lines running to fiber optic lines, through routers. And lastly it could be radio waves that computers can broadcast and receive.…

    • 617 Words
    • 2 Pages
    Satisfactory Essays
  • Best Essays

    554 Infrastructure

    • 3120 Words
    • 13 Pages

    This course focuses on the managerial level of knowledge and terminology for telecommunications and computer networks. This course covers the concepts and application of the Internet; server and storage architectures; and regulatory considerations.…

    • 3120 Words
    • 13 Pages
    Best 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
  • Powerful Essays

    Ace looked at several server vendors before selecting the Perle Terminal Server. The Perle Terminal Server delivered an integrated multifunction solution for serial and parallel networking applications. It would also cut the cost of ownership and the need for multiple units by acting as a terminal server, remote access server, and modem pool.…

    • 2080 Words
    • 7 Pages
    Powerful Essays

Related Topics