00001 /* 00002 * Copyright (c) 2009 Thierry FOURNIER 00003 * 00004 * This file is part of MySAC. 00005 * 00006 * MySAC is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License 00009 * 00010 * MySAC is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public License 00016 * along with MySAC. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef __MYSAC_NET_H__ 00020 #define __MYSAC_NET_H__ 00021 00022 int mysac_socket_connect(const char *socket_name, int *fd); 00023 int mysac_socket_connect_check(int fd); 00024 ssize_t mysac_read(int fd, void *buf, size_t count, int *err); 00025 ssize_t mysac_write(int fd, const void *buf, size_t len, int *err); 00026 00027 #endif