Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_connect_or_die(3) [debian man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

remshd and rlogind

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)
Discussion started by: scottl
3 Replies

2. Shell Programming and Scripting

connect to Db2 thru Unix

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)
Discussion started by: ranj@tcs
3 Replies

3. IP Networking

Is is possible!!!

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)
Discussion started by: cskumar
2 Replies

4. UNIX for Dummies Questions & Answers

cannot connect net in rhl9

I installed rhl 9 in my system but the problem is i cannot connect my net to it any help please (2 Replies)
Discussion started by: shafique
2 Replies

5. UNIX for Advanced & Expert Users

connect without getting disconected

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)
Discussion started by: daryldave
3 Replies

6. UNIX for Dummies Questions & Answers

display gets all meessed up,,,

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)
Discussion started by: the_learner
4 Replies

7. Shell Programming and Scripting

Want to make a script that checks connection protocol

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)
Discussion started by: DeCoTwc
3 Replies

8. SuSE

net connection

i have installed suse linux 10 ,but i am not able to connect to the internet.i am learning unix now. i am new to this operating system. (2 Replies)
Discussion started by: viswareddy.32
2 Replies

9. UNIX for Dummies Questions & Answers

RHEL Internet connection

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)
Discussion started by: flekzout
2 Replies

10. Programming

connect() function in C++ socket programming

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)
Discussion started by: smdhd3
3 Replies

11. Solaris

how to connect to alom

Hello Guys, I am working with sunfire V480 and wants to know how to connect to alom. Can you please guide? (7 Replies)
Discussion started by: mokkan
7 Replies

12. Linux

How to connect to internet

Hi, Can someone guide me regarding how to connect to internet. what are steps? Thanks in advance (2 Replies)
Discussion started by: naren nandale
2 Replies

13. Cybersecurity

VPN Security

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)
Discussion started by: tsbiju
3 Replies

14. UNIX and Linux Applications

Cannot connect to the Event Server after 3 attempts in autosys 11

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)
Discussion started by: alexcol
5 Replies

15. UNIX for Dummies Questions & Answers

D-Bus: Failed to connect to socket

(2 Replies)
Discussion started by: Azrael
2 Replies