3 /* gras_dummy - dummy implementation of function depending on the RL or SG, */
4 /* so that we can build a dummy library to test the Utils */
6 /* Copyright (c) 2004 Martin Quinson. All rights reserved. */
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. */
11 #include "gras_private.h"
13 xbt_error_t gras_process_init() {
17 xbt_error_t gras_process_exit() {
21 xbt_error_t gras_sock_client_open(const char *host, short port,
22 /* OUT */ gras_sock_t **sock) {
27 xbt_error_t gras_sock_server_open(unsigned short startingPort,
28 unsigned short endingPort,
29 /* OUT */ gras_sock_t **sock) {
34 xbt_error_t gras_sock_close(gras_sock_t *sock) {
38 unsigned short gras_sock_get_my_port(gras_sock_t *sd) {
42 unsigned short gras_sock_get_peer_port(gras_sock_t *sd) {
46 char * gras_sock_get_peer_name(gras_sock_t *sd) {
50 xbt_error_t grasMsgRecv(gras_msg_t **msg,
54 xbt_error_t gras_msg_send(gras_sock_t *sd,
56 e_xbt_free_directive_t freeDirective) {
59 xbt_error_t gras_rawsock_server_open(unsigned short startingPort,
60 unsigned short endingPort,
61 unsigned int bufSize, gras_rawsock_t **sock) {
64 xbt_error_t gras_rawsock_client_open(const char *host, short port,
65 unsigned int bufSize, gras_rawsock_t **sock) {
68 xbt_error_t gras_rawsock_close(gras_rawsock_t *sd) {
71 unsigned short gras_rawsock_get_peer_port(gras_rawsock_t *sd) {
75 gras_rawsock_recv(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize,
76 unsigned int timeout) {
80 gras_rawsock_send(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize){
83 gras_process_data_t *gras_process_data_get() {
91 void gras_sleep(unsigned long sec,unsigned long usec) {}