12-01-2014
10 More Discussions You Might Find Interesting
1. SCO
Hi All,
I want to disable some ports like tcp 111, udp 111 on my SCO Unix machine. Can someone please let mw know how i can do it? Also would i able to enable these ports in future if needed?
Here is the output of uname -a command to see machine type;
NODENAME>uname -a
UnixWare NODENAME... (1 Reply)
Discussion started by: am_yadav
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I was porting ipv4 application to ipv6; i was done with TCP transports. Now i am facing problem with SCTp transport at runtime.
To test SCTP transport I am using following server and client socket programs. Server program runs fine, but client program fails giving Invalid Arguments for... (0 Replies)
Discussion started by: chandrutiptur
0 Replies
3. Solaris
Dear All,
I have server with SunOS 5.10 Generic_127111-06 sun4v sparc SUNW,SPARC-Enterprise-T5120, always coming out error message like this :
May 25 10:37:26 sshd: fatal: Read from socket failed: Connection reset by peer
So what happend with my server..???
Best Regards
Bejo :D (2 Replies)
Discussion started by: mbah_jiman
2 Replies
4. UNIX for Advanced & Expert Users
Hi - I am getting the error
`Error reading response length from authentication socket'
when I ssh from my cluster to another cluster, and then back to my cluster. It doesn't seem to affect anything, but it's just annoying that it always pops up and tends to confuse new users of the cluster. I... (1 Reply)
Discussion started by: cpp6f
1 Replies
5. Solaris
Dear All,
I am facing a socket error - Connection Refused on Solaris Server 9.
Here is the error message
ConnectSock("<servername>", <port>, -3) failed
Recently we upgraded the CC compiler to 5.8 Sun Studio and from that time i am facing this error. Previously we were using CC... (1 Reply)
Discussion started by: helper
1 Replies
6. Programming
Why does this socket function only read the first 1440 chars of the stream. Why not the whole stream ? I checked it with gdm and valgrind and everything seems correct...
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include... (3 Replies)
Discussion started by: cyler
3 Replies
7. Programming
Dear Experts,
i am compiling my code in suse 4.1 which is compiling fine,
but at runtime it is showing me for socket programming error no 88
as i searched in errno.h it is telling me socket operation on non socket,
what is the meaning of this , how to deal with this error , please... (1 Reply)
Discussion started by: vin_pll
1 Replies
8. IP Networking
Hello ;
This what i want to do :
I know that in the system call
#include <sys/socket.h>
int bind(int socket, const struct sockaddr *address,
socklen_t address_len);
you can specify the local port for your socket, but im using a private library , and im sure that in that library... (0 Replies)
Discussion started by: trutoman
0 Replies
9. IP Networking
I need clarification on whether it is okay to set socket options on a listening socket
simultaneously when it is being used in an accept() call?
Following is the scenario:-
-- Task 1 - is executing in a loop - polling a listen socket, lets call it 'fd', (whose file descriptor is global)... (2 Replies)
Discussion started by: jake24
2 Replies
10. Shell Programming and Scripting
Hi,
I am triying to run this script in order to find the pid for each open port and when I run it in one server it give me an error and for another server is not showing the same error. Below I pasted the script and the result.
script
#!/usr/bin/ksh
print "Port PID ... (0 Replies)
Discussion started by: fede_mont
0 Replies
LEARN ABOUT DEBIAN
socket::getaddrinfo::socket6api
Socket::GetAddrInfo::Socket6api(3pm) User Contributed Perl Documentation Socket::GetAddrInfo::Socket6api(3pm)
NAME
"Socket::GetAddrInfo::Socket6api" - Provide Socket::GetAddrInfo functions using Socket6 API
SYNOPSIS
use Socket qw( AF_UNSPEC SOCK_STREAM );
use Socket::GetAddrInfo::Socket6api qw( getaddrinfo getnameinfo );
my $sock;
my @res = getaddrinfo( "www.google.com", "www", AF_UNSPEC, SOCK_STREAM );
die "Cannot resolve name - $res[0]" if @res == 1;
while( @res >= 5 ) {
my ( $family, $socktype, $protocol, $addr, undef ) = splice @res, 0, 5, ();
$sock = IO::Socket->new();
$sock->socket( $family, $socktype, $protocol ) or
undef $sock, next;
$sock->connect( $addr ) or undef $sock, next;
last;
}
if( $sock ) {
my ( $host, $service ) = getnameinfo( $sock->peername );
print "Connected to $host:$service
" if defined $host;
}
DESCRIPTION
Socket::GetAddrInfo provides the functions of "getaddrinfo" and "getnameinfo" using a convenient interface where hints and address
structures are represented as hashes. Socket6 also provides these functions, in a form taking and returning flat lists of values.
This module wraps the functions provided by "Socket::GetAddrInfo" to provide them in an identical API to "Socket6". It is intended to stand
as a utility for existing code written for the "Socket6" API to use these functions instead.
FUNCTIONS
@res = getaddrinfo( $host, $service, $family, $socktype, $protocol, $flags )
This version of the API takes the hints values as separate ordered parameters. Unspecified parameters should be passed as 0.
If successful, this function returns a flat list of values, five for each returned address structure. Each group of five elements will
contain, in order, the "family", "socktype", "protocol", "addr" and "canonname" values of the address structure.
If unsuccessful, it will return a single value, containing the string error message. To remain compatible with the "Socket6" interface,
this value does not have the error integer part.
( $host, $service ) = getnameinfo( $addr, $flags )
This version of the API returns only the host name and service name, if successfully resolved. On error, it will return an empty list. To
remain compatible with the "Socket6" interface, no error information will be supplied.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-06-08 Socket::GetAddrInfo::Socket6api(3pm)