Xref: utzoo comp.unix.questions:9532 comp.unix.wizards:11470 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!tektronix!uunet!unh!psc90!derykm From: derykm@psc90.UUCP (Dez) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Swapresponse (What is it?) Message-ID: <612@psc90.UUCP> Date: 2 Oct 88 14:55:00 GMT Reply-To: derykm@psc90.UUCP (Dez) Lines: 58 I received the program Bridge from comp.sources.unix. It was designed to run on BSD4.3 and a couple of other machines. The program compiled well, except for look_up.c. It would give me an error, which basically said, I don't understand "swapresponse". Does anyone know what this is, or have the source? I included a part of look_up.c. Thanks. Deryk --------------------------look_up.c------------------------------------- #ifndef lint static char sccsid[] = "@(#)look_up.c 1.1 86/02/05 SMI"; /* from UCB 1.2 83/03/28 */ #endif #include "talk_ctl.h" /* see if the local daemon has a invitation for us */ CTL_RESPONSE swapresponse(); check_local() { CTL_RESPONSE response; /* the rest of msg was set up in get_names */ msg.ctl_addr = ctl_addr; if (!look_for_invite(&response)) { /* we must be initiating a talk */ return(0); } /* * there was an invitation waiting for us, * so connect with the other (hopefully waiting) party */ current_state = "Waiting to connect with caller"; response = swapresponse(response); while (connect(sockt, &response.addr, sizeof(response.addr)) != 0) { ------------------------------etc.------------------------------------------ +-------------------+ + +--+----------------+ | + | + UUCP: | | Deryk Marien | | |-----|-----| decvax!unhd!psc90!derykm | | | | |-----|-----| | | (psc90!derykm) | | |-----|-----| {uunet,dartvax}!psc90!derykm | +----------------+--+ + | + +-------------------+ + BITNET : D_MARIEN@UNHH ==============================================================================