home *** CD-ROM | disk | FTP | other *** search
- 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
- From: phillips@qut.edu.au
- Newsgroups: comp.protocols.tcp-ip.ibmpc
- Subject: (FTP's PI) Receiver func in access_type: HELP!!!
- Message-ID: <1992Nov17.083719.58653@qut.edu.au>
- Date: 17 Nov 92 08:37:19 EST
- Organization: Queensland University of Technology
- Lines: 48
-
- Hi
-
- Can anyone help me with the "receiver" function passed to "access_type"
- programming interface??
-
- This is what my current "receiver" function looks like.
-
- int receiver(int handle, int flag, int len, char far *buf)
- {
- if (flag == 0)
- {
- count++;
- printf("Count is %d\n");
- buf = (char far *) NULL;
- }
- }
-
- Where COUNT is a global variable.
-
- What happens is the computer reboots whenever it receives a packet.
-
- I rarely program on DOS machines so the concept of Large memory models,
- TSR etc are foreign to me.
-
- Can anybody explain to me what Im doing wrong? Am I access the actual
- registers values by assuming that they are pushed onto the stack in
- that order??
-
- If you can help, please help me by using C for any explaination as my
- Assembler is so rusty I was thrown out in my last clean-up.
-
- Thanks in advance...
-
-
- Doug
-
- ---
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Doug Phillips
- Technical Services Section
- Faculty of Information technology
- Queensland University of Technology
- Brisbane Queensland
- Australia Earth
- 3rd planet from the Sun.
-
- E-mail: phillips@qut.edu.au
-
-