benilla-re systems structs docs

ResolveRequest

struct · os · 52 bytes

Meaning
Holds a host resolve request: link, host text, id, thread, callback, done flag and address list
Confidence
verified, proof one
Finding
net/dial#resolver-hand-off

Finding: Resolver hand-off in net: dial

The thread adds each entry, under the OsTcp object's lock (an event at +0x618 used as a mutex), to the list at request +0x24: capacity, count +0x28, data +0x2c, step. At the list's end it stores 1 at +0x20, the flag, and sets the event at the object's +0x544. A request missing from the object's list, or a hostent whose first address pointer is null, ends the thread before the flag. The OsTcp thread 0x43ae20, named OsTcp_Base, takes requests off the list's head while the head's flag is set and, on that thread, calls each one's callback through 0x43b810 with the data pointer, the count and the argument, then frees its host copy, thread handle and list.

The derivation is in the doc.

Fields 13

offsetsizetypenamemeaningconfidencefinding
0x00004ResolveRequest *m_prevHolds the previous link: the list head's link for the first request, else the request before itverified, proof onenet/dial#resolver-hand-off
0x00044ResolveRequest *m_nextHolds the next request of the list; an odd value ends itverified, proof onenet/dial#resolver-hand-off
0x00084char *m_hostHolds the copy of the host text the request ownsverified, proof twonet/dial#resolver-hand-off
0x000c4char *m_remainingHolds the text not yet cut into pieces, null once the last piece is takenverified, proof onenet/dial#resolver-hand-off
0x00104uint32_tm_idHolds the request idverified, proof twonet/dial#resolver-hand-off
0x00144void *m_threadHolds the handle of the resolver threadverified, proof twonet/dial#resolver-hand-off
0x00184void *m_callbackHolds the function called with the finished listverified, proof twonet/dial#resolver-hand-off
0x001c4void *m_userHolds the argument passed to the callbackverified, proof twonet/dial#resolver-hand-off
0x00204uint32_tm_doneHolds 1 once the thread has ended the listverified, proof twonet/dial#resolver-hand-off
0x00244uint32_tm_capacityHolds the capacity of the address list in entriesverified, proof twonet/dial#resolver-hand-off
0x00284uint32_tm_countHolds the count of entries in the address listverified, proof twonet/dial#resolver-hand-off
0x002c4void *m_entriesHolds the address list, 16-byte socket addressesverified, proof twonet/dial#resolver-hand-off
0x00304uint32_tm_stepHolds the step by which the address list growsverified, proof twonet/dial#resolver-hand-off