src/vfer_test_api.c

Go to the documentation of this file.
00001 /*
00002  * Copyright 2005, 2006, Internet2
00003  * Legal conditions are in file LICENSE
00004  * (MD5 = c434f2e53b8089d8b4d0172c7ce07360).
00005  */
00006 /**
00007  * @file   vfer_test_api.c
00008  * @author Ivan Beschastnikh
00009  * @brief  Test: Tests api.c for correct behaviour
00010  *
00011  * This test tests api.c to make sure that the correct error codes are
00012  * returned when functions are called with incorrect arguments.
00013  *
00014  * \todo Implementation
00015  *
00016  * -     07/30/05        ivan            Added to doxygen doc sys 
00017  */
00018 
00019 #include <stdio.h>
00020 #include "vfer_tests.h"
00021 #include "vfer_api.h"
00022 
00023 int main(int argc, char** argv) {
00024 
00025         TEST_INIT("TEST_API", "test_api.c", stdout, stdout);
00026         /* 
00027            int          vfer_debug      (FILE* debug_file, FILE* error_file, char* layers);
00028         */
00029         vfer_debug(stdout, stdout, "a");
00030         
00031 /*
00032 vfer_sock*      vfer_socket     (int socktype, vfer_sock *skt);
00033 int             vfer_close      (vfer_sock *skt);
00034 int             vfer_connect    (vfer_sock *skt, const struct sockaddr *addr, int len);
00035 int             vfer_bind       (vfer_sock *skt, struct sockaddr *addr, int len);
00036 int             vfer_listen     (vfer_sock *skt, int backlog);
00037 vfer_sock*      vfer_accept     (vfer_sock *skt, struct sockaddr *addr, int *len);
00038 vfer_sock*      vfer_accept     (vfer_sock *skt, struct sockaddr *addr, int *len);
00039 int             vfer_setsockopt (vfer_sock *skt, int optname, void *optval, int optlen);
00040 int             vfer_getsockopt (vfer_sock *skt, int optname, void *optval, int *optlen);
00041 vfer_stats*     vfer_sockstats  (vfer_sock *skt);
00042 int             vfer_sockerror  (vfer_sock *skt);
00043 char*           vfer_errortext  (int err);
00044 size_t          vfer_sendfile   (vfer_sock *skt, int fd, off_t offset, size_t size);
00045 size_t          vfer_send       (vfer_sock *skt, const void * buf, size_t len);
00046 size_t          vfer_recvfile   (vfer_sock *skt, int fd, off_t offset, size_t size);
00047 size_t          vfer_recv       (vfer_sock *skt, void *buf, size_t len);
00048 int             vfer_selectmark (vfer_sock *skt, int mark);
00049 int             vfer_selecttest (vfer_sock *skt);
00050 int             vfer_select     (int len, vfer_sock **skts, struct timeval *timeout);
00051 */
00052         TEST_SUMMARY();
00053         return 0;
00054         
00055 } /* main() */

Generated on Tue Aug 8 16:07:19 2006 for VFER by  doxygen 1.4.7