ipc

How to pass a Bluetooth Socket to another Activity using Application interface

被刻印的时光 ゝ 提交于 2019-12-22 06:00:16
问题 so from what i gather, Socket connections are neither serializable or parcelable, but i need to pass a bluetooth connection to another Activity. i do not want to write a Service as a middle man, so please don't post this as a solution. i've heard that there is a way to pass these types of Objects using a custom Application interface, but i cannot, for the life of me, find a working example of this. i've seen plenty of documentation that says something to the effect of "this is possible" but

process.send is sync/async on *nix/Windows?

十年热恋 提交于 2019-12-22 05:31:42
问题 I have a Node.js process (not a server) that forks N child processes. At some point there might be more than 50 CPs. So I started thinking that if process.send (IPC) is truly blocking then this might be a big penalty experienced by each CP. Because what happens in my program is that each CP uses process.send to send a message to the single parent process so that the parent will do the logging, so that the logging will be synchronized. But if process.send blocks then at some point the parent

using EOF for signaling on unnamed pipes

社会主义新天地 提交于 2019-12-22 04:36:13
问题 I have a test program that uses unnamed pipes created with pipe() to communicate between parent and child processes created with fork() on a Linux system. Normally, when the sending process closes the write fd of the pipe, the receiving process returns from read() with a value of 0, indicating EOF. However, it seems that if I stuff the pipe with a fairly large amount of data (maybe 100K bytes0 before the receiver starts reading, the receiver blocks after reading all the data in the pipe -

Why use parcelable when you can perform the same task using static variables?

喜夏-厌秋 提交于 2019-12-22 04:15:30
问题 i am new in android and java ... i am reading from couples of day about android parceling tutorial for transfer data or variables values from one activity to other or one class to other ... but i am not so understood about that. can u tell me that is it necessary to use Parcelable for this purpose because same task can also be perform using static key word for variables as string,int or array type then why parcelable pls explain in detail .. thanks for explanation in advance please provide

Shared memory vs. Go channel communication

寵の児 提交于 2019-12-22 01:34:00
问题 One of Go's slogans is Do not communicate by sharing memory; instead, share memory by communicating. I am wondering whether Go allows two different Go-compiled binaries running on the same machine to communicate with one another (i.e. client-server), and how fast that would be in comparison to boost::interprocess in C++? All the examples I've seen so far only illustrate communication between same-program routines. A simple Go example (with separate client and sever code) would be much

Accessing 32-bit DLLs from 64-bit code

此生再无相见时 提交于 2019-12-21 23:51:43
问题 I need to migrate a 32bit dll in order to use it in a 64bit C# (and also C++) applications. The dll is write in unmanaged delphi code. I can't recompile the dll and the only way is to use the interprocess communication (IPC). I search for a long time but i found not many information about. The best guide i found is in this link: Accessing 32-bit DLLs from 64-bit code. I followed this guide for achieve my goal because very often is quoted in this forum. So the guide explain I have to make

Communication between Windows Universal App and Desktop application (Win 10)

时光怂恿深爱的人放手 提交于 2019-12-21 22:42:58
问题 Is there any way to realize communication between a Windows Universal App and a standard Desktop application running at the same computer? I read that UAs don't support IPC. Instead they use those so called background agents. But is it possible to use those background agents not to communicate with a UA but rather a desktop application or is this completely suppressed? The reason is, that I already have a desktop application and I would like to add Cortana support to it, without too much

Using AIDL with Mono for Android

て烟熏妆下的殇ゞ 提交于 2019-12-21 18:00:33
问题 Not being patient enough for the Mono for Android book I started going through the Android programming constructs and translate them to the Mono infrastructure. Seems like most the time the good folks at Xamarin and I think along similar lines so progress has been relatively pain free but on the AIDL issue I'm stuck. Was AIDL implemented? If so, how can I use it? If not, what is the recommended way to use IPC? 回答1: AIDL is, lamentably, something that isn't readily supported at this time. It

socket passing between processes

北城余情 提交于 2019-12-21 17:20:14
问题 Is there a way to pass a socket between processes (not same address space) in Windows? I find this info Shared Sockets, therefore believe that it is possible. " The WSADuplicateSocket function is introduced to enable socket sharing across processes "... More info : at source code of Apache (httpd-2.2.11-win32-src.zip) have usage for api WSADuplicateSocket with comments. [EDIT] Recently I find this great sample about this question. How duplication is done in the unmanaged world - Socket

How do I do a non-blocking IPC read on Windows?

吃可爱长大的小学妹 提交于 2019-12-21 13:06:50
问题 I have a Perl script that uses an external tool (cleartool) to gather information about a list of files. I want to use IPC to avoid spawning a new process for each file: use IPC::Open2; my ($cin, $cout); my $child = open2($cout, $cin, 'cleartool'); Commands that return single-lines work well. e.g. print $cin "describe -short $file\n"; my $description = <$cout>; Commands that return multiple lines have me at a dead end for how to consume the entire response without getting hung up by a