void gras_trp_tcp_setup(gras_trp_plugin_t plug) { THROW0(mismatch_error,0,NULL); }
void gras_trp_file_setup(gras_trp_plugin_t plug){ THROW0(mismatch_error,0,NULL); }
-void gras_trp_buf_setup(gras_trp_plugin_t plug) { THROW0(mismatch_error,0,NULL); }
void gras_trp_iov_setup(gras_trp_plugin_t plug) { THROW0(mismatch_error,0,NULL); }
gras_socket_t gras_trp_buf_init_sock(gras_socket_t sock) { return sock;}
/* Add plugins */
gras_trp_plugin_new("file",gras_trp_file_setup);
gras_trp_plugin_new("sg",gras_trp_sg_setup);
-
- /* buf is composed, so it must come after the others */
- gras_trp_plugin_new("buf", gras_trp_buf_setup);
+ gras_trp_plugin_new("tcp", gras_trp_tcp_setup);
}
_gras_trp_started++;
return xbt_dict_get(_gras_trp_plugins,name);
}
-int gras_socket_my_port (gras_socket_t sock) {
+int gras_socket_my_port (gras_socket_t sock) {
return sock->port;
}
int gras_socket_peer_port(gras_socket_t sock) {
/* $Id$ */
-/* buf trp (transport) - buffered transport using the TCP one */
+/* buf trp (transport) - buffered transport using the TCP one */
/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
*** Code
***/
void
-gras_trp_buf_setup(gras_trp_plugin_t plug) {
+gras_trp_tcp_setup(gras_trp_plugin_t plug) {
plug->socket_client = gras_trp_buf_socket_client;
plug->socket_server = gras_trp_buf_socket_server;
void gras_trp_iov_setup(gras_trp_plugin_t plug);
void gras_trp_file_setup(gras_trp_plugin_t plug);
void gras_trp_sg_setup(gras_trp_plugin_t plug);
-void gras_trp_buf_setup(gras_trp_plugin_t plug);
/*