Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ns_connclose(3aolserv) [debian man page]

Ns_ConnClose(3aolserver)				   AOLserver Library Procedures 				  Ns_ConnClose(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_ConnClose - Close an open connection SYNOPSIS
#include "ns.h" int Ns_ConnClose(conn) ARGUMENTS
Ns_Conn conn (in) Pointer to open connection. _________________________________________________________________ DESCRIPTION
This function calls the connection's communication driver to close the connection if it is not already closed. It always returns NS_OK. If the connection is marked for keep-alive, the underlying connection is not actually closed but instead returned to the driver thread to process additional requests, if any. Connections are automatically marked for keep-alive by setting the NS_CONN_KEEPALIVE flag if the client supports it by sending an appropriate connection-keepalive header. Keep alive can be disabled before a call to Ns_ConnClose with the Ns_ConnSetKeepAliveFlag routine with a zero value for the flag argument. SEE ALSO
Ns_ConnSetKeepAliveFlag(3), Ns_ConnGetKeepAliveFlag(3), Ns_ConnFlush(3) KEYWORDS
connection, close, keep-alive AOLserver 4.0 Ns_ConnClose(3aolserver)

Check Out this Related Man Page

Ns_ConnDriver(3aolserver)				   AOLserver Library Procedures 				 Ns_ConnDriver(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_ConnDriverContext, Ns_ConnDriverName - Routines to access communication driver data SYNOPSIS
#include "ns.h" void * Ns_ConnDriverContext(conn) char * Ns_ConnDriverName(conn) ARGUMENTS
Ns_Conn conn (in) Pointer to open connection. _________________________________________________________________ DESCRIPTION
These functions provide access to the underyling communications driver data for an open connection. char *Ns_ConnDriverName(conn) Returns the string name of the communication driver, e.g., "nssock". This is the name passed in the Ns_DriverInitData structure in a call to Ns_DriverInit, not the module name for the particular instance of the loaded driver. void *Ns_ConnDriverContent(conn) Returns a pointer to the connection-specific driver context for the given connection. This value is that of the arg element of the underlying Ns_Sock structure allocated by the server and used by communication drivers to manage private state. If the connection is closed, the value returned is always NULL. SEE ALSO
Ns_DriverInit(3) KEYWORDS
connection, context AOLserver 4.0 Ns_ConnDriver(3aolserver)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Could not open SCM connection

I am currently getting the following error on a solaris box : Could not open SCM connectionlaris box: Would someone be able to help me understand the error as I do not know what a SCM connection is. thanks Kristian (1 Reply)
Discussion started by: kristian
1 Replies

2. UNIX for Dummies Questions & Answers

Threads v/s Connections

Can someone please explain the difference between a connection and a thread. Any explanation will help! Thanks (3 Replies)
Discussion started by: suntan
3 Replies

3. UNIX for Advanced & Expert Users

Status of a Linux process

All, I have fair amount of knowledge about shell scripting, but only liitle on system administration. I would like to know how to analyze whether the particular linux process is alive or not ? If it is alive, will it affect the performace of other process ?. Also is it still consuming... (1 Reply)
Discussion started by: apsprabhu
1 Replies

4. Post Here to Contact Site Administrators and Moderators

my thread got closed

I had a thread open and now it says it's closed. I had a question still on the forum and about 15mins after I posted my most recent question on it the thread said "closed". Why did this happen? I didn't violate any forum rules. Is there a limit on how many postings you can have in a single thread?... (1 Reply)
Discussion started by: hpicracing
1 Replies

5. HP-UX

ftp first connection closed

Hi, Have anyone seen this problem, there is one remote side where their ftp connection to our server will always fail with connection closed by remote host and the second connection will be working. is this an OS issue or network issue? Thanks Robert (4 Replies)
Discussion started by: robertngo
4 Replies

6. Shell Programming and Scripting

Not able to catch psftp errors

Hi, While running the psftp with the below code,it is able to connect and open the ftp connection and closed the connection. But my scriptfile Test.ftp,is having the code "cd directoryname" where the directoryname does not exists. In this case i should be able to catch the error,instead it is... (1 Reply)
Discussion started by: nsrihari
1 Replies

7. UNIX for Dummies Questions & Answers

How to find the server ip is alive ?

How to write a shell script to find ports are open for the server. Thanks in advance. regards krackjack (4 Replies)
Discussion started by: krackjack
4 Replies

8. HP-UX

Connection closed by foreign host

I am trying to connect to my HP server from remote machine. It gets connected but once credential are provided the connection is closed. adroit:/home/seo/hitendra 32 ] telnet myserv1 Trying... Connected to myserv1. Escape character is '^]'. Local flow control on Telnet TERMINAL-SPEED... (4 Replies)
Discussion started by: hiten.r.chauhan
4 Replies

9. IP Networking

Connectivity problem in two servers.

HI I have made a connection with external server which is also UNIX. I was tryign connectivity with this by telnet which fails and ping i sshowing socket is alive and traceroute tells the asterisk astersik:traceroute to 153.88.182.28 (153.88.182.28), 30 hops max, 8080 byte packets 1 * * * 2 *... (1 Reply)
Discussion started by: nixhead
1 Replies

10. UNIX for Dummies Questions & Answers

How to find Hung connection in UNix Systems ?

Hi Gurus , How to find Hung connection in Unix Systems I use ps -ef | grep "XXXX" it lists out some conections..How to know what is hung connection in there.. (3 Replies)
Discussion started by: Hyp_Todd
3 Replies

11. Solaris

network connection failing

hi, I'm setting up a home lab and I am having problems keeping my connection open on putty. every time i leave it for about 10 seconds and come back I keep having to re-connect. I'm more of a AIX person and trying to get more fimilar with Sun but some of the commands I am trying to run to diag... (2 Replies)
Discussion started by: vpundit
2 Replies

12. UNIX for Advanced & Expert Users

How keep running a program n an another computer via a connection ssh when the connection is closed?

Hi everybody, I am running a program on a supercomputer via my personal computer through a ssh connection. My program take more than a day to run, so when I left work with my PC I stop the connection with the supercomputer and the program stop. I am wondering if someone know how I can manage... (2 Replies)
Discussion started by: TomTomGre
2 Replies

13. Tips and Tutorials

My "Bread and Butter" Process Keep Alive Perl Script....

For the newbies, I should have posted this years ago.... Here is the standard (tiny) "bread and butter" perl script (on Linux) I use in my crontab files to insure key processes are alive ( just in case ! ) like httpd, named, sshd, etc. The example below if for named...... ... (1 Reply)
Discussion started by: Neo
1 Replies