From: mquinson Date: Sun, 8 Aug 2004 04:26:35 +0000 (+0000) Subject: there is now a flush function X-Git-Tag: v3.3~4989 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2f63dce7911dd967b5fd4acadc46a6010c8c0662 there is now a flush function git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@359 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/Transport/transport_plugin_tcp.c b/src/gras/Transport/transport_plugin_tcp.c index 46638a3a6a..4b3fa1e0ec 100644 --- a/src/gras/Transport/transport_plugin_tcp.c +++ b/src/gras/Transport/transport_plugin_tcp.c @@ -42,7 +42,7 @@ gras_error_t gras_trp_tcp_socket_accept(gras_socket_t *sock, void gras_trp_tcp_socket_close(gras_socket_t *sd); gras_error_t gras_trp_tcp_chunk_send(gras_socket_t *sd, - char *data, + const char *data, long int size); gras_error_t gras_trp_tcp_chunk_recv(gras_socket_t *sd, @@ -92,6 +92,8 @@ gras_trp_tcp_setup(gras_trp_plugin_t *plug) { plug->chunk_send = gras_trp_tcp_chunk_send; plug->chunk_recv = gras_trp_tcp_chunk_recv; + plug->flush = NULL; /* nothing's cached */ + plug->data = (void*)data; plug->exit = gras_trp_tcp_exit; @@ -308,7 +310,7 @@ void gras_trp_tcp_socket_close(gras_socket_t *sock){ */ gras_error_t gras_trp_tcp_chunk_send(gras_socket_t *sock, - char *data, + const char *data, long int size) { /* TCP sockets are in duplex mode, don't check direction */