explain_connect_or_die(3) Library Functions Manual explain_connect_or_die(3)NAME
explain_connect_or_die - initiate a connection on a socket and report errors
SYNOPSIS
#include <libexplain/connect.h>
void explain_connect_or_die(int fildes, const struct sockaddr *serv_addr, int serv_addr_size);
DESCRIPTION
The explain_connect_or_die function is used to call the connect(2) system call. On failure an explanation will be printed to stderr,
obtained from explain_connect(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_connect_or_die(fildes, serv_addr, serv_addr_size);
fildes The fildes, exactly as to be passed to the connect(2) system call.
serv_addr
The serv_addr, exactly as to be passed to the connect(2) system call.
serv_addr_size
The serv_addr_size, exactly as to be passed to the connect(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO connect(2)
initiate a connection on a socket
explain_connect(3)
explain connect(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_connect_or_die(3)
Check Out this Related Man Page
explain_bind_or_die(3) Library Functions Manual explain_bind_or_die(3)NAME
explain_bind_or_die - bind a name to a socket and report errors
SYNOPSIS
#include <libexplain/bind.h>
void explain_bind_or_die(int fildes, const struct sockaddr *sock_addr, int sock_addr_size);
DESCRIPTION
The explain_bind_or_die function is used to call the bind(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_bind(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_bind_or_die(fildes, sock_addr, sock_addr_size);
fildes The fildes, exactly as to be passed to the bind(2) system call.
sock_addr
The sock_addr, exactly as to be passed to the bind(2) system call.
sock_addr_size
The sock_addr_size, exactly as to be passed to the bind(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO bind(2) bind a name to a socket
explain_bind(3)
explain bind(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_bind_or_die(3)
Hi Guys,
i have some entrys in the syslog which mean that a connection is refused .
someonelse has tried to connect with remshd and rlogind
on wich ports tried to connect this protocols ?
thx (3 Replies)
I need to connect to DB2 through Unix and check whether the database is up or not. We are planning to use Neon shadow direct to connect to the same. I would like to know how to pass parameters to neon shadow direct. Any guidance/help in this regard would be helpful.
My unix box is AIX 1.
... (3 Replies)
Dear All,
Iam new to this forum.I got a new work in Automatic call testing,where we will be passing some inputs to the system(PC-with PBX),which should automatically connect to the destination PC-with PBX and pass the input to it.I have tried the protocols and found that SIP will be the feasible... (2 Replies)
hey do some one know whats wrong cause when i try to play all server list are crowded do some one know how i can connect without getting disconected? (3 Replies)
Hi, I am using putty to connect to a linux machine.
hmm, this is a little difficult to explain...
Whenever I type something which is more than a line, then instead of going to the start of next line.. the cursor goes back to the start of current line and overwrites it. The display gets all... (4 Replies)
Hello all,
I currently connect to several servers multiple times a day. Most of the time I connect via SSH through the terminal emulator poderosa (my personal favorite), but sometimes I connect via telnet through xstart because I need it to export a GUI.
What I want to do is add something to... (3 Replies)
Hi all :)
I got a problem that I need to solve here, its kinda confusing me.
I got servers which is RHEL that its not supposed to connect to internet, but right now I want this server to connect to internet, so firewall and everything already open. but I have no idea why it still unable to... (2 Replies)
Hello All,
I have a problem using connect(...) function in C++. I am using SSH from my windows system to connect it to linux server. The program works fine if I run it directly in Linux machine but I need it to run through windows machine.
The function returns -1 and so my program terminates.
... (3 Replies)
Hello Gurus :
I had a question about VPN connection . Say for instance i have to connect from my point A to point B (Is the place where i initiate the VPN connection ) . From there i connect to point C (i.e Bank) .
My question is this a secure connection . (from point A to C)
Thanks... (3 Replies)
Good afternoon:
I need your help plase
IN Prudcution system Autosys 4.5 was used and the was a migration to release Autosys 11. but AFTER THE RELASE TO THE NEW VERSUON r11 i cann not longer connect to the event server, so when i connected to the previous SERVER in A 4.5 i was able to use... (5 Replies)