From f2bdd7012204af630c426e5ca7c0952f946a41db Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 14 Jun 2004 20:25:01 +0000 Subject: [PATCH] Got all of this in the new generation GRAS git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@104 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/gras/SG/gras_sg.h | 93 ------------------------------------------- 1 file changed, 93 deletions(-) delete mode 100644 src/gras/SG/gras_sg.h diff --git a/src/gras/SG/gras_sg.h b/src/gras/SG/gras_sg.h deleted file mode 100644 index c36dc36baf..0000000000 --- a/src/gras/SG/gras_sg.h +++ /dev/null @@ -1,93 +0,0 @@ -/* $Id$ */ - -/* gras_sg.h - private interface for GRAS when using the simulator */ - -/* Authors: Martin Quinson */ -/* Copyright (C) 2003 the OURAGAN project. */ - -/* This program is free software; you can redistribute it and/or modify it - under the terms of the license (GNU LGPL) which comes with this package. */ - -#ifndef GRAS_SG_H -#define GRAS_SG_H - -#ifdef GRAS_RL_H -#error Impossible to load gras_sg.h and gras_rl.h at the same time -#endif - -#include "gras_private.h" -#include - -BEGIN_DECL - -/* Declaration of the socket type */ -struct gras_sock_s { - int server_sock; /* boolean */ - int raw_sock; /* boolean. If true, socket for raw send/recv. - If false. socket for formated messages */ - - int from_PID; /* process which sent this message */ - int to_PID; /* process to which this message is destinated */ - - m_host_t to_host; /* Who's on other side */ - int to_port; /* port on which the server is earing */ - m_channel_t to_chan;/* Channel on which the other side is earing */ -}; -struct gras_rawsock_s { - int server_sock; /* boolean */ - int raw_sock; /* boolean. If true, socket for raw send/recv. - If false. socket for formated messages */ - - int from_PID; /* process which sent this message */ - int to_PID; /* process to which this message is destinated */ - - m_host_t to_host; /* Who's on other side */ - int to_port; /* port on which the server is earing */ - m_channel_t to_chan;/* Channel on which the other side is earing */ -}; - -/* Data for each host */ -typedef struct { - int proc[MAX_CHANNEL]; /* who's connected to each channel (its PID). If =0, then free */ - - int portLen; - int *port; /* list of ports used by a server socket */ - int *port2chan; /* the channel it points to */ - int *raw; /* (boolean) the channel is in raw mode or for formatted messages */ - -} gras_hostdata_t; - -/* prototype of private functions */ -/** - * _gras_sock_server_open: - * - * Open a server socket either in raw or regular mode, depending on the @raw argument. - * In SG, bufSize is ignored. - */ -gras_error_t -_gras_sock_server_open(unsigned short startingPort, unsigned short endingPort, - int raw, unsigned int bufSize, /* OUT */ gras_sock_t **sock); - -/** - * _gras_sock_client_open: - * - * Open a client socket either in raw or regular mode, depending on the @raw argument. - * In SG, bufSize is ignored. - */ -gras_error_t -_gras_sock_client_open(const char *host, short port, int raw, unsigned int bufSize, - /* OUT */ gras_sock_t **sock); - - -/** - * _gras_sock_close: - * - * Close a socket which were opened either in raw or regular mode, depending on the - * @raw argument. - */ -gras_error_t _gras_sock_close(int raw, gras_sock_t *sd); - - -END_DECL - -#endif /* GRAS_SG_H */ -- 2.20.1