Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

smfi_opensocket(3n) [hpux man page]

smfi_opensocket(3N)													       smfi_opensocket(3N)

NAME
smfi_opensocket() - attempts to create the interface socket that MTAs use to connect to the filter SYNOPSIS
PARAMETERS
The contains the following parameters: rmsocket A flag that indicates whether the library must try to remove any existing UNIX domain socket before attempting to create a new socket. DESCRIPTION
The routine is used to create the socket specified previously by a call to the routine, which is the interface between Mail Transfer Agents (MTAs) and the filter. The routine allows the calling application to ensure that the socket can be created. If is not called, the routine does it implicitly. The routine is called only from program mainline before calling the routine. RETURN VALUE
Following are the possible reasons when the routine fails and returns o The interface socket is not created. o When rmsocket is true, either the socket is not examined or the socket exists and cannot be removed. o The routine is not called. AUTHOR
The routine was developed was the Sendmail Inc. SEE ALSO
smfi_main(3N), smfi_register(3N), smfi_setconn(3N), smfi_settimeout(3N), smfi_setbacklog(3N), smfi_setdbg(3N), smfi_stop(3N). on smfi_opensocket(3N)

Check Out this Related Man Page

smfi_setconn(3N)														  smfi_setconn(3N)

NAME
smfi_setconn() - sets the socket for filter to communicate with sendmail SYNOPSIS
PARAMETERS
oconn Specifies the address of the desired communication socket. The address must be a NULL-terminated string in the following format: Specifies a named pipe. Specifies an IPV4 socket, using either a hostname or an ip-address. Specifies an IPV6 socket, using either a hostname or an ip-address.. DESCRIPTION
The routine sets the socket through which the filter must communicate with must be called only once before the function. Notes Filters must not be run as root when communicating over UNIX/local domain sockets. The permissions for UNIX/local sockets must be set to 0600 (read/write permission only for the owner of the socket) or 0660 (read/write permission for the owner and group of the socket). These permissions are useful when the RunAsUser option is used. The permissions for a UNIX/local domain socket are determined using the the command, which must be set to 007 or 077. Some operating systems, such as Solaris, do not use the permissions of the socket. Therefore, place the socket in a protected directory in such systems. RETURN VALUE
does not fail due to an invalid address. The failure can only be detected in the routine. AUTHOR
was developed by the Sendmail Inc. SEE ASLO
smfi_main(3N), smfi_register(3N), smfi_settimeout(3N), smfi_opensocket(3N), smfi_setbacklog(3N), smfi_setdbg(3N), smfi_stop(3N). on smfi_setconn(3N)
Man Page

15 More Discussions You Might Find Interesting

1. IP Networking

socket

how to create a socket ? why to bind a socket? when we use a socket? (1 Reply)
Discussion started by: amin
1 Replies

2. Programming

How can I program socket in unix?

Excuse me . I'm a beginner . In windows , MFC can be used , but how to do in Unix ? And does unix support c++like VC++ ? How can I get developing tools in Unix ? (7 Replies)
Discussion started by: sanjohn
7 Replies

3. Shell Programming and Scripting

socket scripting

Need a script for a socket to communicate with federal express? Help (3 Replies)
Discussion started by: lgolonka
3 Replies

4. UNIX for Advanced & Expert Users

socket programming

Hi, I am trying to connect to more than 60 servers to perform some actions remotely. for this I am using ssh2. But its taking lot of time. Though i am running the command in background, still its taking long time to execute.. Any one let me know can we use sockets instead of ssh2 for... (3 Replies)
Discussion started by: pvamsikr
3 Replies

5. Programming

connect() socket API

Is there any relation between the connect() socket API and the TCP's Transmission Control Block. Also how does connect detect that a socket is in use i.e., EADDRINUSE (1 Reply)
Discussion started by: sunaina
1 Replies

6. Programming

Socket++ library problem.

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

7. Programming

Store file into a buffer to send it through a socket

Hello, I'm doing a very simple program which reads a file and sends whatever is in the file through a socket. Like the program "file2cable". Let's say i have a file containing the following, which is a hex dump of an ARP request frame: ff ff ff ff ff ff 00 1b 24 79 5a 73 08 06 00 01 08... (5 Replies)
Discussion started by: semash!
5 Replies

8. Programming

Program

Hi guys I so upset today i have this question about socket and i made the program do you know what wrong with it this the question : Write one TCP socket program (named webclient.cpp) to simulate a web browser by using HTTP/1.1. The client should take three... (1 Reply)
Discussion started by: Net Star
1 Replies

9. SuSE

Error with socket operation on non-socket

(1 Reply)
Discussion started by: vin_pll
1 Replies

10. Programming

creating socket()

deleted (7 Replies)
Discussion started by: satish@123
7 Replies

11. UNIX for Dummies Questions & Answers

create a file called -a

Can I create a file called '-a' in unix.Or can i open it with vi ? vi \-a will give u an error that -a is invalid option for vi. (2 Replies)
Discussion started by: Swayam
2 Replies

12. Programming

socket programming

how to include socket.h in visual studio 2005.. (2 Replies)
Discussion started by: asd123
2 Replies

13. IP Networking

Socket and interface (eth0, eth 1)relationship

hi, Could some one answer this please we have a program with client socket declared which connect to a server for the above program description we wont send an interface information ... let us suppose, I have two interfaces (eth0 , eth1) which are assigned some ip, which interface the... (1 Reply)
Discussion started by: Gopi Krishna P
1 Replies

14. UNIX for Dummies Questions & Answers

D-Bus: Failed to connect to socket

(2 Replies)
Discussion started by: Azrael
2 Replies

15. AIX

AIX full path to socket library

Can somebody help me too identify full path to socket library on AIX? Cannot find anything Thanks for contribution (2 Replies)
Discussion started by: digioleg54
2 Replies