Can't locate info on the "reason" field of the TDiscon struct
Can't locate info on the "reason" field of the TDiscon struct
- Subject: Can't locate info on the "reason" field of the TDiscon struct
- From: Dakidd <email@hidden>
- Date: Fri, 19 Nov 2004 09:02:19 -0800
Machine: PowerMac 7500/G4@350, RAM and HD real-estate for days, MacOS 9.1
("X-related" ideas are useless to me unless they're equally valid on 9.1
running OpenTransport - I have neither capability for, nor interest in,
developing for X at the moment) TCP/IP control panel shows version 2.5.
Subject about covers it, I guess...
I'm trying to locate a discussion of the various values that might be
returned in the "reason" field of the TDiscon struct that gets passed into
OTRcvDisconnect(). I've managed to spot loads of places that tell me that
it's a UInt32 value, but nothing anywhere seems to go into any more depth
about the meanings of possible values it contains, beyond saying that it's
(quoting from the Networking with Open Transport PDF file dated November
'97)
"A 32-bit value specifying an error code that identifies the
reason for the disconnection. These codes are supplied by
the protocol. For additional information, consult the
documentation for the protocol you are using."
I'd love to. Since the OTConnect() call that's giving me the OTLookError
(and thereby triggering my call to OTRcvDisconnect()) is happening against
an endpoint that's set up for TCP/IP work, it follows that I need to be
looking at the TCP/IP services section, no? But nothing I can see, whether
by leafing through my hardcopy version of the PDF file, searching within
the PDF itself using the capabilities of Acrobat Reader, googling
site:apple.com until my eyes are crossed, or searching through all of the
various OpenTransport-related *.h files that seem to make any amount of
sense at all, tells me anything more about the "reason" field than what I
already know: It's a 32-bit value that tells me why a connection didn't
work, and the values it might contain are defined by the protocol being
used. Useful information, sure - But not an explanation of the value I'm
seeing come back in it, and definitely not any kind of pointer to where to
find such information. (In the particular case I'm looking at, the value
I'm getting back is 21/0x0000000015 - Is this a transient problem? Should I
re-try the OTConnect, possiby after some unknown time interval? Should I
abandon any hope of connecting to the host involved? Should I wait a given
interval and try again? Have I done something wrong, and trying to tell me
this? <shrug> Dunno - I've got no clue what reason 0x00000015 means.)
Anybody know where I should be looking for a list of possible "reason"
values (and their meanings) that might be returned in the TDiscon struct
when talking about a TCP/IP endpoint? After chasing this around over the
course of the past 3 days or so and coming up blank, I'm pretty well
stumped.
Don Bruder - email@hidden <--- Preferred Email - unmunged
I will choose a path that's clear: I will choose Free Will! - N. Peart
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden