Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Association b/w sockets & processes Post 39100 by soorajmu on Wednesday 6th of August 2003 04:03:29 PM
Old 08-06-2003
Data Association b/w sockets & processes

Hi,

Is there any way i can know the association between sockets and the processes which created them.

Smilie
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File Extension association in CDE

Hi, Any idea how to define the file extension association within CDE. I need to tell dtfile (the file manager) to open *.log files as text documents and not emails... Thanks! (2 Replies)
Discussion started by: me2unix
2 Replies

2. HP-UX

fd passing between Independent processes using unix domain sockets

Hi, I am having some error handling issues with and fd passed between Independent processes using unix domain sockets (On HPUX). Here is the scnerio ================= Step 1: TPC/Client (connect()) ---Connects to ------TCP/Server(Gateway) (server gets fd) Step 2: ... (2 Replies)
Discussion started by: Debasisb2002
2 Replies

3. Solaris

Identifying and grouping OS processes and APP processes

Hi Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages. Any free tools or scripts to do this? Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies

4. Shell Programming and Scripting

how to use the filehandle stored in a variable without knowing its file association

how to use the filehandle stored in a variable without knowing its file association i.e. the filename code my $logFH = $connObj->get('logFH'); infoPrint("Variable is of type IO \n") if(UNIVERSAL::isa($logFH, 'IO')); infoPrint("$logFH\n"); output == INFO :: Variable is of type... (0 Replies)
Discussion started by: rrd1986
0 Replies

5. Programming

Two player game, forking & sockets

Hi. I am just making first steps in Linux POSIX programming. I have read some tutorials on processes, signals and sockets (thanks Beej!), so some basic knowledge I have already got. I want to write some very basic game server. My idea is to have main process, which is waiting for new players. If... (7 Replies)
Discussion started by: Shang
7 Replies

6. UNIX for Dummies Questions & Answers

File association

Hi, I'm using unix solaris 2.8 with CDE and I would modify the file association in my desktop. I found the file /usr/dt/appconfig/types/C/datatypes.dt from this topic : File Extension association in CDE | Unix Linux Forums | UNIX for Dummies Questions & Answers but this file can only be... (3 Replies)
Discussion started by: Toug
3 Replies

7. Shell Programming and Scripting

What is the use of "finger" command & how to use it to kill the online processes ?

Hi there, I am eager to know what exactly is the use of "finger" command & how to use it to kill the online processes ? :b: (1 Reply)
Discussion started by: abhijitpaul0212
1 Replies
SCTP_GETLADDRS(3)					     Linux Programmer's Manual						 SCTP_GETLADDRS(3)

NAME
sctp_getladdrs - Returns all locally bound addresses on a socket. SYNOPSIS
#include <sys/types.h> #include <sys/socket.h> #include <netinet/sctp.h> int sctp_getladdrs(int sd, sctp_assoc_t assoc_id, struct sockaddr **addrs); void sctp_freeladdrs(struct sockaddr *addrs); DESCRIPTION
sctp_getladdrs returns all locally bound addresses on a socket. On return, addrs will point to a dynamically allocated packed array of sockaddr structures of the appropriate type for each local address. The caller should use sctp_freeladdrs to free the memory. Note that the in/out parameter addrs must not be NULL. If sd is an IPv4 socket, the addresses returned will be all IPv4 addresses. If sd is an IPv6 socket, the addresses returned can be a mix of IPv4 or IPv6 addresses. For one-to-many style sockets, id specifies the association to query. For one-to-one style sockets, id is ignored. If the id field is set to 0, then the locally bound addresses are returned without regard to any particular association. sctp_freeladdrs frees all the resources allocated by sctp_getladdrs RETURN VALUE
On success, sctp_getladdrs returns the number of local addresses bound to the socket. If the socket is unbound, 0 is returned and the value of *addrs is undefined. On error, sctp_getladdrs returns -1 and the value of *addrs is undefined. SEE ALSO
sctp(7) sctp_bindx(3), sctp_connectx(3), sctp_sendmsg(3), sctp_send(3), sctp_recvmsg(3), sctp_peeloff(3), sctp_getpaddrs(3), sctp_opt_info(3), Linux 2.6 2005-10-25 SCTP_GETLADDRS(3)
All times are GMT -4. The time now is 12:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy