I had expected buffer to be broken down into 7 comma separated values, one value placed into each cell of of pOutput. When I execute the following code:
float *fParseData; int...
Type: Posts; User: [email protected]
I had expected buffer to be broken down into 7 comma separated values, one value placed into each cell of of pOutput. When I execute the following code:
float *fParseData; int...
Considering the following code:
int fnParser(char *buffer,float* pOutput){
int c = 0;
char * pch;
pch = strtok (buffer,",");
pOutput[c] = atof(pch);
while (pch != NULL)
Ah HA!!!
Thanks Jim.
My point is that it seems to me that the line:
int main(int argc, char* argv[])
warrants 2 arguments however in the command line I am able to give it only one argument ant it works properly and I...
It's a noob question but I can't seem to word it for a reasonable google search.
Consider following code:
int main(int argc, char *argv[]){
if (argc < 2)
{
fprintf(stderr,"ERROR, no...
No sir, no global variables.
But question, why is it that both:
char arrRespBuffer[256];
printf("1st strlen(arrRespBuffer):\t %i\n",strlen(arrRespBuffer));
and:
I think it's 256:
char arrRespBuffer[256];
EDIT: Correction, THOUGHT 256.
Just ran a test. You're right of course.
Thanks once more.
Consider the following code fragment:
<...> char arrOutBuffer[]="Robtarget Data...";
n = send(s,arrOutBuffer,strlen(arrOutBuffer),0);
if (n < 0) perror("ERROR writing to socket");
...
anduril462 - Here is where my attempt at doing this all in windows ended:
How does one create a proper RPC_IF_HANDLE to use with RpcBindingBind?
adeyblue - ???
EDIT: Oh, I see now.
One way the 2 RPCs differ is in the way you create a client handle.
In Unix it's:
clnt = clnt_create("192.168.1.2",300456,1,"tcp");
In Win32 its co convoluted I couldn't tell you how it works....
anduril462 - Is there a VM you recommend other than Cygwin for what I'm doing? One where Named Pipes actually works (Cygwin's is OFFICIALLY broken >:( )?
anduril462 Sockets was my first thought (and my next plan) but then I though just accessing a value stored in memory would be simpler.
Salem I have to use Unix because I have to establish an RPC...
I need a data transfer rate of no less than 10 updates per second for up to 4 hours.
Currently I'm getting what looks like 30 updates per second.
Basically it's a continuous data stream so my...
Consider the following code:
#include <rap.h>
int main()
{
CLIENT *clnt = NULL;
clnt = clnt_create("192.168.1.2",300456,1,"tcp");
if(clnt==NULL)
I'm trying not to cross post...but I'm trying to output data from a cygwin app to a windows app.
Alrighty then.
The barking up this tree is over.
It was compiled using Microsoft services for Unix.
I did not realize SFU compiled apps are dependent on Posix like Cygwin and MinGW are.
So when I run rap00.exe it tries to open a Posix shell and...
So is it possible to manipulate Windows System variables (ie. PATH) or User variables (ie. TEMP)?
If I write data to a memory location in with a program under Cygwin how do I read that data under windows?
I am trying to pass data (7 values) from a program running under Cygwin to a program running under windows.
I am trying to do this by setting environment variables that can be accessed by both...
Turns out the compiled code (rap00.exe) is trying to start a program (posix.exe) that is not on the computer that I tried to run it on.
Adak - The location is correct and that would not explain the problem in the command line.
So I successfully compiled (GCC) and linked (G++) my project (name=rap00.exe) but when I try to run it (from the I: drive for instance) by double clicking on the program icon the computer gives me...
Just realized my working directory was not in my Cygwin path.
When I run the compiled exe in a Cygwin console WITH the path it creates the client.
On to the next problem...
Haven't got NMAP up and running yet but I did run rpcinfo and it says that program 300456 version 1 is available and using tcp on port 1008.
SO in order to specify the port I want to communicate on...