Search:

Type: Posts; User: chaituchemico

Search: Search took 0.00 seconds.

  1. I edited my code. My original program is very...

    I edited my code. My original program is very long, so I posted only the main part of my program where I am having doubt. Thank you.
  2. how to dynamically create an array of structure and store the data in file.

    Hi everyone.
    I am writing a program for address book. There are insert, display and delete options. In insertion, it takes input data and stores them to a file. whenever I add new contact it adds...
  3. Replies
    17
    Views
    35,909

    Thank you anduril462

    Thank you anduril462
  4. Replies
    17
    Views
    35,909

    This is my code with corrections. Now the code is...

    This is my code with corrections. Now the code is compiling without any errors. The insertion part is doing good but there is a problem with display part. It is displaying only one person details...
  5. Replies
    17
    Views
    35,909

    Thank you anduril462. I edited my code, now it is...

    Thank you anduril462. I edited my code, now it is running with no errors.
  6. Replies
    17
    Views
    35,909

    Hi guys, With your help I am able to send data...

    Hi guys, With your help I am able to send data between two processes using sockets. Thank you.
    I tried to extend my program. This is to insert and display the details of a person.
    there are two...
  7. Replies
    17
    Views
    35,909

    I am able to correct my errors guys with your...

    I am able to correct my errors guys with your suggestions. Thank you.


    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<sys/socket.h>
    #include<sys/un.h>
    #include<unistd.h>...
  8. Replies
    17
    Views
    35,909

    I am sorry, I did not do it by purpose. May be I...

    I am sorry, I did not do it by purpose. May be I just overlooked it. Sorry man.
    Sorry for the late reply because we did not have power for last 11 hours.
    I edited my post with indented code and...
  9. Replies
    17
    Views
    35,909

    I am trying to send details of a person from...

    I am trying to send details of a person from client to sever and display them by server.
    I am errors while compiling this code. Please help me, whether is this the correct way or not.


    ...
  10. Replies
    17
    Views
    35,909

    Thank you MK27. I have gone through...

    Thank you MK27.
    I have gone through Serialization, it was a good document.

    const char* const message = argv[2];
    In the above program, I am sending data from the command prompt.
    If I wish to...
  11. Replies
    17
    Views
    35,909

    Thank you MK27. const char* const...

    Thank you MK27.

    const char* const socket_name = argv[1];
    Here we are giving the same socket name for server & client using command prompt.
    Is there any other way I can include same socket...
  12. Replies
    17
    Views
    35,909

    SERVER.C int server (int client_socket) {...

    SERVER.C
    int server (int client_socket)
    {
    while (1) {
    int length;
    char* text;
    /* First, read the length of the text message from the socket.
    read returns zero, the client closed the...
  13. Replies
    18
    Views
    14,574

    @tabstop and @anduril462. Thank you guys. Now my...

    @tabstop and @anduril462. Thank you guys. Now my doubt is cleared.
  14. Replies
    17
    Views
    35,909

    How to pass data using Sockets

    Guys can anyone help me to How to pass data between two different processes using sockets.

    Here are the steps using sockets (correct me if I am wrong)

    Process1(server):
    1. Create a socket
    2....
  15. Replies
    18
    Views
    14,574

    I did not get it. How to put it in the first part...

    I did not get it. How to put it in the first part of shared memory.
  16. Replies
    18
    Views
    14,574

    thank you tabstop. Is there any other way to...

    thank you tabstop.
    Is there any other way to pass the 'select' option to the second application, other than defining it in the struct and equating to particular value in its function as i did.

    ...
  17. Replies
    18
    Views
    14,574

    Thank you anduril462. In my code above, I have...

    Thank you anduril462. In my code above, I have used arrays to store the data. If I want to delete or modify, can anyone help me how to write code for delete and modify in my program so that if I...
  18. Replies
    18
    Views
    14,574

    @MK27. What you said is correct. This program...

    @MK27.
    What you said is correct. This program should be like a address book in a phone. It should be capable of parallel processing(like in phone, though we open a contact in address book and make...
  19. Replies
    18
    Views
    14,574

    @tabstop. We have to save the data to files...

    @tabstop. We have to save the data to files whenever we insert, modify or delete them immediately. So that if we display them, it should display the updated data(like address book in phone).
  20. Replies
    18
    Views
    14,574

    @anduril462 yeah sure i will make changes. Can...

    @anduril462 yeah sure i will make changes.
    Can we use use linked lists in this program, so that it will be easy to modify and delete contacts from the file. Please anyone suggest me how to use...
  21. Replies
    18
    Views
    14,574

    @anduril462 thank you. it was a blunder i made...

    @anduril462 thank you. it was a blunder i made (a[i].select=3). yes, variable 'i' has to be synchronized between two applications.
    yes what you said was correct, after delete and modify it must...
  22. Replies
    18
    Views
    14,574

    yeah it make sense. thank you @tabstop. Can...

    yeah it make sense. thank you @tabstop.
    Can anyone please tell me how to pass the select option along with data to the second application. I am getting something wrong in passing the select option...
  23. Replies
    18
    Views
    14,574

    How to communicate between two processes

    Hi everyone. I am new to Cboard. This is my first post.
    I am practicing Linux Programming. I am doing an Addressbook program in C using IPC. This program does Insert, Display, Delete and Modify. ...
Results 1 to 23 of 23