Drizzled Public API Documentation

drizzle_server.h

Go to the documentation of this file.
00001 /*
00002  * Drizzle Client & Protocol Library
00003  *
00004  * Copyright (C) 2008 Eric Day (eday@oddments.org)
00005  * All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions are
00009  * met:
00010  *
00011  *     * Redistributions of source code must retain the above copyright
00012  * notice, this list of conditions and the following disclaimer.
00013  *
00014  *     * Redistributions in binary form must reproduce the above
00015  * copyright notice, this list of conditions and the following disclaimer
00016  * in the documentation and/or other materials provided with the
00017  * distribution.
00018  *
00019  *     * The names of its contributors may not be used to endorse or
00020  * promote products derived from this software without specific prior
00021  * written permission.
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00024  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00025  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00026  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00027  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00028  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00029  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00030  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00031  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00032  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00033  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00034  *
00035  */
00036 
00042 #ifndef __DRIZZLE_SERVER_H
00043 #define __DRIZZLE_SERVER_H
00044 
00045 #include <libdrizzle/drizzle.h>
00046 #include <libdrizzle/conn_server.h>
00047 #include <libdrizzle/handshake_server.h>
00048 #include <libdrizzle/command_server.h>
00049 #include <libdrizzle/result_server.h>
00050 #include <libdrizzle/column_server.h>
00051 #include <libdrizzle/row_server.h>
00052 #include <libdrizzle/field_server.h>
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00081 DRIZZLE_API
00082 drizzle_con_st *drizzle_con_add_tcp_listen(drizzle_st *drizzle,
00083                                            drizzle_con_st *con,
00084                                            const char *host, in_port_t port,
00085                                            int backlog,
00086                                            drizzle_con_options_t options);
00087 
00099 DRIZZLE_API
00100 drizzle_con_st *drizzle_con_add_uds_listen(drizzle_st *drizzle,
00101                                            drizzle_con_st *con,
00102                                            const char *uds, int backlog,
00103                                            drizzle_con_options_t options);
00104 
00112 DRIZZLE_API
00113 drizzle_con_st *drizzle_con_ready_listen(drizzle_st *drizzle);
00114 
00124 DRIZZLE_API
00125 drizzle_con_st *drizzle_con_accept(drizzle_st *drizzle, drizzle_con_st *con,
00126                                    drizzle_return_t *ret_ptr);
00127 
00130 #ifdef  __cplusplus
00131 }
00132 #endif
00133 
00134 #endif /* __DRIZZLE_SERVER_H */