Is there any way of converting the python socket object to a void pointer. I am using ctypes and I have tried using cast and the conversion functions of python. 
I am also using a DLL and there is a function which takes structure as its argument.
But when i pass the structure to the function I am getting invalid parameters as error.
Is there any drawback in using python for C DLL's created on C which take C type parameters?
There is no good reason to convert a socket to a pointer. You can use socket.fileno() to get the socket's file descriptor which should be usable in C code.
If your library expects a pointer, you might need to wrap it with a ctypes struct - but without knowing details we can't tell.
PYTHON Sockets and structure