Questions tagged [message-passing]

Message passing is a data transfer mechanism that is used in various forms in a number of programming languages

The basic form of data transfer in programming languages is the assignment statement. It is carried out by a (computing) agent that moves data from one part of the memory to another. The substantial difference between assignment and message passing is that message passing incorporates two active agents, a sender and a receiver. The sender has exclusive control over the source locations of the data to be transferred, while the receiver has exclusive control over the destination of the data.

Message passing can be classified by a number of criteria, the most important of which is

  • Mode of operation:

    • Synchronous (also called rendezvous or handshaking): Sender and receiver perform their transfer operations simultaneously. They may have to wait before transfer becomes possible.
    • Asynchronous: Sender is allowed to transfer data to a temporary location where it can be accessed by the receiver. Sender does not have to wait if temporary storage is available.
  • Addressing:

    • Direct: Sender and receiver refer to each other directly, by using unique IDs.
    • Indirect: There is an auxiliary object (channel) that connects the sender and the receiver, who only refer to the channel during message passing.
409 questions
0
votes
1 answer

Repeatedly Grab DOM in Chrome Extension

I'm trying to teach myself how to write Chrome extensions and ran into a snag when I realized that my jQuery was breaking because it was getting information from the extension page itself and not the tab's current page like I had expected. Quick…
0
votes
4 answers

Not Properly Passing Data Between Views

I'm trying to send text generated by the user from the AuthenticationViewController to MainProfileViewController. I'm not receiving an error report. The label just doesn't even appear in the MainProfileViewController. The outlets are correctly…
user2605157
  • 579
  • 3
  • 8
  • 13
0
votes
2 answers

Passing messages between Android activities?

I am working on an app and need help with message passing between two screens. The first screen is a Sign-up form with an image button that is supposed to show the user's display pic. When the user first opens this screen, the ImageButton uses a…
Darth Coder
  • 1,738
  • 7
  • 33
  • 56
0
votes
3 answers

passing data from one view controller to another view controller

I have 5 viewcontrollers lets say A,B,C,D and E and all these viewcontrollers will be pushed to navigation controller as A->B->C->D->E. I have an array in A and I need to pass this to array E. In A, I should not create object for E and vice…
satyanarayana
  • 265
  • 4
  • 14
0
votes
1 answer

chrome extension message passing no response

I'm working on a pretty simple browser extension, but can't get the message passing to work: I can send messages, but the response is never delivered! My code: Its mostly just a copy from the browserActions tutorial, contentscripts tutorial…
Nils Ziehn
  • 4,118
  • 6
  • 26
  • 40
0
votes
1 answer

Will C functions with Objective-C be inlined?

Will the typical compiler inline a C function that makes one or more Objective-C method calls? E.g.: NSUInteger AACStringGetLength(NSString *string) { return [string length]; } Bonus points for a thorough proof with explanation. What other…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
0
votes
2 answers

How to update contents of rich text box in form1 with values coming from form2 without closing form2?

I want to pass values between two Forms (c# both in active states). How can I do it? I have two forms: Form1 and Form2. Form1 contains a rich text box and a button. When I click on that button, Form2 should open and a text in rich text box should be…
0
votes
1 answer

Chrome extension: Port: Could not establish connection

My manifest: { "name":"name", "version":"0.1", "manifest_version":2, "description":"name app", "background":{ "scripts":[ "scripts/modernizr.min.js", "scripts/background.js" ], …
Lebowski156
  • 951
  • 5
  • 11
  • 34
0
votes
1 answer

messaging to popup.html from content script into a div

I'm really at a loss on how do do this. I've looked over chrome's message passing api, but still unclear on how I message between a content script and popup.html (popup.js) I have a content script that's being loaded through background.js via a…
0
votes
1 answer

Use case classes as messages in Scala

Am following sample code in the Horstman book (pages 291-292) to define and use case classes as messages in a simple Scala actor system. The problem is the case classes are not being recognized in the receive pattern matching and control is falling…
0
votes
1 answer

What other stuff can a Scala message tell you?

Given the Scala code below: actor1 actor2 ! 'some_message actor2 receive (or react) { case 'some_message sender ! 'ok_message What info about the sender (actor1) can actor2 get ? How can it tell which actor the message came from…
0
votes
1 answer

IPCS message passing related queries

I am dealing with Message Passing IPCS method. I do have few question regarding this: KEY field in ipcs -q shows me 0x00000000 what does this means ? Can i see what messsage is passes using msqid ? If two entries are present (for a particular…
Mayank Jain
  • 2,504
  • 9
  • 33
  • 52
0
votes
3 answers

Passing Values from one activity to another, using Object and getting a resource not found error.

I have two pages in my application, I am passing one certain value from one page to another: Class Level Definition: (From the sending class) BuyGold50 BG5 = null; In onCreate() of the same class: BG5 = new BuyGold50(); In a certain function of…
user2613996
  • 117
  • 1
  • 2
  • 8
0
votes
1 answer

How can I use Content Scripts and Message Passing to gather metadata from a website and send it back to my Chrome Extension?

I am creating a Chrome Extension and am very confused on how content scripts and message passing works. Below I detail the goals of my extension and the code I have so far. The extension needs to: Be active for all webpages Gather the metadata…
0
votes
3 answers

passing values string values to an object and recieving a string in return in ios

Hi a very simple app it takes in 2 arguments via 2 text boxes, and then totals them and displays them in a label called result. The idea is to have it handled via an object called brain, for which in the later part i have given the code. problem is…