Programming :: Appropriate Interprocess Communication With Data Preservation?

May 29, 2011

I am searching for an interprocess communication that is platform and language independent and is two way communication among different processes and the most important thing is the ipc should have the ability to store data until the receiver receives it.

View 2 Replies


ADVERTISEMENT

Programming :: Communication Data Between Different Process

Nov 22, 2010

I would like to send struct data from process A to process B but I dont known what is the best way. I have read about IPC, but there are a lot of ways to do it.

View 2 Replies View Related

Programming :: Serial Port Communication Program Always Lose One Byte Data: 0x00?

Dec 13, 2009

I wrote a serial port communication program to access a equipment.

int main(void)
{
int fd = 0;
int nread = 0,i = 0,nwrite = 0, tmpread = 0, m = 0, n = 0 ;

[code]....

View 2 Replies View Related

Networking :: Data Transfer In V2V Communication (Fedora11)

Feb 27, 2010

i am using NCTUns simulator and having problem while receiving message from an OBU. sending a message works properly but recving creates problem and fails. i am using exactly the same function as used by the developers in the demos but still no luck. i copy the code attch the screen shots to have a look

sendto() and recvfrom() are used for message transfer. they both return >-1 if they are executed successfully. please have a look in the screenshots. agentClientReportStatus is the built in packet format which im using here whose fields i filled manually are in the code below.

agentClientReportStatus *message,*mssg;
int remainTime,n,n2,n3,i,sendingaddress,value;
sockaddr_in cli_addr;
timeval now;

[Code].....

View 3 Replies View Related

General :: Serial And Parallel Data Communication On Fedora 13

Apr 22, 2010

I have been trying out serial and parallel data communication on Fedora 13 Beta. I can easily see the list of serial ports through:

Code:
setserial -g /dev/ttyS[0-3]
And can also write some data through:
Code:
ll > /dev/ttyS0
But I am unable to see parallel ports
I can see something like:
Code:
/dev/parport0
But when I try out:
ll > /dev/parport0
It throws error.

View 3 Replies View Related

Programming :: Communication Between Bash And Firefox

Aug 24, 2010

I have been able to use bash to initiate a google seache via firefox. I would like to either copy the source page to a file via wget or send firefox short cuts to the other terminal's firefox search page to put the html file in a directory. I seem to remember but maybe incorrectly that there exist hexadecimal codes for each keyboard shortcut in firefox. Maybe these could be echo-ed from bash to the firefox search page.

View 2 Replies View Related

Programming :: C++ - Two Way Communication Between Objects If A (obj) Creates An Instance Of B (obj)

Apr 6, 2011

I have two classes, for argument's sake A and B. A implements the core functionality, B is an encapsulated data structure. If you imagine this situation
[code]...

From within B's member functions, I would like to access the public function() in class A. This is not an inheritance issue, they are two discrete classes with radically different functionality. Class A makes an object of B.

View 5 Replies View Related

Programming :: Character Device Driver For Communication Between Two Pc's In Code?

Apr 3, 2010

i woul like to know if i could get help in writing a charater device driver for communication between two pc's in linux using RS-232 serial port.

View 5 Replies View Related

Programming :: What Supposed To Do With Communication Protocol Reference Guide?

Jan 25, 2011

how am I supposed to use this guide. The doc states different messages lengths and formats, as a programmer, how should I utilize these information?Just fyi, my question is a general qns and does not necessarily target to just using netxms, but could be any other opensource as well.

View 4 Replies View Related

Programming :: Fast Inter-application Communication For Academic Simulator

Dec 1, 2010

I have an academic simulator software and I want to visualize its output at the same time the simulation is happening. However I want to separate visualization and simulation modules. The simulation data will be held in an array of a size around 0.5M and will be read only to visualization software (but updated regularly by simulator).

- In past I have used shared memory to share small variables among two applications.

- TCP/IP adds the option of having the simulator and visualization applications on separate machines but the implementation will be more difficult.

- I have also thought about an abstraction layer which allows to replace the communication/interconnection layer with other methods later (file/network/shared memory/pipe).

View 6 Replies View Related

General :: Monitor Interprocess Pipe Traffic?

Dec 14, 2010

I have two Linux processes communicating via a nameless pipe. How can monitor the traffic in the pipe? How can I inject data into the pipe? I have root access and know the pipe inode.

View 2 Replies View Related

Ubuntu Installation :: Preemptive Preservation Of Grub During Xp Install

Mar 24, 2010

I have, in the past, installed windows along side my main OS, Ubuntu. Every time I install windows, the grub ends up disappearing and I have always had to re-install Ubuntu to get the grub back. I have a lot of files and it would take a while to back up so would anyone be so kind as to tell me if there is a way to preemptively preserve grub so it doesn't disappear after I install XP on half of my hard drive?

View 4 Replies View Related

Server :: Making Mirrow Using Mkraid With Preservation Information On One Of Disks

Jul 18, 2011

Is SUBJ possible? For example: I have 1 disk with ext2 (ext3) partition and information written on it. I want to make a mirror using the disk. I put this one and another unformatted one into a server, create an appropriate /etc/raiddraive, and do mkraid. Shall I get a mirror witn intact information from the first disk? If not, are there any ways to do so?

View 1 Replies View Related

Programming :: Get Data From Serial Port Function Read() Blocks When Data Not Available?

Jun 11, 2009

I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:

//------------------------------------------------------------
char m_readBuffer[255] = {0};
char* p_curChar = m_readBuffer;

[code]...

View 1 Replies View Related

Ubuntu Networking :: Fast CLI File Transfer Solution With Time Preservation?

Mar 4, 2011

I use basic ssh and scp on a regular basis and sometimes for file transfer... certainly over public networks. However, often I want to transfer large (several GB) files from one place on my LAN to another.

I've read that FTP is the fastest, and when I'm transfering many GB, fast matters. Of course I know it's not secure, but I don't need security on my home wired LAN. What I do need many times is preservation of date and time of each file when uploading. Filezilla does that and I use it, but sometimes I need a CLI solution. I have use ncFTP and been happy with it until I realized it doesn't preserve date and time on uploads (probably not on downloads either, haven't looked).

