i have a value inside of (struct sockaddr *)&address and i was wondering how I could dereference that
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
Last edited by Tonto; 03-12-2006 at 04:22 PM.
>>Why are there 1,000+ views?
A pointer is worth a thousand views...?
"Think not but that I know these things; or think
I know them not: not therefore am I short
Of knowing what I ought."
-John Milton, Paradise Regained (1671)
"Work hard and it might happen."
-XSquared
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.i have a value inside of (struct sockaddr *)&address and i was wondering how I could dereference that
Originally Posted by JaWiB
oh god, ive hit a new low in my computer nerdness, but that totally cracked me up
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....
Sometimes I forget what I am doing when I enter a room, actually, quite often.