Thank you. I try it now.
Type: Posts; User: sehang
Thank you. I try it now.
The steps to test the problem
1. Open TCP Server
2. Open TCP Client
3. TCP Client sends data to Server.
4. Close TCP Server and the client also crash without any notification
Second wonderful...
Hi,
I have a program which needs to connect multiple servers at the same time. The program has to collect data from each of servers and then make a decision regarding to the data received.
...
Hi,
I have a UDP server and client program, and they must run within a program, so I decided two threads, one for UDP server and another for UDP client.
The simple architecture is shown in...
Hi, I still have no idea what does 'A thread function returns a void* and takes a single void*.'.
1.
Is it means, I should use
pthread_create( &thread1, NULL, &testRun, NULL) == 0
...
It properly about the function sigaction() with threading, is does not work, why signal and threading is conflict here?
It still does not work! The following codes are modified, but no effect!
static void* testRun () {
TCP();
pthread_exit(NULL);
return NULL;
}
What does incorrect signature means? Thanks.
Sorry, I forgot put the code of forever loop at the main function, it should be here; and I will try to modify the thread by using join.
I try to initial a UDP client from threading, but it doesn't work? why?
These codes from the textbook
#define ECHOMAX 255 /* Longest string to echo */
#define TIMEOUT_SECS 2...
Thanks all of you!
The reason why I need this like that.
I have an array which is int** ptrList which stores all pointers of struct XXX. And this array stores different struct, so it can't use a generic type.
And...
Hi,
I have the following codes:
struct ABC {
int x;
float y;
int z;
}