[comp.sys.mac.programmer] AppleTalk Interface bug in Think C?

d90-erl@dront.nada.kth.se (Erland Lewin) (02/12/91)

  We are having a very strange problem with AppleTalk in ThinkC v4.02.

  We have written a client and a server program. The server uses atpOpenSocket
 and NBPRegister, then the Client finds him via NBPLookup. So far everything 
 works perfectly.

  But then the Server does an atpGetRequest, and the Client an
 atpRequest. This does not work. When the same calls with the same
 parameters are made in MPW Pascal, everything works perfectly.

  Has anyone else solved similar problems, or perhaps have some Think
 C source code demonstrating the use of atpRequest and atpGetRequest?

    Thanx for your help!



=============================================================
Erland Lewin    d90-erl@dront.nada.kth.se      Happy Hacking!
=============================================================

peirce@outpost.UUCP (Michael Peirce) (02/13/91)

In article <1991Feb12.130352.25787@nada.kth.se>, d90-erl@dront.nada.kth.se (Erland Lewin) writes:
> 
> 
>   We are having a very strange problem with AppleTalk in ThinkC v4.02.
> 
>   We have written a client and a server program. The server uses atpOpenSocket
>  and NBPRegister, then the Client finds him via NBPLookup. So far everything 
>  works perfectly.
> 
>   But then the Server does an atpGetRequest, and the Client an
>  atpRequest. This does not work. When the same calls with the same
>  parameters are made in MPW Pascal, everything works perfectly.

Are you using the "new" preferred AppleTalk interface as documented
in Inside Macintosh volume V?  It appears you aren't.  Check them
out, the old routines (that use Network Events) are not suppose to
be used any more.

-- michael


--  Michael Peirce         --   outpost!peirce@claris.com
--  Peirce Software        --   Suite 301, 719 Hibiscus Place
--  Macintosh Programming  --   San Jose, California 95117
--           & Consulting  --   (408) 244-6554, AppleLink: PEIRCE

-- Ask me about AppSizer (and ask Claris about Public Folder :-)