
20 Aug
2007
20 Aug
'07
2:49 p.m.
Anthony Williams wrote:
Fei Liu
writes: This is nothing to do with threads. The problem is here:
//if(initialized_) serverlet_type(newsockfd, obj); <---- causes error
and here:
typedef void (*serverlet_type)(int, shared_obj_type);
You are trying to construct a "servlet_type" (which is a function pointer) with two parameters --- that's not going to work. I guess that the "_type" part in the function call above is actually a typo.
Anthony
Thanks, that indeed was the error. Fei