Re: How can a message receiver know the sender?



Randal L. Schwartz schrieb:
"Emptist" == Emptist <jimg1968@xxxxxxxxx> writes:

Emptist> I am interested in finding some easy and efficient way to let message
Emptist> receiver know the sender for simpler code.

You mean: "thisContext sender"?

One Dolphin solution is to implement (in Object):
__messageSend: anInteger
| frame |
frame := Processor activeProcess topFrame sender.
anInteger timesRepeat: [frame := frame sender].
^MessageSend
receiver: frame receiver
selector: frame method selector
arguments: frame arguments


Based on anInteger you can get the caller chain.

CU,

Udo
.



Relevant Pages

  • Re: TSO and IPoIB performance degradation
    ... Could a solution be to simply look at the frame size, ... receiver is CPU limited. ... The old code would delay ACKs forever if the CPU of the ... sender to emit an enormous burst of data. ...
    (Linux-Kernel)
  • Re: How to Write FSM???
    ... Both transmitter and receiver should be configured to work at the same speed. ... Receiver uses line transitions to resync its local clock. ... For example, the receiver must send an error frame if a bit-stuffing error, frame error, ... So, to answer your question about FSMs and counters, yes. ...
    (comp.lang.vhdl)
  • Re: Experimental disproof of the theory of Relativity
    ... when in fact the experimental measurement is ... The reason there was no Doppler effect was because in the frame of the ... the emitter and receiver ARE AT REST TO EACH OTHER. ... >> that acceleration is an issue.) ...
    (sci.physics.relativity)
  • Re: Androcles and Draper resume Einstein 1905
    ... >> A. The rod is stationary in the frame of reference. ... >> the time of receipt at the receiver. ... The receiver is at the same end of the stationary rod as the ... Take a frame k that is moving toward positive x ...
    (sci.physics.relativity)
  • Re: 2" square stock strength question
    ... >strong poprivets to mount the receiver to the sheet metal under the SUV ... camper I've ever seen in my life behind there car. ... member up the frame and reinforce the back cross member to repair it. ... This is the second absolutely lousy poorly thought out welding job ...
    (rec.crafts.metalworking)

Loading