Main Page   Compound List   File List   Compound Members   File Members  

frame.c File Reference

#include "netfone.h"

Defines

#define JITTER_TIMER_ID   6
#define nWaveHeaders   4
#define BOMB_TIMER_ID   7
#define DESIRED_WINSOCK_VERSION   0x0101
#define MINIMUM_WINSOCK_VERSION   0x0001
#define MODEM_INPUT_EVENT   9999
#define addrHost   sockHost.sin_addr
#define BoolProfile(var, section, itemname, defval)   var = GetPrivateProfileInt(section, itemname, defval, pfn)
#define WindowPref(var, prefName)   BoolProfile(var, rstring(IDS_PF_DISPLAY_MODES), rstring(IDS_PF_OPT_ ## prefName), FALSE)
#define WindowPref(var, prefName)   case IDM_OPT_ ## prefName: var = !var; break
#define Jitter(time)   case IDM_OPT_JITTER_##time: jitterBuf = time; break
#define BoolProfile(var, section, itemname, defval)   WritePrivateProfileString(section, itemname, var ? kS1 : kS0, pfn)
#define WindowPref(var, prefName)   BoolProfile(var, rstring(IDS_PF_DISPLAY_MODES), rstring(IDS_PF_OPT_ ## prefName), FALSE)
#define Enable(item, condition)
#define Checker(item, value)
#define WindowPref(var, prefName)   Checker(IDM_OPT_ ## prefName, var)
#define Jitter(time)   Checker(IDM_OPT_JITTER_##time, jitterBuf == time)
#define WorkA(item, value)   Enable(item, !connActive); Checker(item, value)

Functions

LRESULT Frame_MDIMessageForwarder (HWND hwnd, UINT nMessage, WPARAM wParam, LPARAM lParam)
void propeller (int control, DWORD value)
HWND findClientByHost (LPSOCKADDR_IN paddr)
HWND getActiveConnection (void)
int isHalfDuplex (HWND hwnd)
void waveOutShutdown (void)
int inputSampleCount (void)
int inputBufferLength (void)
int startWaveInput (HWND hwnd)
void terminateWaveInput (void)
void rememberNewConnection (LPSTR connectionFile)
VOID newConnection (HWND hwnd, LPSTR connectionFile, LPSTR knownHost)
BOOL onCreate (HWND hwnd, CREATESTRUCT *pCreateStruct)
VOID onCommand (HWND hwnd, INT id, HWND hwndCtl, UINT codeNotify)
int obtainOutput (HWND hwnd)
LPCLIENT_DATA createClient (SOCKADDR_IN addrClient, soundbuf *d)
unsigned short findPort (SOCKET s)
VOID socketInput (HWND hwnd, SOCKET sock, SOCKERR serr, SOCKEVENT sevent)
VOID controlInput (HWND hwnd, SOCKET sock, SOCKERR serr, SOCKEVENT sevent)
void ParseCommandLine (HWND hwnd, LPSTR pszCmdLine)
LRESULT CALLBACK Frame_WndProc (HWND hwnd, UINT nMessage, WPARAM wParam, LPARAM lParam)

Variables

