Commit 3d556d2d authored by julien.delange's avatar julien.delange

* delete transport_sockets, create po_hi_sockets.c that would

   be the socket transport driver



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@516 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent c8d51de3
......@@ -14,7 +14,7 @@ EXTRA_DIST = $(srcdir)/po_hi_common.h \
$(srcdir)/po_hi_types.h \
$(srcdir)/po_hi_main.h \
$(srcdir)/po_hi_simulink.h \
$(srcdir)/po_hi_transport_sockets.h \
$(srcdir)/po_hi_sockets.h \
$(srcdir)/po_hi_transport.h
CLEANFILES = *~
......
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://ocarina.enst.fr
*
* Copyright (C) 2007-2010, European Space Agency.
*/
#include <deployment.h>
/* Include generated files */
#include <po_hi_protocols.h>
/* Files from PolyORB-HI-C */
extern __po_hi_node_t mynode;
extern __po_hi_inetport_t node_port[__PO_HI_NB_NODES];
extern __po_hi_inetaddr_t node_addr[__PO_HI_NB_NODES];
#define __PO_HI_DRIVER_SOCKET 1
/* To be removed in a near future */
#define __PO_HI_TRANSPORT_SOCKET_NEED_RECEIVER_TASK() \
((__PO_HI_DRIVER_SOCKET == 1) && (__PO_HI_NB_NODES > 1) && (node_port[mynode] != __PO_HI_NOPORT))
/*
* Maccro that declare if we need to activate another thread
* that receives data from a socket (receiver task)
*/
void __po_hi_sockets_initialize (void);
/*
* Initialize sockets, create the receiver tasks
* and sender file descriptors
*/
int __po_hi_sockets_send (__po_hi_entity_t from, __po_hi_entity_t to, __po_hi_msg_t* msg);
/*
* Send data through the sending socket
*/
void* __po_hi_sockets_receiver_task (void);
/*
* Task that polls for incoming data
* and dispatch it in po-hi-c queues
*/
......@@ -10,7 +10,7 @@ C_FILES = $(srcdir)/po_hi_task.c \
$(srcdir)/po_hi_protocols.c \
$(srcdir)/po_hi_transport.c \
$(srcdir)/po_hi_transport_dummy.c \
$(srcdir)/po_hi_transport_sockets.c \
$(srcdir)/po_hi_sockets.c \
$(srcdir)/po_hi_types.c \
$(srcdir)/po_hi_utils.c \
$(srcdir)/po_hi_simulink.c \
......
......@@ -21,7 +21,7 @@
#if __PO_HI_NB_PORTS > 1
#include <po_hi_transport.h>
#include <po_hi_transport_sockets.h>
#include <po_hi_sockets.h>
#endif
/* included files from PolyORB-HI-C */
......
......@@ -11,7 +11,7 @@
#include <po_hi_config.h>
#include <po_hi_task.h>
#include <po_hi_transport.h>
#include <po_hi_transport_sockets.h>
#include <po_hi_sockets.h>
#include <po_hi_protocols.h>
#include <po_hi_debug.h>
#include <po_hi_types.h>
......@@ -39,7 +39,7 @@
#include <sys/time.h>
/*
* This file (po_hi_transport_sockets.c) provides function to handle
* This file (po_hi_sockets.c) provides function to handle
* communication between nodes in PolyORB-HI-C. We don't use a
* protocol to send data. For each data sent, we send before the
* entity number provided by the generated file deployment.h, then, we
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment