communication

ZMQ DEALER - ROUTER Communication

蹲街弑〆低调 提交于 2019-11-28 12:59:19
I am currently working on a project that requires some communication over the network of a different data types from some entities of a distributed system and I am using ZMQ. The main goal of the project is to have a central node which services clients which can connect at any time. For each client connected, the central node should manage the message communication between the two. Currently, and by the moment, all communication is happening over TCP. The clients need to send and receive messages at any time so they are ZMQ_DEALER type sockets and the central node is ZMQ_ROUTER Initially, the

WebRTC Between two pages in the same machine

自作多情 提交于 2019-11-28 11:58:24
问题 I'm trying to implement a mechanism to send textual data (JSON for instance) in from page to page, using javascript at the same machine. I found some code and wrapped it but it only works at the same page. At the moment I don't want to use a WwebRTC framework, only adapter.js. //Must include adapter.js before var WebRTCManager = (function () { 'use strict'; //Ctor function WebRTCManagerFn() { console.log('WebRTCManagerFn ctor reached'); this._events = {}; this._localConnection = null this.

sending packets over serial comms java

我是研究僧i 提交于 2019-11-28 11:28:39
问题 I'm writing a java application that communicates with an external device over a serial port. I think I can connect to the device & send/receive data ok (I don't have access to the device at the moment..I'm using an emulator) I just need some advice on how I should format the data I'm sending. The spec says it should be sent in byte format..So if I have something like the following packet to send AA|0D|07|09|0A|0B|03|01|02|03|04|CSM|CSM is this the type of thing I should be doing outputStream

Java external program

ぐ巨炮叔叔 提交于 2019-11-28 10:34:09
问题 I'd like to start external third party application from my Java application. This external application should run all the time whilst my java application runs. From time to time (it depends on user interaction) my java app should be able to read and write to this external application via stdin and stdout . How can I do that? 回答1: Is ex-app native code, or another Java program? If it's native code, look at http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Process.html and http:/

Communication between C# applications - the easy way

六眼飞鱼酱① 提交于 2019-11-28 08:24:49
I have two C# programs and I want to send some data back and forth between them. (And check if the data arrived to the other application.) The two programs will always run on the same computer, so no networking capability is required. I've already read some questions with similar topics here, but I'm not entirely sure which is the right method for me. (WCF, Remoting, etc.) What I want to know, is which one is the easier to implement for a beginner in C#? (I don't want it to get too complicated anyway, it's only a few integers and some text that I want to send.) If there isn't a real difference

Communication between windows/tabs with JavaScript [duplicate]

若如初见. 提交于 2019-11-28 07:51:48
问题 This question already has answers here : Communication between tabs or windows (9 answers) Closed 2 years ago . How can I have two tabs (or windows) that are on the same domain be able to talk to each other without having to have one window instance the other. Edit: Why was this marked as duplicate when this was asked before the other question? 回答1: Check this one http://bytes.com/topic/javascript/insights/913606-javascript-communication-between-browser-windows-tabs its all explained there.

Developing two android apps and communicating between two

↘锁芯ラ 提交于 2019-11-28 06:34:07
I am developing two applications names A and B . Application A as activity named MainActivity , service called UpdateService , BroadcastReciever called UpdateReceiver . Application B as activity named TestActivity , service called DoService , BroadcastReciever called DoReceiver . In my application B , I want to access few methods and code from MainActivity which is in Application A . In this way, I need full control of Application A code to access it in my application B . How can I achieve it? You cannot directly access methods of Activity in different app. Broadcast would work but if you want

How to get my non-loopback network ip address in C?

ⅰ亾dé卋堺 提交于 2019-11-28 05:31:10
问题 For a communication between two hosts, I need to send the IP address of my host to the other site. The problem is that if I request my IP address, it might be that I get back my local loopback IP addres (127.x.x.x) , not the network (ethernet) IP address. I use the following code: char myhostname[32]; gethostname(myhostname, 32); hp = gethostbyname(myhostname); unsigned my_ip = *(unsigned*)(hp->h_addr); if( (my_ip % 256) == 127) { /* Wrong IP adress as it's 127.x.x.x */ printf("Error, local

Pass data from a ASP.NET page to ASCX user controls loaded dynamically

霸气de小男生 提交于 2019-11-28 04:59:24
I'm developing an ASP.NET application with C# and Ajax. I have a page that holds user controls loaded dynamically. I need to pass some data (integer values and some strings) to the user control that has been loaded dynamically . Now I use Session to pass these values, but I think I can use another way; something like VIEWSTATE or hidden input. What do you recommend me? UPDATE: The fact that I load the controls dynamically is important because controls are loaded on every postback, and I can't store any value on controls. Create a property on your user control with the datatype of the data you

What is spark.driver.maxResultSize?

ぐ巨炮叔叔 提交于 2019-11-27 20:42:20
问题 The ref says: Limit of total size of serialized results of all partitions for each Spark action (e.g. collect). Should be at least 1M, or 0 for unlimited. Jobs will be aborted if the total size is above this limit. Having a high limit may cause out-of-memory errors in driver (depends on spark.driver.memory and memory overhead of objects in JVM). Setting a proper limit can protect the driver from out-of-memory errors. What does this attribute do exactly? I mean at first (since I am not