Main Page   Compound List   File List   Compound Members   File Members  

mike.c File Reference

#include "speakfree.h"
#include "version.h"
#include <termio.h>

Compounds

struct  destination

Defines

#define BYTE_SWAP_DEBUG
#define DEFAULT_SQUELCH   4096
#define TimerStep   (7 * 1000000L)
#define ucase(x)   (islower(x) ? toupper(x) : (x))
#define UNIX5
#define Ctrl(x)   ((x) - '@')
#define buf   netbuf.buffer.buffer_val
#define MICROSECONDS_PER_SAMPLE   (1000000 / 8000)
#define DELAY_PER_SAMPLE   MICROSECONDS_PER_SAMPLE
#define kOverhead   8000
#define SESSIONKEYBUF   1024
#define nextrand   (md5key[j] ^ md5key1[j])
#define Rad16(x)   ((((((md5key1[j] >> 1) ^ (md5key[15 - j] >> 2)) % 26) + (x)) % 26) + 'A')

Functions

void tty_rawmode (void)
void tty_normode (void)
void ularm (long t)
void gsmcomp (struct soundbuf *sb)
void adpcmcomp (struct soundbuf *sb)
void lpccomp (struct soundbuf *sb)
void lpc10comp (struct soundbuf *sb)
int lpc10stuff (struct soundbuf *sb, int pktlen)
void celpcomp (struct soundbuf *sb)
int celpstuff (struct soundbuf *sb, int pktlen)
void AES_cbc_encrypt (unsigned char *in, unsigned char *out, int len, aes_ctx *ctx)
int sendrtpctrl (struct destination *d, struct sockaddr *destaddr, char *msg, int msgl, int rtppkt)
int addest (char *host)
void timertick ()
int sendpkt (struct soundbuf *sb)
int getaudio (void)
void freeaudio (void)
void exiting ()
void changemode (void)
void termchar (int ch)
int chatchar (int ch)
int sendfile (char *f)
void makeSessionKey (char *key, char *seed, int mode)
char * prog_name (char *arg)
void usage (void)
int main (int argc, char *argv[])

Variables

char * progname
int sock
int xnat_socketsharing = FALSE
int xnat_consock
int xnat_datasock
destinationdests = NULL
destinationdtail
int compressing = FALSE
int gsmcompress = TRUE
int gsm_byte_order_debug = FALSE
int lpccompress = FALSE
int lpc10compress = FALSE
int adpcmcompress = FALSE
int celpcompress = FALSE
int toasted = FALSE
int robust = 1
int rseq = 0
int squelch = 0
int sqdelay = 12000
int sqwait = 0
int push = TRUE
int talking = FALSE
int rawmode = FALSE
int ring = FALSE
int rtp = FALSE
int vat = FALSE
int agc = FALSE
int rgain = 33
int spurt = TRUE
int debugging = FALSE
FILE * audioDumpFile = NULL
int havesound = FALSE
char hostname [20]
int loopback = FALSE
gsm gsmh
adpcm_state adpcm = {0, 0}
char * vatid = NULL
int vatidl
unsigned long ssrc
unsigned long timestamp
unsigned short seq
unsigned long rtpdesrand
char * sdes = NULL
int sdesl
char curkey [9] = ""
char currtpkey [9] = ""
char curvatkey [9] = ""
char curideakey [17] = ""
char curpgpkey [17] = ""
char curblowfish_spec = FALSE
BF_KEY curblowfishkey
char curaes_spec = FALSE
aes_ctx curaes_ctx
char * curotp = NULL
int sound_packet
soundbufpgpsb = NULL
LONG pgpsbl
int hasFace = FALSE
char * devAudioInput
char * devAudioControl
termio old_term_params

Define Documentation

#define buf   netbuf.buffer.buffer_val
 

#define BYTE_SWAP_DEBUG
 

#define Ctrl      ((x) - '@')
 

#define DEFAULT_SQUELCH   4096
 

#define DELAY_PER_SAMPLE   MICROSECONDS_PER_SAMPLE
 

#define kOverhead   8000
 

#define MICROSECONDS_PER_SAMPLE   (1000000 / 8000)
 

#define nextrand   (md5key[j] ^ md5key1[j])
 

