Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

question:c++ syntax, (struct*) variable_of_type_struct?

$
0
0
(note:this is a question about syntax, not winsock. I am just using winsock as an example of where it has occured)
I have been doing some winsock programing recently when I encounted this peice of code:

error=function(local,(sockaddr*) &server,sizeof(server);


What I am confused about is the ...(sockaddr*) &server... part. What is the meaning of this?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>