Is there a CLI FTP solution out there that will preserve file date and time information on file transfers (including uploads)?

View 3 Replies View Related

Programming :: Data Directory In Automake - Data Is Always Read-only ?

May 9, 2010

I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.

How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.

View 1 Replies View Related

Programming :: Convert The String Data Type To Other Primitive Data Type?

Mar 4, 2011

I am trying to generic way to convert the string datatype to other primitive data type. To achieve, i used Template . But i getting error and couldn't resolve the issue and error reported is also clueless.

Code
====
#include <vector>
#include <iostream>
#include <string>

[Code].....

View 7 Replies View Related

General :: Serial Communication In Between VM And ESX?

Apr 28, 2010

I am in verse to understand the serial communication between guest and host.I have just added a serial port through VI Client selecting "Use serial port on host"(host being ESX host).If I am on VM and run :

ll > /dev/ttyS0

I understand that it should get displayed through ESX Host. So On ESX Host, I typed:

cat /dev/ttyS0

But nothing worked !

View 1 Replies View Related

Programming :: C++: Getting And Handling Web Data?

Jan 29, 2010

I'm just starting out on a project relating to web search, to be done in C++. Which library should I use to help with downloading web pages into memory so that I can process them? The big thing is I want to be able to download the pages into variables/structures without actually putting them onto the hard disk.I googled and saw libcurl, but I was confused by some of the examples and wondering if this was really what I wanted.

View 2 Replies View Related

Programming :: Data Structures Using STL?

May 19, 2010

Anyone know some links where i can find about data structures using STL ?

View 4 Replies View Related

Programming :: Get The Data From A Tag In XML File?

Dec 3, 2008

have a tag in XML file in unix like this <EmailAddress>abc@gmail.com</EmailAddress> this tag is there for multiple times in the xml file and the data is in continuous line like below State>UN</State><Zip/><CompanyName/><EmailAddress>FDF@gmail.COM</EmailAddress><PromoType>UNKNOWN</PromoType></Promotion></PromotionList<State>UN</State><Zip/><CompanyName/><EmailAddress>zd4946@gmail.com</EmailAddress>I have to check the data in between bold tags is valid or not ... means have to check whether its a email address or not and have to find the length of the attribute means tag ...script is in kshsorry if its already asked...i checked but i didnt get Exatly matching result for my requirement

