O'Reilly - Network Programming with Perl.pdf

(301 KB) Pobierz
Network Programming
http://kickme.to/tiger/
Network
Programming
with
Perl
<
gbarr@pobox.com
>
Graham Barr
Agenda
Introduction
Properties of a socket
The socket model
TCP server/client
examples
Using UDP
UDP server/client
examples
IO::Socket, with
examples
Find information about
a socket
Types of server
Common problems
Commonly used
network protocols
Case studies
Slide 2
Introduction
Perl provides direct access to the C library routines for
socket communication. Often, arguments and return
values are constants defined in the C header files, or
are data structures which Perl will pass in a packed
binary format.
The Socket module provides these constants and also
many functions for packing and unpacking these data
structures
The IO::Socket module provides a higher level access
to creating a socket
CPAN contains many modules that provide a very high
level access to specific application protocols. e.g.
Net::FTP, Net::SMTP, Net::DNS, etc.
Slide 3
Socket properties
Ä
Ä
Ä
A generic socket has three properties
A type
An address family
A communication protocol
Slide 4
Zgłoś jeśli naruszono regulamin