HWAVEOUT hWaveOut = NULL
HWAVEIN hWaveIn = NULL
int isWaveSound = FALSE
int outputActive = FALSE
int inputActive = FALSE
int inputPaused = FALSE
int openConnections = 0
int listeners = 0
int broadcasting = FALSE
int bConferencing = FALSE
int bEchoPackets = FALSE
int outputTimeout = 0
long outputPending = 0
long microsecondsPending = 0
double smoothedMicrosecondsPending = 0.0
int halfDuplexTransition = FALSE
int outputInShutdown = FALSE
DWORD HtmlHelpContext = 0
gsm gsmh = NULL
rate_t xrate
HCURSOR phoneCursor = NULL
HCURSOR boltCursor = NULL
HCURSOR earCursor = NULL
int voxmode = IDM_VOX_NONE
int breakinput = FALSE
int compression = FALSE
int gsmcompress = TRUE
int adpcmcompress = FALSE
int lpccompress = FALSE
int lpc10compress = FALSE
int celpcompress = FALSE
int robust = 1
int voxcompress = FALSE
int protocolXmit = PROTOCOL_SPEAKFREE
int protocolSent = PROTOCOL_SPEAKFREE
int protocolAuto = TRUE
public_key_package pk_package = PGP
int alwaysBindSocket = FALSE
int useSendNotSendto = FALSE
int waNetNoConnect = FALSE
int waNetUseSend = FALSE
int waNetMultiTTLisChar = FALSE
int waNetNoOutOverflow = FALSE
int waNetNoMsgLoopIns = FALSE
int waNetSynchronousGetHostname = 2
int waNetSynchronousGetHostnameAction = FALSE
int waProtNoHeartbeat = FALSE
int waProtUseLargerRTCPackets = FALSE
int waProtNoVAT = FALSE
int waProtNoRTP = FALSE
int waProtNoRTCPCrypt = FALSE
int waAudioHalf = FALSE
int waAudio11025 = FALSE
int waAudioRingMaxVolume = FALSE
int waAudioNoOutputRateAdjustment = FALSE
UINT waAudioInDevice = (UINT) WAVE_MAPPER
UINT waAudioOutDevice = (UINT) WAVE_MAPPER
int waAudioBeepOnTransmit = FALSE
int halfDuplex = FALSE
int audioIs8Bit = FALSE
int audioUse8Bit = FALSE
int netMaxSamples
int currentOutputRate = EXCHANGE_SAMPLE_RATE
int currentInputLength
int currentInputSamples
int holped = FALSE
char ringFileName [MAX_PATH] = ""
int lookWho_sTalking = FALSE
int openOnAnswerMessage = FALSE
int hideWhenMinimised = FALSE
int startMinimised = FALSE
int lurkInTray = FALSE
HWND trayIconWindow = NULL
char lwl_s_server [MAX_PATH]
char lwl_s_email [80]
char lwl_s_fullname [80]
char lwl_s_phone [80]
char lwl_s_location [80]
int lwl_s_publish
int lwl_s_exact
char lwl_a_server [MAX_PATH]
int lwl_a_exact
int lwl_t_published = FALSE
int lwl_t_resend = 0
int lwl_t_diactive = FALSE
int lwl_t_pending = FALSE
int lwl_t_tock = 0
unsigned long ssrc
unsigned long timestamp
unsigned short seq
unsigned long rtpdesrand
char * sdes = NULL
int sdesl
int spurt = TRUE
char * vatid = NULL
int vatidl
char * rtpsdes = NULL
int rtpsdesl
HINSTANCE hInst
HACCEL hAccel
HWND hwndMDIFrame
HWND hwndMDIClient
HWND hDlgPropeller = NULL
HWND hDlgChat = NULL
HWND hDlgConsole = NULL
HWND hDlgSpectral = NULL
LPSTR commandLine = NULL
HWND hDlgAnswer = NULL
LPSTR pszAppName
INT tmAveCharWidth
INT tmHeight
int rememberedConnections = 0
LPSTR rememberedConnection [REMEMBER_CONNECTIONS]
UINT fileOpenHelpButton
char * fileHelpKey = NULL
int multiMemberships = 0
int multiLoop = FALSE
int multiBrainDead = FALSE
UINT jitterBuf = 1000
BOOL jitterPause = FALSE
UINT jitterTimer = 0
SOCKET sCommand = INVALID_SOCKET
SOCKET sControl = INVALID_SOCKET
SOCKET lwlsock = INVALID_SOCKET
auxSocketasList = NULL
int inputSoundBufferSize = 0
LPWAVEHDR inWaveHeader [nWaveHeaders]
int waveHeadersAllocated = 0
int createSuccessful = FALSE
int inputTerm = FALSE
soundbuf receivedSoundBuffer
UINT bombTimer = 0
int closeBomb = FALSE
u_long Lazarus = 0
int LazarusLong = 0
int audioChannels = 1
int samplesPerSecond = 8000
int bytesPerSecond = 16000
int sampleAlignment = 2
int bitsPerSample = 16
char kS0 [] = "0"
char kS1 [] = "1"
int aboutInSamples = 0
int aboutInBits
int aboutOutSamples = 0
int aboutOutBits
long packetsReceived = 0
long packetsSent = 0
long inputPacketsLost = 0
long outputPacketsLost = 0
long messageChecks = 0
int messageQueueSize = 120
int aboutUDPmax = 0

Define Documentation

#define addrHost   sockHost.sin_addr
 

#define BOMB_TIMER_ID   7
 

#define BoolProfile var,
section,
itemname,
defval       WritePrivateProfileString(section, itemname, var ? kS1 : kS0, pfn)
 

#define BoolProfile var,
section,
itemname,
defval       var = GetPrivateProfileInt(section, itemname, defval, pfn)
 

#define Checker item,
value   
 

Value:

CheckMenuItem(menu, (item), MF_BYCOMMAND | \
                        ((value) ? MF_CHECKED : MF_UNCHECKED))

#define DESIRED_WINSOCK_VERSION   0x0101
 

#define Enable item,
condition   
 

Value:

EnableMenuItem(menu, (item), MF_BYCOMMAND | \
                        ((condition) ? MF_ENABLED : (MF_DISABLED | MF_GRAYED)));

