Xref: utzoo comp.unix.wizards:11206 comp.unix.questions:9273 Path: utzoo!attcan!uunet!unh!psc90!pdprogs5 From: pdprogs5@psc90.UUCP (DEZ) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Swapresponse, What is it? Keywords: Swapresponse Message-ID: <582@psc90.UUCP> Date: 18 Sep 88 23:02:26 GMT Reply-To: pdprogs5@psc90.UUCP (DEZ) Distribution: na Lines: 57 Organization:Plymouth State College Computer Services 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 ==============================================================================