ipc

Merging programs of different languages

断了今生、忘了曾经 提交于 2019-12-08 09:10:41
问题 I have three programs (one in C++ + WinAPI, another one in C# .NET and the last one in Java) with different functions. I am about to choose one and implement functions of the other two. Is it possible to somehow merge them? I need to have them in one GUI, under one process (at least visually). IPC isn't a problem. Thanks for anything 回答1: I think the best/easiest thing you could do is make the GUI only in C#, in windows clients you could use Windows Forms or WPF, in web based you can use ASP

Can iOS apps communicate via sockets?

旧时模样 提交于 2019-12-08 09:03:39
问题 I'm going to develop few apps for iOS. Can they communicate to each other via sockets? Let's say one app runs as server (even in background mode) and another as client connects to server app and perform some communication. Does it violate any App Store rules? Any available IPC in iOS if my idea is not working for some reason? 回答1: Of course you can and it doesn't violate any rules. Just just the CoreFoundation libraries. There's no point in me describing it to you if it already has been all

Checking IPC Shareable lock

青春壹個敷衍的年華 提交于 2019-12-08 08:12:44
问题 How can I check if a lock is held by someone else while using IPC::Shareable in perl. I have the below code: my $resource = 0; my $resource_handle = tie $resource, 'IPC::Shareable', undef , { destroy => 1 }; my $child = fork; unless ($child) { $resource_handle -> shlock(); sleep 10; $resource_handle -> shunlock(); exit(0); } sleep 2; if ($resource_handle -> shlock(LOCK_EX)) { print "Got lock in parent\n"; $resource_handle -> shunlock(); } else { print "The shared resource is locked\n"; } This

ipc using Shared and as global MMF

狂风中的少年 提交于 2019-12-08 07:31:01
问题 using MMF and C# I was creating a Shared Memory between 2 processes. my aim is to create it as a global say 4000 byte length and create partitions so Main proj is "MainProj" will start the MMF Named "$AppName$_sharedMMF" then "Debugger Proj" will Access that "$AppName$_sharedMMF" so the accessor positions are: MainProj->Debugger : readAddr = 0 , writeAddr = 250 Debbugger->MainProj : reafAddr = 250, writeAddr = 0 then the third executable in my solution will be //setter getter MainProj-

Passing information between two seperate programs

只谈情不闲聊 提交于 2019-12-08 07:21:23
问题 I want to pass a value of an input variable in my program lets say#1 to another program #2 and i want #2 to print the data it got to screen, both are needed to be written in c++. The this will be on Linux. 回答1: In response to your comment to Roopesh Majeti's answer, here's a very simple example using environment variables: First program: // p1.cpp - set the variable #include <cstdlib> using namespace std;; int main() { _putenv( "MYVAR=foobar" ); system( "p2.exe" ); } Second program: // p2.cpp

Windows下安装HBase

寵の児 提交于 2019-12-08 07:06:29
本文主要参照HBase官网: http://hbase.apache.org/cygwin.html 中《HBase On Windows》的安装步骤说明 1、安装介质: Java,下载地址: http://www.oracle.com/technetwork/java/javase/downloads/index.html Cywin,下载地址: http://www.cygwin.com/ HBase,下载地址: http://www.apache.org/dyn/closer.cgi/hbase/ 2、安装Java,并配置环境变量,可直接在系统变量Path中添加jre路径 3、安装CYGWIN,之后启动 4、执行“ LN -s /cygdrive/c/Program\ Files/Java/ <jre name> /usr/local/ <jre name> ”,创建Java链接,之后可通过执行javac命令查看链接是否创建成功。 5、执行“ssh-host-config”安装SSH服务,安装完成之后 ,执行“net start sshd”启动SSH服务,重新启动另一个cygwin客户端,ssh localhost,查看SSH服务是否安装并成功启动 6、安装HBASE,执行命令“tar -xvf hbase-0.94.20.tar.gz”解压HBASE文件 7、修改

Why do I get IPC delays on 20% busy machine

不羁的心 提交于 2019-12-08 06:37:54
问题 I am getting delays on IPC on a single machine that has 10 cores and is running 47 instances of my ClientApp which are all communicating with the MasterApp. I appear to get severe latency on occasion. Here is part of my log. The DateTime on the left is the log DateTime(a high perf logger). The DateTimes within the [] are the times the message was sent from the MasterApp. Each message terminates with an @. So the first message is only 1ms behind, but the last is 71ms behind. Any ideas what

Some source that implements named pipes communication btw service applications or help about it

匆匆过客 提交于 2019-12-08 05:23:39
问题 I'm implementing my own named pipe Client/Server class, but I'm getting too much troubles and no much information about on internet. I already found a lot of implementation with pipes but with vlc application but I'm working with service applications. I accept hints about how to work with pipes too. My actual problem is: While server the app just receive one message from the client, after this my server can't use PeekNamedPipe() any more. My error message that I get from GetLastError is

Zuul not forwarding requests to other micro-services

无人久伴 提交于 2019-12-08 05:06:47
问题 I am using spring boot micro-services. I have configured eureka, zuul proxy and another microservice(account). If I am calling from account directly it is working fine. account and zuul server both showing on eureka. When I try to hit using zuul proxy it is getting status code 200OK but not getting any result Below is my configuration for zuul Zuul.yml server: port: 8076 eureka: client: registerWithEureka: true fetchRegistry: true serviceUrl: defaultZone: http://localhost:8078/eureka/

ipc using Shared and as global MMF

…衆ロ難τιáo~ 提交于 2019-12-08 04:47:29
using MMF and C# I was creating a Shared Memory between 2 processes. my aim is to create it as a global say 4000 byte length and create partitions so Main proj is "MainProj" will start the MMF Named "$AppName$_sharedMMF" then "Debugger Proj" will Access that "$AppName$_sharedMMF" so the accessor positions are: MainProj->Debugger : readAddr = 0 , writeAddr = 250 Debbugger->MainProj : reafAddr = 250, writeAddr = 0 then the third executable in my solution will be //setter getter MainProj->AnotherExe : readAddr = 251 , writeAddr = 500 //setter getter EnotherExe->MainProj : reafAddr = 500,