Poster of Linux kernelThe best gift for a Linux geek
YShutdownServer

YShutdownServer

Section: Y Version 2 (3) Updated: Release 14
Local index Up
 

NAME

YShutdownServer - disconnects and shuts down Y server  

SYNTAX

#include <Y2/Y.h>
#include <Y2/Ylib.h>

void YShutdownServer(

        YConnection *connection
)  

ARGUMENTS

connection
Specifies the connection to the Y server, obtained by a call to YOpenConnection.
 

DESCRIPTION

The YShutdownServer function closes the connect to the Y server pointed to by connection. The connection pointer connection passed to this function should not be referanced again.

You will not receive a YShutdown event after this function is called.

If you only want to close the connection to the Y server then use YCloseConnection.  

EXAMPLE

#include <stdio.h>
#include <Y2/Y.h>
#include <Y2/Ylib.h>

int main(int argc, char *argv[])
{

        YConnection *con = YOpenConnection(

                "/usr/sbin/starty",

                "127.0.0.1:9433"

        );

        if(con == NULL)

                return(1);


        YShutdownServer(con);


        return(0);
}  

SEE ALSO

YCloseConnection(3) YOpenConnection(3)


 

Index

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
EXAMPLE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:59:21 GMT, April 16, 2011