binarytermsender.c File Reference

#include <string.h>
#include "binarytermsender.h"
#include "binarytermtypes.h"
#include "glibtojava.h"
#include "libicl_private.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  BinaryTermSenderStruct
struct  TermRecordStruct

Typedefs

typedef TermRecordStruct TermRecord

Functions

void binaryTermSender_sendTerm (TermSender *ts, ICLTerm *inputTerm)
void binaryTermSender_cleanup (TermSender *ts)
BinaryTermSenderbinaryTermSender_create (TermSender *t, gint sendSocket)


Detailed Description

Definition in file binarytermsender.c.


Typedef Documentation

typedef struct TermRecordStruct TermRecord


Function Documentation

void binaryTermSender_cleanup ( TermSender ts  ) 

Definition at line 231 of file binarytermsender.c.

BinaryTermSender* binaryTermSender_create ( TermSender t,
gint  sendSocket 
)

Definition at line 63 of file binarytermsender.c.

void binaryTermSender_sendTerm ( TermSender ts,
ICLTerm toSend 
)

The proper way to do things is to send chunks of data at a time--that way, we don't have to have everything in memory. So first, you'd validate the term, to make sure you could send it, then you actually send it. Any errors would then be fatal. As it stands, errors cause terms not to be sent at all.

Definition at line 78 of file binarytermsender.c.


Generated on Wed May 23 17:20:13 2007 using doxygen 1.5.2