I am basically trying to coordinate two processes, one inside Qemu (user-mode) and one is on the host machine. Right now I am looking for some methods to setup this virtual-to-host communication.
I understood that TCP/UDP would always work. Nevertheless, is there any more efficient methods? I tried to search if Qemu itself provided some specific way for such a communication, but so far no positive findings.
Any suggestion would be appreciated. Thank you very much.
It sounds like what you are looking for is vsock which provides a bi-directional socket like interface between host and guest using an efficient virtio implamenation.
Related
I'm completely new in the NFC field, I want to build an application by using Mifare classic 1K with ST25R3911B, For that purpose i have to make proper communication between them by which i can do communication between them(Like to read/write operation).
I'm getting success to read UID, but rest of the things i'm not understand like how to authenticate or which is the proper command by which i can do communication or shares information between them.
If anyone have experience or any knowledge regarding that please help me,
Any kind of help would be appreciated!
Thank in advance!
I haven't used this chip, but I see its datasheet says that it supports Mifare as a custom protocol that you need to implement yourself as there is no generic method that is handled by the chip itself. That would mean you will need to implement the protocol based on NXP documentation including proprietary cryptography that is used there. If its only your private pet project, you could probably get away with some reverse engineered implementation that is floating around the internet, but the right way to do it is to contact NXP and obtain the license. Probably a way easier solution would be to replace the chip with something already licensed by NXP.
I want to simulate at least 9 clients to test my p2p engine. And i want to make some of them to be behind NAT and some of them to have all ports unlocked. Also, i would like to see log which creates each of them. I am not capable of running 9VM simultaneously, so I'm here to ask experts: is there something i can use for testing it?
I am using Boost library in my app.
I think that's the perfect solution for linux users: http://www.nrl.navy.mil/itd/ncs/products/core
I will keep this answer updated if im wrong.
UPDATE: It works like a charm. Firewall rules can be set for each node. It is not using that much of memory too, so it is possible to make even large network topologies. There is a possibility to run a terminal-per-node. So you can test many different scenarios to test out your application. Good luck.
I'm hoping to use something like nanomsg (or ZeroMQ). Specifically the pipeline pattern. Instead of a round-robin method for sending out the data, I would like to load balance based on the data.Any suggestions?
I found an answer to the ZeroMQ use case here: ZMQ sockets with custom load-balancing
Ultimately though, I think what I was really looking for was better served with a DDS solution as opposed to ZeroMQ or nanomsg. I found this question and answer very helpful: WHY / WHEN using rather DDS instead of ZeroMQ?
I am trying to implement a web server on to a micro controller as a self learning project.I am considering Atmega16 and Atmega88 as primary options.Need to know which will be the best choice.
Like this one?
There is example using Atmega88.
Perhaps obviously the one with the greatest memory resources. Neither part in your short-list supports Ethernet so neither is particularly suited to network applications; you would need an external Ethernet solution - the controller on that is likley to be more powerful and more expensive than the ATMega16/88 in any case.
You could of course use the UART and PPP or SLIP, but that is rather restrictive.
I would like to write an application, for my own interest, that graphically visualizes some network concepts. Basically I would like to show the output from tools like ping, traceroute and nmap.
The most obvious approach seems to be to use pipes to call out to these tools from my C program, and process the information they return. However, I would like to avoid this heavy-handed approach if possible. My question is, is it possible to somehow link against these tools, or are there APIs that can be used to gain programatic access instead? If so, is this behavior available on a tool-by-tool basis only?
One reason for wanting to do this is to keep everything in a single process / address space and to avoid dependance on these external tools. For example, if I wrote an iphone application, I would not be able to spawn processes to call out to the external tools themselves.
Thanks for any advice or suggestions.
The networking API in your platform of choice is all you essentially need. ping, traceroute and nmap don't do any magic, all they do is send and receive packets over the network.
I don't know of any pre-existing libraries though (not that I have looked either). If it comes to it, at least ping and traceroute are quite trivial to implement by hand.
I depends on the platform you're developing for. Windows, for example, has an ICMP API that you could use to implement a ping tool.
On the other hand, the source code for ping and traceroute is available on any Linux system, so you could use that (provided the license was compatible with your needs) as the basis of your own programs.
Finally, ping (ICMP) is not hard to implement and traceroute builds on top of ping. It may be worth it to just roll your own implementation.