i have a value inside of (struct sockaddr *)&address and i was wondering how I could dereference that
Printable View
i have a value inside of (struct sockaddr *)&address and i was wondering how I could dereference that
Edit: Why are there 1,000+ views?Code:sockaddr_in s;
// s.sin_addr = blah;
// s.sin_family = blah;
// s.sin_port = blah
((sockaddr*) &s)->sa_family
((sockaddr*) &s)->sa_data
>>Why are there 1,000+ views?
A pointer is worth a thousand views...?
Maybe that would explain the recent server slowdown
I bet the server messed up. There's no way 1000+ people would go directly to this thread and not to any others.
I don't see what's wrong with it.Quote:
i have a value inside of (struct sockaddr *)&address and i was wondering how I could dereference that
Quote:
Originally Posted by JaWiB
oh god, ive hit a new low in my computer nerdness, but that totally cracked me up :D
heeeheee, yeah..
strange how I get it :(....
cuz you can create multiple pointers to view the same thing..
hahah...
I'm gonna go to a corner now and cry at my nerdyness....