storage size of 'sin' isn't known

This is a discussion on storage size of 'sin' isn't known within the Networking/Device Communication forums, part of the General Programming Boards category; Hi,
i am writing my first program regarding sockets in C and i have this problem which i cannot unfortunately ...

They should be, but you often have no choice. There are a lot of bad APIs out there that take string parameters as simply "char *". So you either declare your own strings the same way, or you have to scatter zillions of cast-away-const all over the place.

The error of attempting to modify a string literal is becoming less and less dangerous, since more and more systems will throw a fault when you try to do so -- at least you'll find the problem and be able to correct it.