GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  POSIX::GETPEERNAME (3)

.ds Aq ’

NAME

POSIX::getpeername - provides getpeername(2)

CONTENTS

SYNOPSIS



    use POSIX::getpeername;
    use Socket;

    my $ret = POSIX::getpeername::_getpeername($fd, my $addr);
    die $! if $ret < 0;
    my ($peer_port, $peer_iaddr) = sockaddr_in($addr);



DESCRIPTION

POSIX::getpeername provides getpeername(2). perl’s core getpeername needs a open file handle. POSIX::getpeername allows you to get peername from sockfd.

RETURN VALUES

The _getpeername() function returns the value 0 if successful; otherwise the value -1 is returned and set errno to $!

SEE ALSO

POSIX::Socket, Socket

LICENSE

Copyright (C) Masahiro Nagano.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Masahiro Nagano <kazeburo@gmail.com>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 POSIX::GETPEERNAME (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.