[comp.sys.mac.programmer] AppleTalk problem

msurlich@faui44.informatik.uni-erlangen.de (Matthias Urlichs ) (06/24/88)

The following problem surfaced (the SelfSend flag was TRUE,
new Pascal interface used):

OpenSocket();
GetRequest(async);
ProcessRequest();
SendResponse();
CloseSocket();

works the first time. The second time, OpenSocket returns the same
socket number, but GetRequest() then never gets anything.
(The requests were sent from the same Mac under MultiFinder because
I don't have two Macs.)

Any clues as to what happens here and how to avoid it?
Apple: Is this a bug?

ewa@mbongo.ucsd.edu (Eric Anderson) (06/04/91)

I'm having trouble with PNSendRequest and PGetRequest between two sockets
on the same Mac IIcx with System 6.0.5.  Here's what happens:

PLookupName(...) finds the intended receiver.  The address is extracted.
PNSendRequest(...) is called, sending to that socket - owned by another
application on the same Mac.
PGetRequest(...) is called by the other application, then PSendResponse()

The problem?  This works fine when
	1. AppleTalk is active, but no network is connected to the Mac
	2. AppleTalk is active, and a simple LocalTalk network is connected

This *doesn't* work when
	3. AppleTalk is active, and the LocalTalk network is connected both
	   to the Mac and (elsewhere) to an Ethernet backbone, which connects
	   to other LocalTalk networks.

	   In this case, PGetRequest never gets the request, and PNSendRequest
	   returns error reqFailed, "Retry count exceeded".

PSendSelf is set to True - I don't think that is the problem.
Remember, these requests should never leave the machine in the first place!
What's going on?  Any help or hints would be greatly appreciated!

Eric Anderson                                      ewa@cs.ucsd.edu
Department of Computer Science and Engineering
University of California, San Diego                                             
9500 Gilman Drive 0114
La Jolla, CA  92093-0114                                              

peirce@outpost.UUCP (Michael Peirce) (06/12/91)

In article <676362343.32@egsgate.FidoNet.Org>, Eric.Anderson@f98.n250.z1.FidoNet.Org (Eric Anderson) writes:
> 
> I'm having trouble with PNSendRequest and PGetRequest between two sockets
> on the same Mac IIcx with System 6.0.5.  Here's what happens:
> 
> PLookupName(...) finds the intended receiver.  The address is extracted.
> PNSendRequest(...) is called, sending to that socket - owned by another
> application on the same Mac.
> PGetRequest(...) is called by the other application, then PSendResponse()
> 
> The problem?  This works fine when
> 	1. AppleTalk is active, but no network is connected to the Mac
> 	2. AppleTalk is active, and a simple LocalTalk network is connected
> 
> This *doesn't* work when
> 	3. AppleTalk is active, and the LocalTalk network is connected both
> 	   to the Mac and (elsewhere) to an Ethernet backbone, which connects
> 	   to other LocalTalk networks.
> 
> 	   In this case, PGetRequest never gets the request, and PNSendRequest
> 	   returns error reqFailed, "Retry count exceeded".
> 
> PSendSelf is set to True - I don't think that is the problem.
> Remember, these requests should never leave the machine in the first place!
> What's going on?  Any help or hints would be greatly appreciated!

The only difference that comes to mind between the two setups is that
in the first two cases, you only have one network so the network number
isn't important.  In the third case there are many networks.

Double check your handling of the network number.

--  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

ewa@beowulf.ucsd.edu (Eric Anderson) (06/21/91)

============
I never got any replies to this, until a couple days ago someone wrote and
said "didn't you get my letter?"  - if you replied, please reply again to
ewa@cs.ucsd.edu.  Thanks - Eric
============

I'm having trouble with PNSendRequest and PGetRequest between two sockets
on the same Mac IIcx with System 6.0.5.  Here's what happens:

PLookupName(...) finds the intended receiver.  The address is extracted.
PNSendRequest(...) is called, sending to that socket - owned by another
application on the same Mac.
PGetRequest(...) is called by the other application, then PSendResponse()

The problem?  This works fine when
	1. AppleTalk is active, but no network is connected to the Mac
	2. AppleTalk is active, and a simple LocalTalk network is connected

This *doesn't* work when
	3. AppleTalk is active, and the LocalTalk network is connected both
	   to the Mac and (elsewhere) to an Ethernet backbone, which connects
	   to other LocalTalk networks.

	   In this case, PGetRequest never gets the request, and PNSendRequest
	   returns error reqFailed, "Retry count exceeded".

PSendSelf is set to True - I don't think that is the problem.
Remember, these requests should never leave the machine in the first place!
What's going on?  Any help or hints would be greatly appreciated!

Eric Anderson                                      ewa@cs.ucsd.edu
Department of Computer Science and Engineering
University of California, San Diego                                             
9500 Gilman Drive 0114
La Jolla, CA  92093-0114