Search:

Type: Posts; User: saipkjai

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,454

    send and receive byte does not match

    hi

    I was working on a UDP client and echo server. Let say my buffer is 20 byte only. I can send 20 byte form the server, and the server receives 20 byte successfully. But the problem arise when...
  2. Replies
    4
    Views
    3,127

    problem solved. it was a silly...

    problem solved.

    it was a silly mistake...forgot to check the EINTR.

    thank you for all the help
  3. Replies
    4
    Views
    3,127

    thx for the fast reply. I think I got the...

    thx for the fast reply.

    I think I got the thing working with one little problem. Right now the code looks like the following with your modification suggestion.




    while (1) {
  4. Replies
    4
    Views
    3,127

    Socket Select problem

    Hi

    I'm having a little trouble with the select and fork for the server side program that I'm building. The problem is I got the socket and everything working and the basic problem can receive and...
  5. Replies
    8
    Views
    1,992

    // Constructor rbnode::rbnode(int s_key,...

    // Constructor
    rbnode::rbnode(int s_key, rbcolour s_colour,
    rbnode *s_left, rbnode *s_right, rbnode *s_parent) {
    key = s_key;
    colour = s_colour;
    left = s_left;
    right = s_right;
    ...
  6. Replies
    8
    Views
    1,992

    rbnode *y = new rbnode(x->key, x->colour,...

    rbnode *y = new rbnode(x->key, x->colour, x->left, x->right, x->parent);

    this was whwat I originally did but segmentation fault occur..
  7. Replies
    8
    Views
    1,992

    thx for the quick reespose. All I want to do...

    thx for the quick reespose.

    All I want to do here is to copy x into y. The reason that I didn't pass in all the parameter when I new the object is I keep getting segmentation fault error. So I was...
  8. Replies
    8
    Views
    1,992

    invalid lvalue in assignment

    hi. I keep getting the invalid lvalue in assignment for the following code



    void rbnode::rotate_left(rbnode *x) {
    printf("rotate left!\n");
    rbnode *y = new rbnode(0, Red, NULL, NULL, NULL);...
Results 1 to 8 of 8