Clean up RPM spec for newer distributions
[clumanager.git] / librhcm / apitcp.h
blobf83f1603ce34d1ab79abebf27f18ac36f326bffe
1 /*
2 Copyright Red Hat, Inc. 2003
4 The Red Hat Cluster Manager API Library is free software; you can
5 redistribute it and/or modify it under the terms of the GNU Lesser
6 General Public License as published by the Free Software Foundation;
7 either version 2.1 of the License, or (at your option) any later
8 version.
10 The Red Hat Cluster Manager API Library is distributed in the hope
11 that it will be useful, but WITHOUT ANY WARRANTY; without even the
12 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 USA.
20 /** @file
21 * Header file for RHCM API TCP functions.
23 #include <sys/types.h>
24 #include <stdint.h>
26 #define TCP_TIMEOUT 5
27 #define TCP_MAXLEN 1024
29 int tcp_localconnect(int port);
30 ssize_t tcp_send(int fd, void *msg, uint32_t len);
31 ssize_t tcp_receive(int fd, void *msg, uint32_t length);