source: branches/samba-3.3.x/source/include/async_sock.h

Last change on this file was 206, checked in by Herwig Bauernfeind, 16 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

File size: 1.7 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3 async socket operations
4 Copyright (C) Volker Lendecke 2008
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef __ASYNC_SOCK_H__
21#define __ASYNC_SOCK_H__
22
23#include "includes.h"
24
25ssize_t async_syscall_result_ssize_t(struct async_req **req, int *perrno);
26size_t async_syscall_result_size_t (struct async_req **req, int *perrno);
27ssize_t async_syscall_result_int (struct async_req **req, int *perrno);
28
29struct async_req *async_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
30 int fd, const void *buffer, size_t length,
31 int flags);
32struct async_req *async_sendall(TALLOC_CTX *mem_ctx, struct event_context *ev,
33 int fd, const void *buffer, size_t length,
34 int flags);
35struct async_req *async_recv(TALLOC_CTX *mem_ctx, struct event_context *ev,
36 int fd, void *buffer, size_t length,
37 int flags);
38struct async_req *async_recvall(TALLOC_CTX *mem_ctx, struct event_context *ev,
39 int fd, void *buffer, size_t length,
40 int flags);
41struct async_req *async_connect(TALLOC_CTX *mem_ctx, struct event_context *ev,
42 int fd, const struct sockaddr *address,
43 socklen_t address_len);
44
45#endif
Note: See TracBrowser for help on using the repository browser.