Search:

Type: Posts; User: chercheur

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,264

    Cast from String to char

    Hello,
    This is my code:



    printf("Init: %s\n",getenv("MYLIB"));
    //getenv("MYLIB") return the string "x"
    char buffer[100]={'1','2'};

    i'd like to like to add getenv("MYLIB") in the first...
  2. Replies
    0
    Views
    729

    Application strongly couples

    Hello,

    Please, I would create a strongly coupled application, each process runs on a machine and communicates with other processes , please how can i create that in C ? i have only to create a...
  3. Replies
    5
    Views
    3,173

    i have modified the function like that ...

    i have modified the function like that


    size_t write(int fd, const void *buf, size_t count)
    {
    static size_t (*write_func)(int, const void *, size_t) = NULL;


    /* get reference to original...
  4. Replies
    5
    Views
    3,173

    test.c #include #include...

    test.c

    #include <sys/types.h> #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <netdb.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  5. Replies
    5
    Views
    3,173

    Function Interposition in Linux

    Hello,

    Please I try to apply the mechanism Interposition Function in Linux on the function write (write a socket) as follows:


    # include <sys/types.h>
    # include <sys/socket.h>
    # include...
  6. Replies
    14
    Views
    2,420

    Can you name one? I thought that is for me to...

    Can you name one?
    I thought that is for me to develop the code that makes the broadcast
  7. Replies
    14
    Views
    2,420

    Please can you explain more your idea? Thanks...

    Please can you explain more your idea?

    Thanks a lot
  8. Replies
    14
    Views
    2,420

    Thank you so much for much for help :) I have...

    Thank you so much for much for help :)
    I have used the client code that makes the broadcacast:

    //Socket Client

    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h> ...
  9. Replies
    0
    Views
    1,160

    attach message at runtime

    Hello,


    I have a client C and server C, the client connects to the server and sends a message. At runtime I want to attach to the message sent, a couple (x, y) struct of int
    I want at run time,...
  10. Replies
    14
    Views
    2,420

    Please can you guide me to modify my code to do...

    Please can you guide me to modify my code to do this? Do you know a function that do this?
    I searched on google, I have not found a tutorial explaining


    Thank you so much for help
  11. Replies
    14
    Views
    2,420

    I wonder if it is possible that the client sends...

    I wonder if it is possible that the client sends a message broadcat "who is the server" to get the ip address of the server ?
  12. Replies
    14
    Views
    2,420

    Hello, Thank you very much for the help : ...

    Hello,

    Thank you very much for the help :
    here is the client code:


    #ifdef HAVE_CONFIG_H
    #include <config.h>
    #endif
  13. Replies
    14
    Views
    2,420

    adress ip server

    Hello,

    Please, I have a little problem, I hope you propose a solution. Thank you very much.
    I developed a client task in C and a server task in C. The client needs the server IP address to...
Results 1 to 13 of 13