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 /* Authors: Martin Quinson */
7 /* Copyright (C) 2003 the OURAGAN project. */
9 /* This program is free software; you can redistribute it and/or modify it
10 under the terms of the license (GNU LGPL) which comes with this package. */
13 #include "gras_private.h"
15 gras_error_t gras_process_init() {
19 gras_error_t gras_process_exit() {
23 gras_error_t gras_sock_client_open(const char *host, short port,
24 /* OUT */ gras_sock_t **sock) {
29 gras_error_t gras_sock_server_open(unsigned short startingPort,
30 unsigned short endingPort,
31 /* OUT */ gras_sock_t **sock) {
36 gras_error_t gras_sock_close(gras_sock_t *sock) {
40 unsigned short gras_sock_get_my_port(gras_sock_t *sd) {
44 unsigned short gras_sock_get_peer_port(gras_sock_t *sd) {
48 char * gras_sock_get_peer_name(gras_sock_t *sd) {
52 gras_error_t grasMsgRecv(gras_msg_t **msg,
56 gras_error_t gras_msg_send(gras_sock_t *sd,
58 e_gras_free_directive_t freeDirective) {
61 gras_error_t gras_rawsock_server_open(unsigned short startingPort,
62 unsigned short endingPort,
63 unsigned int bufSize, gras_rawsock_t **sock) {
66 gras_error_t gras_rawsock_client_open(const char *host, short port,
67 unsigned int bufSize, gras_rawsock_t **sock) {
70 gras_error_t gras_rawsock_close(gras_rawsock_t *sd) {
73 unsigned short gras_rawsock_get_peer_port(gras_rawsock_t *sd) {
77 gras_rawsock_recv(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize,
78 unsigned int timeout) {
82 gras_rawsock_send(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize){
85 gras_process_data_t *gras_process_data_get() {
93 void gras_sleep(unsigned long sec,unsigned long usec) {}