01-06-2018
afair there is no such library in AIX and there is no need for it. If I understand your question correctly, all the functions, you find usually in Solaris (or what f. OS you have with this old shit?) libsocket are in AIX libc.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
given a relative path, how do i convert it into a full one. i.e. if i am in
/home/polypus
and i am given foo/bar then to get a full path i can just concatinate it with pwd, but what if i am given "../mama"
how do i programmatically convert:
/home/polypus and ../mama into ... (4 Replies)
Discussion started by: polypus
4 Replies
2. Programming
Hi,
I am trying to develop a simple program that uses Sockets. I have a windows machine and MUST use C++. I found out that I can use C's Socket (#include <sys/socket.h>) API calls, but this is only possible on a unix machine. So I installed Cygwin to imitate a unix environment on my windows... (4 Replies)
Discussion started by: wannabeTekkie
4 Replies
3. UNIX for Dummies Questions & Answers
need a help,
am a newbe in unix
how do i locate the full path of the .profile where the environmental variable for a user is set.
thanks (6 Replies)
Discussion started by: dba
6 Replies
4. Shell Programming and Scripting
This has been bugging me for a while. How can i list file to show full path.
/directory/test
$ ls file.tst
file.tst
$
desired output:
/directory/test/file.tst (2 Replies)
Discussion started by: ryandegreat25
2 Replies
5. Programming
Hi,
My name is Daniel and I'm spanish, so I'm sorry if you can't undertand something becouse of my low-level english.
Something stranger is happening to me with socket++ library and I don't know how to work on it.
I has a library called commands.so and the sslclient is and object of that... (4 Replies)
Discussion started by: lock.cda
4 Replies
6. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
7. Shell Programming and Scripting
/Path/snowbird9/nrfCompMgrRave1230100920.log.gz:09/20/2010 06:14:51 ERROR Error Message.
/Path/snowbird6/nrfCompMgrRave1220100920.log.gz:09/20/2010 06:14:51 ERROR Error Message.
/Path/snowbird14/nrfCompMgrRave920100920.log.gz:09/20/2010 06:14:51 ERROR Error Message.... (0 Replies)
Discussion started by: Shirisha
0 Replies
8. Shell Programming and Scripting
Hey
I'm new to the forums here, and I'm seeking help for this script that I'm writing. When I do ls -l of a directory it shows the full pathname for files in it. For example, if the directory is /internet/post/forum/ and the file is topic, it currently shows internet/post/forum/topic. What's the... (3 Replies)
Discussion started by: unity04
3 Replies
9. AIX
My product has 2 libraries say "x & y".
x depends on y.
During the installation of my products package, user will be prompted for his own location to copy my product libraries.
Installation will copy libraries "x & y" and create my product specific ENV variable say "MYPATH" pointing to User... (4 Replies)
Discussion started by: erra_krishna
4 Replies
10. Shell Programming and Scripting
I have a small script to send copies of files to another computer used for tests but in the same location:pwd=`pwd`
for i in "$@"
do
echo "rcp -p $i comp-2:$pwd/$i"
rcp -p $i comp-2:$pwd/$i
echo "Finished with $i"
doneIs there a way I can check the parameter to see if it is a full... (5 Replies)
Discussion started by: wbport
5 Replies
LEARN ABOUT PHP
socket_getpeername
SOCKET_GETPEERNAME(3) 1 SOCKET_GETPEERNAME(3)
socket_getpeername - Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on
its type
SYNOPSIS
bool socket_getpeername (resource $socket, string &$address, [int &$port])
DESCRIPTION
Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type.
PARAMETERS
o $socket
- A valid socket resource created with socket_create(3) or socket_accept(3).
o $address
- If the given socket is of type AF_INET or AF_INET6, socket_getpeername(3) will return the peers (remote) IP address in appropri-
ate notation (e.g. 127.0.0.1 or fe80::1) in the $address parameter and, if the optional $port parameter is present, also the
associated port. If the given socket is of type AF_UNIX, socket_getpeername(3) will return the Unix filesystem path (e.g.
/var/run/daemon.sock) in the $address parameter.
o $port
- If given, this will hold the port associated to $address.
RETURN VALUES
Returns TRUE on success or FALSE on failure. socket_getpeername(3) may also return FALSE if the socket type is not any of AF_INET,
AF_INET6, or AF_UNIX, in which case the last socket error code is not updated.
NOTES
Note
socket_getpeername(3) should not be used with AF_UNIX sockets created with socket_accept(3). Only sockets created with socket_con-
nect(3) or a primary server socket following a call to socket_bind(3) will return meaningful values.
Note
For having socket_getpeername(3) to return a meaningful value, the socket it is applied upon must of course be one for which the
concept of "peer" makes sense.
SEE ALSO
socket_getsockname(3), socket_last_error(3), socket_strerror(3).
PHP Documentation Group SOCKET_GETPEERNAME(3)