S
S
Sdelan_v_CCCP2014-08-29 10:38:52
linux
Sdelan_v_CCCP, 2014-08-29 10:38:52

How to convert an IP address from one format to another?

How to convert IP address from string or char* format (for example "10.10.10.10") to sockaddr type (exactly in sockaddr, not sockaddr_in)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-08-29
@EvgenijDv

What's the difference? After all, all the same, when passing to the bind function, the pointer to the sockaddr_in structure is cast to the pointer to sockaddr.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question