communication

How to change javacomm async. notification behavior?

I'm using the java comm library to listen for bytes coming in over a serial port. I have it setup for async. notification, i.e. have a class implementing SerialPortEventListener. Is there any way to set the threshold at which the SerialPortEvent.DATA_AVAILABLE event is called. In my case the library waits until about 20 bytes are rece...

Communication between two Flex applications

I have two web applications written in Flex I would like to integrate. I would like one Flex app (let's call it application A) to invoke second Flex app (let's call it application B). Application A has access only to swf file of application B (not source code). When application A invokes application B, it should be able to pass some data...

How to get Javascript to "communicate" with PHP

Hey All I have the following code (PHP): $link = array( "<ul> <li><a href="index.html" class="active">Home</a></li> <li><a href="whatwedo.html">What We Do</a></li> <li><a href="howitworks.html">How It Works</a></li> <li><a href="support.html">Support</a></li> <li><a href="lalalala...

Communicating multiple times with a subprocess

I'm trying to pipe input to a program opened as a subprocess in Python. Using communicate() does what I want, but it only does so once, then waits for the subprocess to terminate before allowing things to continue. Is there a method or module similar to communicate() in function, but allows multiple communications with the child proces...

Interprocess communication between a 2 applications.

Hi, I would like to transfer information between 2 process and the data that I pass between these 2 processes are COM visible types. What is the best way I can use to transfer information between these to processes. I know, we could do it using Named Pipes but not sure if we could transfer types using this. Can someone suggest me to a g...

Turn based web game in PHP - communication issue

Hi all! I am working on a turn based web game in PHP5. This is pretty simple game, a kind of board game: two people join a "session" and they play until one of them wins. My problem in nutshell: User A and User B play a game. User A finished his turn Request will be sent to the server to perform necessary operations. Now it is time ...

Socket Communication - StreamCorruptedException(Jboss Remoting)

Hi All, I am using EJB3 as the client socket and the server socket is a normal java class. My Application server is Sun GlassfishV2. I would like to communicate from the EJBBean(Client) to the server using Jboss Remoting. If I use transport protocol "sslsocket" in the InvokerLocator class means its working fine. But If I use the transpo...

GPRS Modem to Remote server communication

Hi, I want to use a GPRS modem with my microcontroller device (not computer) and on request from my computer located in remote location, the modem has to send data from attached device to my remote PC. My doubts are Whether any specific GPRS modem is required for this purpose How to get Static IP or Can we able to get static IP fo...

Specify clickable phone-number

With mailto: exisits a widely available possibility to specify an email address that opens the email-client if executed. Does exist somethin similar for phone-numbers, so that if it's used in a html-link or in a .net Process.Start-call, a mobile or a pc with a modem will call the specified number? ...

Javascript SWF Communication by Flashvar

I have a SWF which has two button one been Browse button and other bein upload. I dont Know whats the code behind the SWF file but being asked to pass flashvar variable like 'uploadURL ='+ ourl where ourl is url of the handle.aspx which handles the uploading operation I did all this and wrote code in handler.aspx which obtains file from ...

is it safe to read the pipe when the other side is writing to it?

fSuccess = ReadFile( hPipe, // pipe handle chBuf, // buffer to receive reply BUFSIZE*sizeof(TCHAR), // size of buffer &cbRead, // number of bytes read NULL); // not overlapped If not safe, how can I ensure the other side is not writing when reading a pipe in windows? ...

Possible channels of communication between Javascript on HTML page and a windows EXE ?

Hi all Here's the thing. A two-way communication (RPC-style) is needed between Javascript on HTML pages provided by a web server online (with session-management and whatnot) and a windows EXE application running on the PC of the website visitor. Both are parts of the same 'package' and should be able to communicate. There is the us...

Client-Server Communication with XML

I'm looking for java frameworks, patterns or technics which allow a client server architecture to communicate via xml. Any suggestions? ...

Getting Javascript to talk to PHP

On my page I have a table, and this table has a list of items plus an edit button. When the edit button is clicked, I want to fill the form with the information specific to that entry in the table. All the information is stored in a mySQL database and can be accessed by PHP. I need my javascript on the edit button to get the table row ...

Andriod USB communication

I need my app to connect to a PC via USB cable and continuously send/receive data. I wanna use ObjectInputStream/OutputStream for this. Is TCP the only way? Is the only way to have ADB installed and use ADB forward for this? Can't I transfer data without the user to have ADB installed? Thanks. ...

Why is performSelector:onThread:withObject:waitUntilDone: not recommended for frequent inter-thread communication.

Apple's Threading Programming Guide states that: Although good for occasional communication between threads, you should not use the performSelector:onThread:withObject:waitUntilDone: method for time critical or frequent communication between threads. Which begs the questions: Which is, then, the acceptable method for freq...

How to use Boost.Interprocess to stream data to other applications ?

The main application needs to update the shared memory at a fast frequency. And several consuming applications need to read from the shared memory to update the streamed data. main and consuming applications are different processes. How to implement this with Boost.Interprocess ? ...

Can two applications communicate by UDP packets?

I'm looking for a way to ease the difficulty transferring data from one application/process to another, but should have some sort of error recovering capbility. As UDP is an existing protocol that works well over network, I wonder if it can also be used by processes in the same OS(windows xp here) . If yes can you provide some core cod...

How can two applications/processes communicate by COM?

I'm looking for a way to ease the difficulty transferring data from one application/process to another. It's said to be better than UDP or TCP for communicating by processes in the same OS(windows xp here) . Can you provide some core code that illustrate this? ...

Is there a way to forbid connection from outside of the local session in Windows ?

Let's consider I have a service in my user session that listens on some TCP port. Is there a way, on Windows, to only authorize processes from the same session to connect, and to deny connections from the "outside" ? ("outside" means another computer, and another user session on the same host). I will also accept any alternative to TCP...