apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SAMEER KUMAR <sameer.kasi2...@gmail.com>
Subject Problem using apr_thread_create() fucntion
Date Thu, 16 Apr 2009 10:04:19 GMT

I have problem uisng the apr_thread_create function...

I have used the following code:

where the definition of func and new_conn and cskt are:

apr_thread_start_t func=new_conn();
void new_conn(apr_socket_t **new_sock);
apr_socket_t *cskt;

when i try to call apr_thread_create as below:

apr_thread_create (&new_thread,tattr,func,&cskt,new_proc_pool);

i get this error while compilation:

echo_listner.c:26: error: too few arguments to function ‘new_conn’

Line 26 is : apr_thread_start_t func=new_conn();

It will be great if some one can help me solve this problem...

Sameer Kumar
B.Tech, Computer Engineering
Institute of Technology,
Nirma University,
Ahmedabad, Gujarat
email: sameer.kasi200x@gmail.com
Phone: +919375220396

View raw message