Search:

Type: Posts; User: [email protected]

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,670

    I had expected buffer to be broken down into 7...

    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...
  2. Replies
    5
    Views
    1,670

    sizeof returns unexpected result

    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)
  3. Ah HA!!! Thanks Jim.

    Ah HA!!!
    Thanks Jim.
  4. My point is that it seems to me that the line: ...

    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...
  5. int main(int argc, char *argv[]) accepts 2 inputs?

    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...
  6. No sir, no global variables. But question,...

    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:
  7. I think it's 256: char arrRespBuffer[256]; ...

    I think it's 256:


    char arrRespBuffer[256];


    EDIT: Correction, THOUGHT 256.
    Just ran a test. You're right of course.

    Thanks once more.
  8. tcp client/server pair can send data only one way

    Consider the following code fragment:


    <...> char arrOutBuffer[]="Robtarget Data...";
    n = send(s,arrOutBuffer,strlen(arrOutBuffer),0);
    if (n < 0) perror("ERROR writing to socket");

    ...
  9. anduril462...

    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.
  10. One way the 2 RPCs differ is in the way you...

    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....
  11. anduril462...

    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 >:( )?
  12. anduril462...

    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...
  13. I need a data transfer rate of no less than 10...

    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...
  14. How to get Cygwin compiled app to run in windows.

    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)
  15. I'm trying not to cross post...but I'm trying to...

    I'm trying not to cross post...but I'm trying to output data from a cygwin app to a windows app.
  16. Alrighty then. The barking up this tree is over.

    Alrighty then.
    The barking up this tree is over.
  17. It was compiled using Microsoft services for...

    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...
  18. So is it possible to manipulate Windows System...

    So is it possible to manipulate Windows System variables (ie. PATH) or User variables (ie. TEMP)?
  19. Can Cygwin and Windows access the same memory?

    If I write data to a memory location in with a program under Cygwin how do I read that data under windows?
  20. How to set environment variables to pass data from Cygwin to 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...
  21. Turns out the compiled code (rap00.exe) is trying...

    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.
  22. Adak - The location is correct and that would not...

    Adak - The location is correct and that would not explain the problem in the command line.
  23. System can not find file after compile/linking...

    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...
  24. Just realized my working directory was not in my...

    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...
  25. Haven't got NMAP up and running yet but I did run...

    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...
Results 1 to 25 of 60
Page 1 of 3 1 2 3