home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / protocol / tcpip / ibmpc / 6348 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.6 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!wupost!darwin.sura.net!sgiblab!munnari.oz.au!bunyip.cc.uq.oz.au!news.qut.edu.au!qut.edu.au!phillips
  2. From: phillips@qut.edu.au
  3. Newsgroups: comp.protocols.tcp-ip.ibmpc
  4. Subject: (FTP's PI) Receiver func in access_type: HELP!!!
  5. Message-ID: <1992Nov17.083719.58653@qut.edu.au>
  6. Date: 17 Nov 92 08:37:19 EST
  7. Organization: Queensland University of Technology
  8. Lines: 48
  9.  
  10. Hi
  11.  
  12. Can anyone help me with the "receiver" function passed to "access_type"
  13.  programming interface??
  14.  
  15. This is what my current "receiver" function looks like.
  16.  
  17.     int receiver(int handle, int flag, int len, char far *buf)
  18.     {
  19.         if (flag == 0)
  20.             {
  21.             count++;
  22.             printf("Count is %d\n");
  23.             buf = (char far *) NULL;
  24.             }
  25.     }
  26.  
  27.     Where COUNT is a global variable.
  28.  
  29. What happens is the computer reboots whenever it receives a packet.
  30.  
  31. I rarely program on DOS machines so the concept of Large memory models,
  32. TSR etc are foreign to me.
  33.  
  34. Can anybody explain to me what Im doing wrong?  Am I access the actual
  35. registers values by assuming that they are pushed onto the stack in 
  36. that order??
  37.  
  38. If you can help, please help me by using C for any explaination as my
  39. Assembler is so rusty I was thrown out in my last clean-up.
  40.  
  41. Thanks in advance...
  42.  
  43.  
  44. Doug
  45.  
  46. ---
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. Doug Phillips
  49. Technical Services Section
  50. Faculty of Information technology
  51. Queensland University of Technology
  52. Brisbane    Queensland
  53. Australia  Earth
  54. 3rd planet from the Sun.
  55.  
  56. E-mail: phillips@qut.edu.au
  57.  
  58.