Re: PERL, Domain Sockets & Datagrams.
by Artur Silveira da Cunha other posts by this author
Dec 4 2000 5:05AM messages near this date
PERL, Domain Sockets & Datagrams.
|
Re: [Perl-AI]ADMIN: List Homes
You can go at my web site http://asilveira.dyndns.org and click on CVS,
you fall in my cvsweb where you can extract the sources of my framework
to create snmp agents, it is pure Perl. You will find how to open
sockets in server mode and how to use them in client mode. To server
mode look in snmpRAD.pm or snmptrapd, concerning client mode look in
snmpinfo or snmpinfo.
You can try also with cvs checkout with user "anonymous" and password
"cvs" to extract directly all the contents.
Sorry about documentation, I must write it in english, actually it is
partially in french, before to put the modules in CPAN.
Artur
"Daniel L. Needles" wrote:
> Hello, I'm trying to create a PERL Berkeley Domain Sockets program
> using Datagrams using either IO::Socket::Unix or Socket. I've
> followed the example in Perl Cookbook section 17.6 pg 617 but it fails
> due to unrecognizing "Listen=>5" parm to IO::Socket::UNIX->new().
> WIthout this option the special file was not created. I checked
> permissions and ran the program as root. Still it failed. Then I
> tryied the Socket example on pg 617 switching between SOCK_STREAM to
> SOCK_DGRAM also fails. I then tried the perlipc.html examples.
> Again, these did not work with Berkelely sockets. Then I searched the
> net and couldn't find a single example of UDP like Berkeley sockets in
> PERL. Then I tried to find documentation on these commands - again
> nothing for Berkeley sockets. In a final desparate attempt I messed
> around with the dozen or so programs I found to no avail. Does anyone
> have any documentation or examples of UDP like Berkeley sockets
> client/server programs that work? (I'm open to example in PERL or C
> at this point) Thanks,Daniel L. Needles
--
Artur Silveira da Cunha
email: Artur.Silveira@[...].com
REZO+
Tel: 33 1 44 23 02 61, Fax: 33 1 44 23 94 45
http://asilveira.dyndns.org
NOOS/Cybercable: lisez bien le contrat et puis... dechirez-le.
Attachments:
unknown1
Thread:
Daniel L. Needles
Artur Silveira da Cunha
|