IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 11, 2005, 8:11:57 AM (21 years ago)
Author:
eugene
Message:

moving IOBuffer and CommOps to libohana, adding AddstarClientOptions and Stars to libautocode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/ohana.h

    r5237 r5273  
    8787# endif /* FOPEN */
    8888
     89/* socket / pipe communication buffer */
     90typedef struct {
     91  char *buffer;
     92  int   Nalloc;
     93  int   Nreset;
     94  int   Nblock;
     95  int   Nbuffer;
     96} IOBuffer;
     97
    8998extern double hypot();
    9099
     
    143152int     str_to_radec           PROTO((double *ra, double *dec, char *str1, char *str2));
    144153
     154/* IO Buffer functions */
     155int InitIOBuffer (IOBuffer *buffer, int Nalloc);
     156int FlushIOBuffer (IOBuffer *buffer);
     157int ReadtoIOBuffer (IOBuffer *buffer, int fd);
     158int EmptyIOBuffer (IOBuffer *buffer, int Nmax, int fd);
     159void FreeIOBuffer (IOBuffer *buffer);
     160
     161/* communication functions */
     162int ExpectMessage (int device, double timeout, IOBuffer *message);
     163int ExpectCommand (int device, int length, double timeout, IOBuffer *buffer);
     164int SendMessage (int device, char *format, ...);
     165int SendCommand (int device, int length, char *format, ...);
     166int SendCommandV (int device, int length, char *format, va_list argp);
     167
    145168/*
    146169#   define F_SETFL         4   
Note: See TracChangeset for help on using the changeset viewer.