View 7 Replies View Related

Programming :: Passing Data Between Php And C

Aug 21, 2010

I'm trying to work out the best way to achieve the following.

1)php page that grabs data from a local database. (not a problem)

2)It then needs to send this data to a c program/service running on a remote server. (I probably need it to be able to handle 4+ million reocrds in an array)

3) The c service then needs to process the data and send it back to the initial php script that called it. i was hoping this could be in a an array like structure of some kind. 4)update the db with the results.

I was thinking of using gsoap to write a simple c soap service that php can communicate with. Would this be the right way of doing this or would something like sockets in php be a better way of sending this volume of data as an array or struct to linux c socket if thats even possible.

View 3 Replies View Related

General :: I2C Communication From Kernel Space?

May 11, 2011

How do you interface with the Linux I2C driver from kernel space? For example, if I had LEDs connected to a GPIO expander on the I2C bus, how would I blink them twice before going down for reset from machine_reset()?

Essentially, I believe I need to call the functions i2c_smbus_write_byte(), i2c_smbus_read_byte(), etc. But these functions require I2C client data that I do not understand how to supply.

View 1 Replies View Related

General :: Signal Communication Between The Processes?

Sep 20, 2010

I am writing a code which communicates between 2 processes created by fork() statement. Parent reads a file and write the data into a shared memory and sends a signal to the child. The child then receives a signal from the parent to start reading. After finishing the read operation the child sends a signal to the parent asking it to resume its action. Some things are going wrong in my code.

1. segmentation error in memcpy() statement.
2. terminal hangs after running the code.
3. Synchronization problem between processes..

Code: #include <stdio.h>
#include <sys/types.h>
#include <wait.h>
#include <unistd.h>

[code].....

View 4 Replies View Related

Hardware :: How To Switch To Communication Mode?

Aug 3, 2010

I'm running Fedora11 OS on my desktop.my HSPA USB modem(Prolink PHS101 HSPA modem)is not detected as communication device. it detected as a CD ROM. could you please tell me the way to make functioning of it in Fedora 11 how to switch to communication mode.

View 1 Replies View Related

Networking :: Communication Without Loopback Device

Jan 13, 2010

I have two ethernet card on my computer, I want to make a TCP or UDP communication between these two cards, so I disable loopback: #ifconfig lo down. but with out loopback I can't even ping an eth from another one. how should I do? I want traffic to really pass eth cards.

View 2 Replies View Related

Networking :: Get The USB Server 'LANSER-E1' From 'MRT Communication'

Jan 21, 2010

Has anybody tried to get the USB server 'LANSER-E1' from 'MRT Communication' working in Linux ? It works OK in Windows but I have failed to get it working in Debian Sid.

View 2 Replies View Related

Networking :: DMZ - No Communication Between Server And 2 Clients

Oct 28, 2010

Code:
DMZ
Server--Router0--Modem0 ISP2--Modem3--Router3--Client3
/
Client1--Router1--Modem1--ISP1--WAN
/
Client2--Router2--Modem2 ISP3--Modem4--Router4--Client4

The Server in the above diagram can be accessed by Client3 and Client4 but not at all by Client1 or Client2. Router0 specifies the Server as a DMZ Host. I would be more specific but this is not my server. I don't use a DMZ, I forward ports when they are needed. In this case I represent ISP1 and the server belongs to a befuddled client. Client1 & Client2 can send packets to each other, no problem. Could the DMZ be breaking communication between the Server and Clients 1 & 2?

View 1 Replies View Related

Server :: Communication Between Apache And Resin?

May 16, 2010