#define Jitter time       Checker(IDM_OPT_JITTER_##time, jitterBuf == time)
 

#define Jitter time       case IDM_OPT_JITTER_##time: jitterBuf = time; break
 

#define JITTER_TIMER_ID   6
 

#define MINIMUM_WINSOCK_VERSION   0x0001
 

#define MODEM_INPUT_EVENT   9999
 

#define nWaveHeaders   4
 

#define WindowPref var,
prefName       Checker(IDM_OPT_ ## prefName, var)
 

#define WindowPref var,
prefName       BoolProfile(var, rstring(IDS_PF_DISPLAY_MODES), rstring(IDS_PF_OPT_ ## prefName), FALSE)
 

#define WindowPref var,
prefName       case IDM_OPT_ ## prefName: var = !var; break
 

#define WindowPref var,
prefName       BoolProfile(var, rstring(IDS_PF_DISPLAY_MODES), rstring(IDS_PF_OPT_ ## prefName), FALSE)
 

#define WorkA item,
value       Enable(item, !connActive); Checker(item, value)
 


Function Documentation

VOID controlInput HWND    hwnd,
SOCKET    sock,
SOCKERR    serr,
SOCKEVENT    sevent
[static]
 

LPCLIENT_DATA createClient SOCKADDR_IN    addrClient,
soundbuf   d
[static]
 

HWND findClientByHost LPSOCKADDR_IN    paddr [static]
 

unsigned short findPort SOCKET    s [static]
 

LRESULT Frame_MDIMessageForwarder HWND    hwnd,
UINT    nMessage,
WPARAM    wParam,
LPARAM    lParam
[static]
 

LRESULT CALLBACK Frame_WndProc HWND    hwnd,
UINT    nMessage,
WPARAM    wParam,
LPARAM    lParam
 

HWND getActiveConnection void    [static]
 

int inputBufferLength void    [static]
 

int inputSampleCount void   
 

int isHalfDuplex HWND    hwnd [static]
 

VOID newConnection HWND    hwnd,
LPSTR    connectionFile,
LPSTR    knownHost
 

int obtainOutput HWND    hwnd
 

VOID onCommand HWND    hwnd,
INT    id,
HWND    hwndCtl,
UINT    codeNotify
[static]
 

BOOL onCreate HWND    hwnd,
CREATESTRUCT *    pCreateStruct
[static]
 

void ParseCommandLine HWND    hwnd,
LPSTR    pszCmdLine
 

void propeller int    control,
DWORD    value
 

void rememberNewConnection LPSTR    connectionFile [static]
 

VOID socketInput HWND    hwnd,
SOCKET    sock,
SOCKERR    serr,
SOCKEVENT    sevent
[static]
 

int startWaveInput HWND    hwnd
 

void terminateWaveInput void   
 

void waveOutShutdown void    [static]
 


Variable Documentation

int aboutInBits
 

int aboutInSamples = 0
 

int aboutOutBits
 

int aboutOutSamples = 0
 

int aboutUDPmax = 0
 

int adpcmcompress = FALSE
 

int alwaysBindSocket = FALSE
 

struct auxSocket* asList = NULL
 

int audioChannels = 1
 

int audioIs8Bit = FALSE [static]
 

int audioUse8Bit = FALSE [static]
 

int bConferencing = FALSE
 

int bEchoPackets = FALSE
 

int bitsPerSample = 16
 

HCURSOR boltCursor = NULL
 

UINT bombTimer = 0 [static]
 

int breakinput = FALSE
 

int broadcasting = FALSE
 

int bytesPerSecond = 16000
 

int celpcompress = FALSE
 

int closeBomb = FALSE [static]
 

LPSTR commandLine = NULL
 

int compression = FALSE
 

int createSuccessful = FALSE [static]
 

int currentInputLength [static]
 

int currentInputSamples
 

int currentOutputRate = EXCHANGE_SAMPLE_RATE
 

HCURSOR earCursor = NULL
 

char* fileHelpKey = NULL
 

UINT fileOpenHelpButton
 

int gsmcompress = TRUE
 

gsm gsmh = NULL
 

HACCEL hAccel
 

int halfDuplex = FALSE
 

int halfDuplexTransition = FALSE
 

HWND hDlgAnswer = NULL
 

HWND hDlgChat = NULL
 

HWND hDlgConsole = NULL
 

HWND hDlgPropeller = NULL
 

HWND hDlgSpectral = NULL
 

int hideWhenMinimised = FALSE [static]
 

HINSTANCE hInst
 

int holped = FALSE
 

DWORD HtmlHelpContext = 0
 

HWAVEIN hWaveIn = NULL
 

HWAVEOUT hWaveOut = NULL
 

HWND hwndMDIClient
 

HWND hwndMDIFrame
 

int inputActive = FALSE
 

long inputPacketsLost = 0
 

int inputPaused = FALSE
 

int inputSoundBufferSize = 0 [static]
 

int inputTerm = FALSE [static]
 

LPWAVEHDR inWaveHeader[nWaveHeaders] [static]
 

int isWaveSound = FALSE
 

UINT jitterBuf = 1000
 

BOOL jitterPause = FALSE
 

UINT jitterTimer = 0 [static]
 

char kS0[] = "0" [static]
 

char kS1[] = "1" [static]
 

u_long Lazarus = 0
 

int LazarusLong = 0
 

int listeners = 0
 

int lookWho_sTalking = FALSE [static]
 

int lpc10compress = FALSE
 

int lpccompress = FALSE
 

int lurkInTray = FALSE [static]
 

int lwl_a_exact
 

char lwl_a_server[MAX_PATH]
 

char lwl_s_email[80]
 

int lwl_s_exact
 

char lwl_s_fullname[80]
 

char lwl_s_location[80]
 

char lwl_s_phone[80]
 

int lwl_s_publish
 

char lwl_s_server[MAX_PATH]
 

int lwl_t_diactive = FALSE [static]
 

int lwl_t_pending = FALSE
 

int lwl_t_published = FALSE
 

int lwl_t_resend = 0
 

int lwl_t_tock = 0 [static]
 

SOCKET lwlsock = INVALID_SOCKET [static]
 

long messageChecks = 0
 

int messageQueueSize = 120
 

long microsecondsPending = 0
 

int multiBrainDead = FALSE
 

int multiLoop = FALSE
 

int multiMemberships = 0
 

int netMaxSamples
 

int openConnections = 0
 

int openOnAnswerMessage = FALSE
 

int outputActive = FALSE
 

int outputInShutdown = FALSE
 

long outputPacketsLost = 0
 

long outputPending = 0
 

int outputTimeout = 0 [static]
 

long packetsReceived = 0
 

long packetsSent = 0
 

HCURSOR phoneCursor = NULL
 

public_key_package pk_package = PGP
 

int protocolAuto = TRUE
 

int protocolSent = PROTOCOL_SPEAKFREE
 

int protocolXmit = PROTOCOL_SPEAKFREE
 

LPSTR pszAppName
 

soundbuf receivedSoundBuffer [static]
 

LPSTR rememberedConnection[REMEMBER_CONNECTIONS]
 

int rememberedConnections = 0
 

char ringFileName[MAX_PATH] = "" [static]
 

int robust = 1
 

unsigned long rtpdesrand
 

char* rtpsdes = NULL
 

int rtpsdesl
 

int sampleAlignment = 2
 

int samplesPerSecond = 8000
 

SOCKET sCommand = INVALID_SOCKET [static]
 

SOCKET sControl = INVALID_SOCKET [static]
 

char* sdes = NULL
 

int sdesl
 

unsigned short seq
 

double smoothedMicrosecondsPending = 0.0
 

int spurt = TRUE
 

unsigned long ssrc
 

int startMinimised = FALSE [static]
 

unsigned long timestamp
 

INT tmAveCharWidth
 

INT tmHeight
 

HWND trayIconWindow = NULL
 

int useSendNotSendto = FALSE
 

char* vatid = NULL
 

int vatidl
 

int voxcompress = FALSE
 

int voxmode = IDM_VOX_NONE
 

int waAudio11025 = FALSE
 

int waAudioBeepOnTransmit = FALSE
 

int waAudioHalf = FALSE
 

UINT waAudioInDevice = (UINT) WAVE_MAPPER [static]
 

int waAudioNoOutputRateAdjustment = FALSE
 

UINT waAudioOutDevice = (UINT) WAVE_MAPPER [static]
 

int waAudioRingMaxVolume = FALSE
 

int waNetMultiTTLisChar = FALSE
 

int waNetNoConnect = FALSE
 

int waNetNoMsgLoopIns = FALSE
 

int waNetNoOutOverflow = FALSE
 

int waNetSynchronousGetHostname = 2
 

int waNetSynchronousGetHostnameAction = FALSE
 

int waNetUseSend = FALSE
 

int waProtNoHeartbeat = FALSE
 

int waProtNoRTCPCrypt = FALSE
 

int waProtNoRTP = FALSE
 

int waProtNoVAT = FALSE
 

int waProtUseLargerRTCPackets = FALSE
 

int waveHeadersAllocated = 0 [static]
 

rate_t xrate
 


Generated on Tue Feb 10 08:26:36 2004 for Speak-FreelyforWindows by doxygen1.2.18