Sponsored Content
Top Forums Programming Host to IP Source Code in C - Questions! Please Help Post 302246604 by MrC on Tuesday 14th of October 2008 03:25:35 AM
Old 10-14-2008
If the library name is not listed in

man getaddrinfo

you can dump the symbol table of libraries to find what you are looking for. In this case, libc shows:

Code:
$ nm /lib/libc.so|grep getaddrinfo
00089a30 T _getaddrinfo
00089a30 W getaddrinfo

which tells us getaddrinfo is in the Text section of libc.
MrC
 

9 More Discussions You Might Find Interesting

1. Solaris

Tar files, transfer to remote host and delelte source

Hi, I´m having a problem here. I have a directory that holds many subdirs and files (by many I mean MANY thousands). What I want to do is make blocks of these files and transfer them block by block to a remote host; but once a given file is already placed in the remote host, the script must... (0 Replies)
Discussion started by: Dago
0 Replies

2. Linux

source code for linux

Hi , where can i get free source code for LINUX commands , OS , system calls etc. Thanks Naren (2 Replies)
Discussion started by: naren_chella
2 Replies

3. Programming

New to C... questions about this code... ADTs...

Hi, In a file called itemADT.c I have specified the itemType data type to contain a listADT (having already written this library) and an integer, which will eventually represent the no. of times the word that is stored in the listADT has occurred (when I do this, and write code to insert... (2 Replies)
Discussion started by: eva
2 Replies

4. Shell Programming and Scripting

Linux source code

Unix is written in C. From where u can see the source code of unix or linux (1 Reply)
Discussion started by: pritish.sas
1 Replies

5. UNIX for Dummies Questions & Answers

Where can i get unix source code?

Sir please tell me where can i get source code for some unix kernal and shell also. (1 Reply)
Discussion started by: VIPUL15
1 Replies

6. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

7. Linux

Source code

I need the source code of fedora. plz plz plz help me........... (1 Reply)
Discussion started by: neh
1 Replies

8. Shell Programming and Scripting

Connect to target host from Source host.

Hi All, Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution. Is there a utility/command using which we can connect to target host ? Please suggest. Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

9. UNIX for Dummies Questions & Answers

Source code

hii... i am a biginner....and i have linux source code ,downloaded from some website ,a compressed file on windows and dont know how do compile them..... (4 Replies)
Discussion started by: M K Raju
4 Replies
SOCKET_GETADDRINFO(1p)					User Contributed Perl Documentation				    SOCKET_GETADDRINFO(1p)

NAME
"socket_getaddrinfo" - command-line tool to "getaddrinfo(3)" resolver SYNOPSIS
socket_getaddrinfo [options...] host service DESCRIPTION
This tool provides a convenient command-line wrapper around the getaddrinfo(3) resolver function. It will perform a single lookup and print the returned results in a human-readable form. This is mainly useful when debugging address resolution problems, because it allows inspection of the getaddrinfo(3) behaviour itself, outside of any real program that is trying to use it. OPTIONS
--host, -H HOST Hostname to resolve. If not supplied, will use the first positional argument --service, -S SERVICE Service name or port number to resolve. If not supplied, will use the second positional argument. -4 Restrict to just "AF_INET" (IPv4) results -6 Restrict to just "AF_INET6" (IPv6) results --stream Restrict to just "SOCK_STREAM" results --dgram Restrict to just "SOCK_DGRAM" results --proto PROTO Restrict to just results of the given IP protocol --passive Set the "AI_PASSIVE" hint; results will used to bind() and listen() rather than connect() --canonical Retrive the canonical name for the requested host --help Display a help summary and exit OUTPUT FORMAT
Each line of output will be given in a form that indicates the four result fields of "ai_family", "ai_socktype", "ai_protocol" and "ai_addr". The first three are printed in the form of a socket(2) call, either symbolically or numerically, and the latter is printed as a plain string following it. For example socket(AF_INET , SOCK_STREAM, IPPROTO_TCP) + '127.0.0.1:80' NOTE
Upstream this script is known as "getaddrinfo", but was renamed on Debian. AUTHOR
Paul Evans <leonerd@leonerd.org.uk> perl v5.14.2 2012-06-08 SOCKET_GETADDRINFO(1p)
All times are GMT -4. The time now is 08:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy