structures, pointers, convert IP

Hi there.

I´am begginer in c++ and I would like to learn about socket connections. I have a problem with this: inet_ntoa(*(in_addr *)H->h_addr). I know how to work around (so-so). But I don´t know, what is mean to individual (*(in_addr *)).

Can some body explain this parameters?

And one question yet: Which book about c++ do you recommend me?




*sorry for my bad english :( I´am trying to learn
I was read it, and I can working with pointers, but i don´t know about transmission parameters and convertatiton type to structure format. inet_ntoa(*(in_addr *)H->h_addr)..... H is instance of hostent structure and h_addr is item of hostent. But why convert to pointer of structure in_addr?????
Topic archived. No new replies allowed.