Search:

Type: Posts; User: vkaushal21

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    904

    Use UDP

    If I understood correctly, you need to receive/ send data from/ to several different machines.

    Use socket programming... UDP will surely work. I am not sure about number of simultaneous TCP...
  2. Replies
    1
    Views
    6,624

    OpenMP

    I am not sure, but you can look for OpenMP

    OpenMP is for multi-processor systems support.
  3. Replies
    2
    Views
    848

    Stack of main function

    I need to find out stack of main function ...

    Like while we create a thread, we have stack base and stack size...

    So if I assume my main is also a thread in itself, It will have some stack.
    ...
  4. Replies
    2
    Views
    1,428

    Prompt \w gives relative path

    When I use \w to set my prompt in bashrc (using ubuntu, if it makes a difference)

    it shows prompt as

    ~/sources
    vivek-laptop:vivek

    while i want it to be like

    /home/vivek/sources
  5. Replies
    2
    Views
    3,754

    Reading UDP header

    I am injecting packets using sendto
    and receiving packets using recvfrom

    Is there a way to read the UDP headers which are used by the lower layer.

    I don't really want to go into raw sockets...
  6. Replies
    3
    Views
    2,310

    Exiting socket gracefully

    I am writing a socket ...

    When I call accept function, it keeps on waiting for the new connection.

    I want to know, can I call accept function in some manner so that it doesn't completely hang...
  7. Replies
    3
    Views
    27,248

    strncpy(buffer, "Load_buffer", sizeof(buffer)); ...

    strncpy(buffer, "Load_buffer", sizeof(buffer));

    Here sizeof statement is wrong. You need to give size of "Load_buffer" not of buffer pointer. as you might be running on 32 bit system, ...
  8. Replies
    26
    Views
    9,719

    Can you please give reason for why for typedef...

    Can you please give reason for why for typedef definition is the only declaration allowed?

    Isn't typedef just for the compiler to replace with original declaration (sort of macro type...
  9. Replies
    9
    Views
    1,855

    I just joined this forum yesterday ... didn't...

    I just joined this forum yesterday ... didn't read homework policy earlier ..

    thanks for the info.. i will mind that in future :)
  10. Replies
    9
    Views
    1,855

    No idea about what you are aiming at from...

    No idea about what you are aiming at from 0123456789, anyways I can give you the pre and posorder traversal of the tree you have drawn

    POST order : - 0214367985
    PRE order : - 5310248769

    How...
  11. Replies
    14
    Views
    1,531

    yes, I agree with you two... const char * is a...

    yes, I agree with you two... const char * is a better option...
  12. Replies
    14
    Views
    1,531

    use char[] instead of *char

    Why do you want to use *char = "string" ??

    This way as you said, you are creating a read only string. So leave apart pointer arthimetic and changing '\0' character, you won't be able to change...
Results 1 to 12 of 12