-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