-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require support for inet_* API #3595
Comments
well, those are outdated, coming with their shortcomings (e.g. ipv4 only). |
Ok. I am mostly interested in ipv4 ones specifically. IPv4 is not going anywhere too. Is it possible to provide support for those ? if not, can you please suggest alternatives? thanks. |
If you really want to avoid newer api inet_ntop and the rest, you can always add this in an appropriate place in your project extern "C" {
pub fn inet_aton(cp: *const libc::c_char, inp: *mut libc::in_addr) -> libc::c_int;
pub fn inet_addr(cp: *const libc::c_char) -> libc::in_addr_t;
pub fn inet_ntoa(inp: libc::in_addr) -> *mut libc::c_char;
} |
This works ! Thank you very much for your help. I appreciate it very much. |
Hi,
I am using libc for writing systems programming interface for a project i am working on.
I find the lack of following very useful functions for network programming.
inet_ntoa
.inet_aton
.inet_addr
.Are there any plans to add these?
my current Test system is Linux Fedora.
Thanks,
Dev
The text was updated successfully, but these errors were encountered: