Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.658.937 Times

Socket6 0.19

  Date Added: January 02, 2010  |  Visits: 516

Socket6

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



Socket6 is a Perl module for IPv6 related part of the C socket.h defines and structure manipulators. SYNOPSIS use Socket; use Socket6; @res = getaddrinfo(hishost.com, daytime, AF_UNSPEC, SOCK_STREAM); $family = -1; while (scalar(@res) >= 5) { ($family, $socktype, $proto, $saddr, $canonname, @res) = @res; ($host, $port) = getnameinfo($saddr, NI_NUMERICHOST | NI_NUMERICSERV); print STDERR "Trying to connect to $host port port $port...n"; socket(Socket_Handle, $family, $socktype, $proto) || next; connect(Socket_Handle, $saddr) && last; close(Socket_Handle); $family = -1; } if ($family != -1) { print STDERR "connected to $host port port $portn"; } else { die "connect attempt failedn"; } This module provides glue routines to the various IPv6 functions. If you use the Socket6 module, be sure to specify "use Socket" as well as "use Socket6". Functions supplied are: inet_pton FAMILY, TEXT_ADDRESS This function takes an IP address in presentation (or string) format and converts it into numeric (or binary) format. The type of IP address conversion (IPv4 versus IPv6) is controlled by the FAMILY argument. inet_ntop FAMILY, BINARY_ADDRESS This function takes an IP address in numeric (or binary) format and converts it into presentation (or string) format The type of IP address conversion (IPv4 versus IPv6) is controlled by the FAMILY argument. pack_sockaddr_in6 PORT, ADDR This function takes two arguments: a port number, and a 16-octet IPv6 address structure (as returned by inet_pton()). It returns the sockaddr_in6 structure with these arguments packed into their correct fields, as well as the AF_INET6 family. The other fields are not set and their values should not be relied upon. pack_sockaddr_in6_all PORT, FLOWINFO, ADDR, SCOPEID This function takes four arguments: a port number, a 16-octet IPv6 address structure (as returned by inet_pton), any special flow information, and any specific scope information. It returns a complete sockaddr_in6 structure with these arguments packed into their correct fields, as well as the AF_INET6 family. unpack_sockaddr_in6 NAME This function takes a sockaddr_in6 structure (as returned by pack_sockaddr_in6()) and returns a list of of two elements: the port number and the 16-octet IP address. This function will croak if it determines it has not been passed an IPv6 structure. unpack_sockaddr_in6_all NAME This function takes a sockaddr_in6 structure (as returned by pack_sockaddr_in6()) and returns a list of of four elements: the port number, the flow information, the 16-octet IP address, and the scope information. This function will croak if it determines it has not been passed an IPv6 structure. gethostbyname2 HOSTNAME, FAMILY getaddrinfo NODENAME, SERVICENAME, [FAMILY, SOCKTYPE, PROTOCOL, FLAGS] This function converts node names to addresses and service names to port numbers. If the NODENAME argument is not a false value, then a nodename to address lookup is performed; otherwise a service name to port number lookup is performed. At least one of NODENAME and SERVICENAME must have a true value. If the lookup is successful, a list consisting of multiples of five elements is returned. Each group of five elements consists of the address family, socket type, protocol, 16-octet IP address, and the canonical name (undef if the node name passed is already the canonical name). The arguments FAMILY, SOCKTYPE, PROTOCOL, and FLAGS are all optional. This function will croak if it determines it has not been passed an IPv6 structure. If the function returns an error value, the string version of that error will be returned as a single scalar. getnameinfo NAME, [FLAGS] This function takes a socket address structure and returns either a node or service name. The optional FLAGS argument controls what kind of lookup is performed. getipnodebyname HOST, [FAMILY, FLAGS] This function takes either a node name or an IP address string and performs a lookup on that name (or conversion of the string). It returns a list of five elements: the canonical host name, the address family, the length in octets of the IP addresses returned, a reference to a list of IP address structures, and a reference to a list of aliases for the host name. The arguments FAMILY and FLAGS are optional. Note: This function does not handle IPv6 scope identifiers, and should be used with care. And, this function was deprecated in RFC3493. The getnameinfo function should be used instead. getipnodebyaddr FAMILY, ADDRESS This function takes an IP address family and an IP address structure and performs a reverse lookup on that address. It returns a list of five elements: the canonical host name, the address family, the length in octets of the IP addresses returned, a reference to a list of IP address structures, and a reference to a list of aliases for the host name. Note: This function does not handle IPv6 scope identifiers, and should be used with care. And, this function was deprecated in RFC3493. The getaddrinfo function should be used instead. gai_strerror ERROR_NUMBER This function returns a string corresponding to the error number passed in as an argument. in6addr_any This function returns the 16-octet wildcard address. in6add_loopback This function returns the 16-octet loopback address..

Requirements: No special requirements
Platforms: Linux
Keyword: Af Family Flags Function Ip Address It Returns List Of Nodename Perl Module Port Port Number Reference To Structure
Users rating: 0/10

License: Freeware Size: 55.3 KB
USER REVIEWS
More Reviews or Write Review


SOCKET6 RELATED
Productivity  -  IP Address Checker 1.0.0.0
What Is An IP Address? A unique string of numbers separated by periods that identifies each computer attached to the Internet. Any machine connected to the Internet has an IP address: Xbox , phones, fax machines etc... In every case, the IP...
1024 KB  
Networking Tools  -  Router IP Address 1.0
Router IP Address is a small utility for discovering the dynamic IP address assigned by your Internet Service Provider (ISP) when you have a router connecting several computers to a single internet connection (cable modem, DSL, or telephone modem).
 
Security Tools  -  IPFetcher 2.0
IPFetcher can potentialy locate the PC's physical location if it is stolen. The program sends it's external IP-Address on a schedule you set to your mail and/or a log on a FTP server. It also sends it when the PC is started. The IP-address is...
1.34 MB  
Modules  -  IP Address Collecter 1.0
Collects the purchasers IP address and stores in the database. Creates a new column in adminorder.php so the Store Owner can easily see the IP address.
 
Modules  -  IP Address Displayer 1.0
You can add this code to any pages you want and to any where you see fit to your website (on the center, up, down) and this code simply displays the user's IP Address on the page and nothing else.Complete Package.
 
Networking  -  IP address conversion functions 1.0
This script allows you to convert dotted-quad IP addresses to long integer and back, get network and host portions from an IP address.
 
Networking  -  Get the IP address of a network interface 1.0
This script uses the Linux SIOCGIFADDR ioctl to find the IP address associated with a network interface, given the name of that interface, e.g. "eth0". The address is returned as a string containing a dotted quad.
 
DNS Tools  -  ipAddress 2.51.2
When you use the internet, your computer has a unique number which identifies your computer to other computers on the internet. This unique number is known as the computer's IP (Internet Protocol) Address. For most people, when they connect to...
1.29 MB  
Screen Savers  -  IPToLocation 1.0
IPToLocation is a windows desktop gadget tool used to find out the geo-graphical location associated with an IP Address. It includes detailed information such as the Country, State, City, Metro, Zip or Postal Code, the latitude and the logitude of...
21 KB  
Network Monitors  -  YourWanIP 1.2
YourWanIP is a small discrete application. Its purpose is to display your current internet IP, and inform you if it changes. If you want to incorporate the WAN ip into your own programs or scripts using C#, VB.net, Javascript, VB Script or...
177 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB