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...
Type: Posts; User: saipkjai
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...
problem solved.
it was a silly mistake...forgot to check the EINTR.
thank you for all the help
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) {
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...
// 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;
...
rbnode *y = new rbnode(x->key, x->colour, x->left, x->right, x->parent);
this was whwat I originally did but segmentation fault occur..
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...
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);...