git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@111
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
under the terms of the license (GNU LGPL) which comes with this package. */
#include "Transport/transport_private.h"
under the terms of the license (GNU LGPL) which comes with this package. */
#include "Transport/transport_private.h"
//GRAS_LOG_EXTERNAL_CATEGORY(transport);
//GRAS_LOG_DEFAULT_CATEGORY(transport);
//GRAS_LOG_EXTERNAL_CATEGORY(transport);
//GRAS_LOG_DEFAULT_CATEGORY(transport);
gras_trp_select(double timeout,
gras_socket_t **dst) {
gras_trp_select(double timeout,
gras_socket_t **dst) {
+ double startTime=gras_time();
+ gras_procdata_t *pd=gras_procdata_get();
+
+ do {
+ if (MSG_task_Iprobe((m_channel_t) pd->chan)) {
+ *dst = pd->sock;
+
+ return no_error;
+ } else {
+ MSG_process_sleep(0.001);
+ }
+ } while (gras_time()-startTime < timeout
+ || MSG_task_Iprobe((m_channel_t) pd->chan));
+
+ return timeout_error;
+
+}
+
+
+/* dummy implementations of the functions used in RL mode */
+
+gras_error_t gras_trp_tcp_setup(gras_trp_plugin_t *plug) {
+ return mismatch_error;
+}
+gras_error_t gras_trp_file_setup(gras_trp_plugin_t *plug) {
+ return mismatch_error;