yumapro  20.10-12
YumaPro SDK
send_buff.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifndef _H_send_buff
13 #define _H_send_buff
14 /* FILE: send_buff.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
26 /*********************************************************************
27 * *
28 * C H A N G E H I S T O R Y *
29 * *
30 *********************************************************************
31 
32 date init comment
33 ----------------------------------------------------------------------
34 20-jan-07 abb begun
35 */
36 
37 #include <stdlib.h>
38 
39 #ifndef _H_status
40 #include "status.h"
41 #endif
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /********************************************************************
48 * *
49 * C O N S T A N T S *
50 * *
51 *********************************************************************/
52 
53 
54 /********************************************************************
55 * *
56 * F U N C T I O N S *
57 * *
58 *********************************************************************/
59 
77 extern status_t
78  send_buff (int fd,
79  const char *buffer,
80  size_t cnt);
81 
82 
86 #ifdef __cplusplus
87 } /* end extern 'C' */
88 #endif
89 
90 #endif /* _H_send_buff */
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
ERR_NCX_OPERATION_FAILED
@ ERR_NCX_OPERATION_FAILED
274
Definition: status_enum.h:315
ERR_NCX_INVALID_VALUE
@ ERR_NCX_INVALID_VALUE
258
Definition: status_enum.h:299
ERR_INTERNAL_MEM
@ ERR_INTERNAL_MEM
003
Definition: status_enum.h:193
ERR_NCX_RESOURCE_DENIED
@ ERR_NCX_RESOURCE_DENIED
269
Definition: status_enum.h:310
ERR_NCX_OPERATION_NOT_SUPPORTED
@ ERR_NCX_OPERATION_NOT_SUPPORTED
273
Definition: status_enum.h:314
ERR_NCX_ACCESS_DENIED
@ ERR_NCX_ACCESS_DENIED
267
Definition: status_enum.h:308
send_buff.h
Send buffer utility.
send_buff
status_t send_buff(int fd, const char *buffer, size_t cnt)
Send the buffer to the network peer.
Definition: send_buff.c:94
status.h
Global error messages for status code enumerations.