Hi ,
I have created a class for pinging using socket programming .
I have the function in the class .
int SetupForPing( char* host , int ttl , SOCKET& sd , socketaddr_in& dest );
but when i compile the function .
I get the following error .
1>Compiling...
1>IPSocket.cpp
error C2899: typename cannot be used outside a template declaration
error C2061: syntax error : identifier 'socketaddr_in'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I am using VS2005 editor .
please help ..
thanks in advance ...