1IO::Socket::UNIX(3pm)  Perl Programmers Reference Guide  IO::Socket::UNIX(3pm)
2
3
4

NAME

6       IO::Socket::UNIX - Object interface for AF_UNIX domain sockets
7

SYNOPSIS

9           use IO::Socket::UNIX;
10

DESCRIPTION

12       "IO::Socket::UNIX" provides an object interface to creating and using
13       sockets in the AF_UNIX domain. It is built upon the IO::Socket
14       interface and inherits all the methods defined by IO::Socket.
15

CONSTRUCTOR

17       new ( [ARGS] )
18           Creates an "IO::Socket::UNIX" object, which is a reference to a
19           newly created symbol (see the "Symbol" package). "new" optionally
20           takes arguments, these arguments are in key-value pairs.
21
22           In addition to the key-value pairs accepted by IO::Socket,
23           "IO::Socket::UNIX" provides.
24
25               Type        Type of socket (eg SOCK_STREAM or SOCK_DGRAM)
26               Local       Path to local fifo
27               Peer        Path to peer fifo
28               Listen      Create a listen socket
29
30           If the constructor is only passed a single argument, it is assumed
31           to be a "Peer" specification.
32
33            NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
34
35           As of VERSION 1.18 all IO::Socket objects have autoflush turned on
36           by default. This was not the case with earlier releases.
37
38            NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
39

METHODS

41       hostpath()
42           Returns the pathname to the fifo at the local end
43
44       peerpath()
45           Returns the pathanme to the fifo at the peer end
46

SEE ALSO

48       Socket, IO::Socket
49

AUTHOR

51       Graham Barr. Currently maintained by the Perl Porters.  Please report
52       all bugs to <perlbug@perl.org>.
53
55       Copyright (c) 1996-8 Graham Barr <gbarr@pobox.com>. All rights
56       reserved.  This program is free software; you can redistribute it
57       and/or modify it under the same terms as Perl itself.
58
59
60
61perl v5.16.3                      2013-03-04             IO::Socket::UNIX(3pm)
Impressum