1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/*
udpcla.h: common definitions for UDP convergence layer
adapter modules.
Author: Ted Piotrowski, APL
Scott Burleigh, JPL
Modification History:
Date Who What
Copyright (c) 2003, California Institute of Technology.
ALL RIGHTS RESERVED. U.S. Government Sponsorship
acknowledged.
*/
#ifndef _UDPCLA_H_
#define _UDPCLA_H_
#include "bpP.h"
#include <pthread.h>
#ifdef __cplusplus
extern "C" {
#endif
#define UDPCLA_BUFSZ ((256 * 256) - 1)
#define BpUdpDefaultPortNbr 4556
#define DEFAULT_UDP_RATE 125000000
extern int connectToCLI(int *sock);
extern int sendBytesByUDP(int *bundleSocket, char *from, int length,
struct sockaddr *socketName);
extern int sendBundleByUDP(struct sockaddr *socketName, int *bundleSocket,
unsigned int bundleLength, Object bundleZco,
unsigned char *buffer);
extern int receiveBytesByUDP(int bundleSocket,
struct sockaddr_in *fromAddr,char *into, int length);
#ifdef __cplusplus
}
#endif
#endif /* _UDPCLA_H */
|