Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!news.cs.indiana.edu!att!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.comm Subject: Re: MacTCP sample code + any error handling Message-ID: <1991May10.120723.27241@ux1.cso.uiuc.edu> Date: 10 May 91 12:07:23 GMT References: <7527@munnari.oz.au> <2582@plx.UUCP> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 24 sailu@plxsun.uucp (Sailu Reddy) writes: >Has any one ever obtained NCSA TELNET source code? I am very interested to find >out how the network error handling was done. I seem to have a frequent hangups >in my applications whenever the host died or some form of network error occured It sounds to me like you don't have your asynchronous notification routine declared properly. When a connection gets broken due to a host going down or other error, this routine is going to get called. Make sure it is declared properly (as a pascal routine), will be available during interrupt, and does not use globals unless setup properly. Not having these correct would almost certainly cause your crash. I would recommend *against* looking at the NCSA Telnet source. It is not by any means a good or clear piece of code. Find something else if you can. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD