Skip to content

Commit

Permalink
Minor modifications prior to integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mubes committed Jun 25, 2022
1 parent a9a2093 commit ae66cf9
Show file tree
Hide file tree
Showing 10 changed files with 338 additions and 290 deletions.
32 changes: 0 additions & 32 deletions Inc/dataStream.h

This file was deleted.

33 changes: 33 additions & 0 deletions Inc/stream.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#ifndef _STREAM_H_
#define _STREAM_H_

#include <stddef.h>
#include <sys/time.h>

#ifdef __cplusplus
extern "C" {
#endif

enum ReceiveResult
{
RECEIVE_RESULT_OK,
RECEIVE_RESULT_TIMEOUT,
RECEIVE_RESULT_EOF,
RECEIVE_RESULT_ERROR,
};

struct Stream
{
enum ReceiveResult ( *receive )( struct Stream *stream, void *buffer, size_t bufferSize,
struct timeval *timeout, size_t *receivedSize );
void ( *close )( struct Stream *stream );
};

struct Stream *streamCreateSocket( const char *server, int port );
struct Stream *streamCreateFile( const char *file );

#ifdef __cplusplus
}
#endif

#endif
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ endif
# ==========

ORBLIB_CFILES = $(App_DIR)/itmDecoder.c $(App_DIR)/tpiuDecoder.c $(App_DIR)/msgDecoder.c $(App_DIR)/msgSeq.c $(App_DIR)/traceDecoder.c
ORBLIB_CFILES = $(App_DIR)/itmDecoder.c $(App_DIR)/tpiuDecoder.c $(App_DIR)/msgDecoder.c $(App_DIR)/msgSeq.c $(App_DIR)/traceDecoder.c $(App_DIR)/dataStream_socket.c
ORBLIB_CFILES = $(App_DIR)/itmDecoder.c $(App_DIR)/tpiuDecoder.c $(App_DIR)/msgDecoder.c $(App_DIR)/msgSeq.c $(App_DIR)/traceDecoder.c $(App_DIR)/stream_socket.c

ifdef WINDOWS
else
ORBLIB_CFILES += $(App_DIR)/dataStream_file_posix.c
ORBLIB_CFILES += $(App_DIR)/stream_file_posix.c
endif

ORBUCULUM_CFILES = $(App_DIR)/$(ORBUCULUM).c $(App_DIR)/nwclient.c
Expand Down
84 changes: 0 additions & 84 deletions Src/dataStream_file_posix.c

This file was deleted.

134 changes: 0 additions & 134 deletions Src/dataStream_socket.c

This file was deleted.

Loading

0 comments on commit ae66cf9

Please sign in to comment.