Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!oliveb!felix!ccicpg!arnold!dave From: dave@arnold.UUCP (Dave Arnold) Newsgroups: comp.sys.att Subject: Re: Using the modem on the 3B1 (7300) Message-ID: <222@arnold.UUCP> Date: Sun, 20-Sep-87 18:25:31 EDT Article-I.D.: arnold.222 Posted: Sun Sep 20 18:25:31 1987 Date-Received: Sat, 26-Sep-87 19:02:31 EDT References: <510@pttesac.UUCP> Organization: Mission Viejo, Ca Lines: 39 Keywords: dial(3C), modem, 7300 Summary: Here is an example of using dial(3c) #include main() { int fd; int baud; char line[20]; char telno[30]; CALL call; struct termio tty; printf("Line? "); scanf("%s", line); printf("Baud? "); scanf("%d", &baud); printf("Number? "); scanf("%s", telno); ioctl(0, TCGETA, &tty); call.attr = &tty; call.baud = baud; call.speed = baud; call.line = line; call.telno = telno; call.modem = 0; if((fd = dial(call)) == -1) exit(1); printf("fd = %d\n", fd); printf("hit return to undial\n"); scanf("%s", line); printf("Before undial()\n"); undial(fd); } -- Name: Dave Arnold USmail: 26561 Fresno, Mission Viejo, Ca, 92691 USA DDD: Voice: +1 714 586 5894, Data: +1 714 458 6563 (nuucp) UUCP: ...!uunet!ccicpg!arnold!dave