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_ConnStatus(3aolserver) AOLserver Library Procedures Ns_ConnStatus(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
Ns_ConnGetStatus, Ns_ConnSetStatus - Routines to manage the HTTP response status
SYNOPSIS
#include "ns.h"
int
Ns_ConnGetStatus(conn)
void
Ns_ConnSetStatus(conn, status)
ARGUMENTS
Ns_Conn conn (in) Pointer to open connection.
int status (in) Integer HTTP status code.
_________________________________________________________________DESCRIPTION
These routines manage the HTTP response code sent to the client in a later call to Ns_ConnFlush or Ns_ConnFlushDirect. Higher level rou-
tines such as the Ns_ConnReturn functions normally call these routines automatically using standard HTTP status codes and the Ns_ConnQueue-
Headers routine can be used to set the status code for lower level code which bypasses Ns_ConnFlush.
int Ns_ConnGetStatus(conn)
Return the current HTTP status to be sent.
int Ns_ConnSetStatus(conn, status)
Set the status code to be sent in the response, for example, 200 for a normal "OK" response. A later call to Ns_ConnFlush will con-
struct the appropriate HTTP response including the given status with the cooresponding string status code.
EXAMPLES
The following example demonstrates setting an odd status code followed by a call to Ns_ConnFlushDirect to send some data:
Ns_ConnSetStatus(conn, 600);
Ns_ConnSetType(conn, "text/plain");
Ns_ConnFlushDirect(conn, "hello", 5, 0);
The following should provide similar results:
Ns_ConnSetRequiredHeaders(conn, "text/plain", 5);
Ns_ConnQueueHeaders(conn, 600);
Ns_ConnPuts(conn, "hello");
Ns_ConnClose(conn);
SEE ALSO Ns_ConnGetType(3), Ns_ConnSetType(3), Ns_ConnFlush(3), Ns_ConnFlushDirect(3), Ns_ConnSetRequiredHeaders(3), Ns_ConnQueueHeaders(3),
ns_conn(n)
KEYWORDS
connectionn, response, status
AOLserver 4.0 Ns_ConnStatus(3aolserver)
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)
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
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)
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)
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)
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)
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)
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)
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)
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)
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)