Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Transport becomes a real module
[simgrid.git] / src / gras / Transport / transport_sg.c
1 /* $Id$ */
2
3 /* file trp (transport) - send/receive a bunch of bytes in SG realm         */
4
5 /* Authors: Martin Quinson                                                  */
6 /* Copyright (C) 2004 Martin Quinson.                                       */
7
8 /* This program is free software; you can redistribute it and/or modify it
9    under the terms of the license (GNU LGPL) which comes with this package. */
10
11 #include "gras_private.h"
12 #include "transport_private.h"
13
14 GRAS_LOG_EXTERNAL_CATEGORY(transport);
15 GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(trp_sg,transport);
16
17 typedef struct {
18   int dummy;
19 } gras_trp_sg_specific_t;
20
21 gras_error_t
22 gras_trp_sg_init(void) {
23
24   gras_trp_sg_specific_t *specific = malloc(sizeof(gras_trp_sg_specific_t));
25   if (!specific)
26     RAISE_MALLOC;
27
28   return no_error;
29 }
30
31 void
32 gras_trp_sg_exit(gras_trp_plugin_t *plugin) {
33   gras_trp_sg_specific_t *specific = (gras_trp_sg_specific_t*)plugin->specific;
34   free(specific);
35 }
36
37 gras_error_t gras_trp_sg_socket_client(const char *host,
38                                        unsigned short port,
39                                        int raw, 
40                                        unsigned int bufSize, 
41                                        /* OUT */ gras_trp_sock_t **dst){
42   RAISE_UNIMPLEMENTED;
43 }
44
45 gras_error_t gras_trp_sg_socket_server(unsigned short port,
46                                        int raw, 
47                                        unsigned int bufSize, 
48                                        /* OUT */ gras_trp_sock_t **dst){
49   RAISE_UNIMPLEMENTED;
50 }
51
52 void gras_trp_sg_socket_close(gras_trp_sock_t **sd){
53   ERROR1("%s not implemented",__FUNCTION__);
54   abort();
55 }
56
57 gras_error_t gras_trp_sg_select(double timeOut,
58                                 gras_trp_sock_t **sd){
59   RAISE_UNIMPLEMENTED;
60 }
61   
62 gras_error_t gras_trp_sg_bloc_send(gras_trp_sock_t *sd,
63                                    void *data,
64                                    size_t size,
65                                    double timeOut){
66   RAISE_UNIMPLEMENTED;
67 }
68
69 gras_error_t gras_trp_sg_bloc_recv(gras_trp_sock_t *sd,
70                                    void *data,
71                                    size_t size,
72                                    double timeOut){
73   RAISE_UNIMPLEMENTED;
74 }
75
76 gras_error_t gras_trp_sg_flush(gras_trp_sock_t *sd){
77   RAISE_UNIMPLEMENTED;
78 }
79