I was going to upgrade apache from version 1.3 to version 2.2.15 on a test server (and later on prod servers).. i prepared really good for it by reading upgrading information, changes from 1.x - 2.x, read module documentation to check if any of the used modules had any different syntax and if it was supported for this new version of apache. Later i finally installed apache, upgraded all the used modules to be apache 2 compatible and everything seemed to go smooth. I started apache and resin and everything looked fine, the syntax was OK and everything so i reported back that it was ready.. but i got a feedback that the people that were going to use the server only got a proxy error or service unavailable error when apache was trying to send requests back to the backend resin server.. and this is the problem. I could just have told you that this was the problem, but i find it to be much easier if you have a little background information first to explain how the problem aried.

A couple of other people and myself has done quite extensive troubleshooting on this, we troubleshooted apache, mod_caucho and resin by themselves to check if it was any problems with them.. we could only find that mod_caucho didnt seem to behave correly, the caucho-status page was displaying an empty list of requests and what would be proxied back.. we are running the same version of mod_caucho and resin to be sure it would be compatible with eachother and all the software is running in 64-bit, only a 64-bit CentOS 4.4 OS (yes, the OS is really old but because of complications we are not ready to upgrade it yet).

When we try to telnet to the port where resin is listening its open and resin returns an X when you hit enter (like it should and says in Caucho' official troubleshooting tips). We have tried installing apache 2.2.11 instead of 2.2.15 and other versions of both resin and mod_caucho. Other modules has also been tried like mod_proxy to send the requests back and also the rewrite module with the P flag.. although this was not the preferred way to do it we only wanted to see if it had any difference which it didnt.

So after several hours of troubleshooting we are still not able to find the cause of why we are getting a proxy error (http 502) when apache is trying to send a request back. We have checked all the logs for apache and resin, we have also compiled the mod_caucho module with the "--enable-debug" option to get more verbose information but we didnt get any additional information this way eventhough we should according to Caucho' official site.

We have looked into both the resin and apache config and tried both ways of configuring mod_caucho.. and nothing seems to change the result.. we only get a 502 proxy error. So since it didnt work i downgraded to apache 1.3 one day and that was fine.. then it was upgraded again to apache 2.x to try to find out what the problems were but again we didnt find this.. so i was going to downgrade it again, but this time on a different test server, but after downgrading i for some very weird reason got the same proxy error i had when using apache 2 which is beyond my comprehension.. i just cannot understand this.

- has anyone had any similar experiences with or without the same setup ?

- does anyone know about any solution to this of can provide any additional advice on what to do further? Yes, we want the functionality in apache 2 so we will not settle with apache 1.3.. one of the features being the new filters to be able to capture requests for pre and post processing before they hit other modules.

View 3 Replies View Related

Software :: Communication With Some Small SPI Driver

Mar 15, 2010

I am moving some code for to work with SPI interface from windows to Linux SUSE platform and for to make it working I have to communicate with some small SPI driver.

I have few libraries generated by that driver:
libi2cbrdg.a
libi2cbrdg.la
libi2cbrdg.so
libi2cbrdg.so.1
libi2cbrdg.so.1.1.0

I am compiling my project with following makefile:
comp: ErrorCodes.h Errors.h FrameDll.h FrameDllHeader.h Framework.h Functions.h TargetProcessor.h Layout1.h ModCommon.h ModScalerDB.h ProxyIDs.h SPIProxy.h SPITuning.cpp ModBiquad.h ModCommon.h ModDeinterleave.h ModFloatToFract32.h
g++ -g -L./lib -li2cbrdg ErrorCodes.h Errors.h FrameDll.h FrameDllHeader.h Framework.h Functions.h TargetProcessor.h Layout1.h ModCommon.h ModScalerDB.h ProxyIDs.h SPIProxy.h SPITuning.cpp -o comp.o

Output:
SPIProxy.h: In member function "virtual int CSPIProxy::_Read(void*, int)":
SPIProxy.h:55: error: "U2C_IoWrite" was not declared in this scope
SPIProxy.h:56: error: "U2C_SpiRead" was not declared in this scope
SPIProxy.h: In member function "virtual int CSPIProxy::_Write(const void*, int)":
SPIProxy.h:65: error: "U2C_IoWrite" was not declared in this scope
SPIProxy.h:66: error: "U2C_SpiWrite" was not declared in this scope .....

But still as u see I have some functions missed I know that they are in these libraries.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved