next up previous contents
Next: About this document ... Up: A. The C Client Previous: A.6 Requesting Configuration Changes   Contents

A.7 Disconnecting from the Server

To disconnect from the server, use the function player_disconnect():

   * close a connection. conn should be a value that was previously returned
   * by a call to player_connect()
   * Returns:
   *    0 if everything is OK (connection closed)
   *   -1 if something went wrong (connection not closed)
  int player_disconnect(player_connection_t* conn);