YShutdownServer(3)

YShutdownServer3

Disconnects and shuts down y server

Usage

#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.

Overview

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.

Examples

#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);
}

Releases

5 releases since Debian 3.0 (Woody); the text changed 2 times.

  1. 3.0
  2. 3.1–5.0
  3. 6.0

From liby-dev 2.14.5-7 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.