#define Rad16      ((((((md5key1[j] >> 1) ^ (md5key[15 - j] >> 2)) % 26) + (x)) % 26) + 'A')
 

#define SESSIONKEYBUF   1024
 

#define TimerStep   (7 * 1000000L)
 

#define ucase      (islower(x) ? toupper(x) : (x))
 

#define UNIX5
 


Function Documentation

int addest char *    host [static]
 

void adpcmcomp struct soundbuf   sb [static]
 

void AES_cbc_encrypt unsigned char *    in,
unsigned char *    out,
int    len,
aes_ctx *    ctx
[static]
 

void celpcomp struct soundbuf   sb [static]
 

int celpstuff struct soundbuf   sb,
int    pktlen
[static]
 

void changemode void    [static]
 

int chatchar int    ch [static]
 

void exiting   [static]
 

void freeaudio void    [static]
 

int getaudio void    [static]
 

void gsmcomp struct soundbuf   sb [static]
 

void lpc10comp struct soundbuf   sb [static]
 

int lpc10stuff struct soundbuf   sb,
int    pktlen
[static]
 

void lpccomp struct soundbuf   sb [static]
 

int main int    argc,
char *    argv[]
 

void makeSessionKey char *    key,
char *    seed,
int    mode
[static]
 

char* prog_name char *    arg [static]
 

int sendfile char *    f [static]
 

int sendpkt struct soundbuf   sb [static]
 

int sendrtpctrl struct destination   d,
struct sockaddr *    destaddr,
char *    msg,
int    msgl,
int    rtppkt
[static]
 

void termchar int    ch [static]
 

void timertick   [static]
 

void tty_normode void    [static]
 

void tty_rawmode void    [static]
 

void ularm long    t [static]
 

void usage void    [static]
 


Variable Documentation

struct adpcm_state adpcm = {0, 0} [static]
 

int adpcmcompress = FALSE [static]
 

int agc = FALSE [static]
 

FILE* audioDumpFile = NULL [static]
 

int celpcompress = FALSE [static]
 

int compressing = FALSE [static]
 

aes_ctx curaes_ctx [static]
 

char curaes_spec = FALSE [static]
 

char curblowfish_spec = FALSE [static]
 

BF_KEY curblowfishkey [static]
 

char curideakey[17] = "" [static]
 

char curkey[9] = "" [static]
 

char* curotp = NULL [static]
 

char curpgpkey[17] = "" [static]
 

char currtpkey[9] = "" [static]
 

char curvatkey[9] = "" [static]
 

int debugging = FALSE [static]
 

struct destination* dests = NULL [static]
 

char * devAudioControl
 

char* devAudioInput
 

struct destination * dtail [static]
 

int gsm_byte_order_debug = FALSE [static]
 

int gsmcompress = TRUE [static]
 

gsm gsmh [static]
 

int hasFace = FALSE [static]
 

int havesound = FALSE [static]
 

char hostname[20] [static]
 

int loopback = FALSE [static]
 

int lpc10compress = FALSE [static]
 

int lpccompress = FALSE [static]
 

struct termio old_term_params [static]
 

struct soundbuf* pgpsb = NULL [static]
 

LONG pgpsbl [static]
 

char* progname [static]
 

int push = TRUE [static]
 

int rawmode = FALSE [static]
 

int rgain = 33 [static]
 

int ring = FALSE [static]
 

int robust = 1 [static]
 

int rseq = 0 [static]
 

int rtp = FALSE [static]
 

unsigned long rtpdesrand [static]
 

char* sdes = NULL [static]
 

int sdesl [static]
 

unsigned short seq [static]
 

int sock [static]
 

int sound_packet [static]
 

int spurt = TRUE [static]
 

int sqdelay = 12000 [static]
 

int squelch = 0 [static]
 

int sqwait = 0 [static]
 

unsigned long ssrc [static]
 

int talking = FALSE [static]
 

unsigned long timestamp [static]
 

int toasted = FALSE [static]
 

int vat = FALSE [static]
 

char* vatid = NULL [static]
 

int vatidl [static]
 

int xnat_consock [static]
 

int xnat_datasock [static]
 

int xnat_socketsharing = FALSE [static]
 


Generated on Tue Feb 10 08:44:18 2004 for Speak-FreelyforUnix by doxygen1.2.18