Skip to content
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

modern guile has no htonl function anymore #2

Open
laf0rge opened this issue Dec 15, 2021 · 2 comments
Open

modern guile has no htonl function anymore #2

laf0rge opened this issue Dec 15, 2021 · 2 comments
Assignees

Comments

@laf0rge
Copy link

laf0rge commented Dec 15, 2021

htonl still existed in guile-2.0 but has been removed from 2.2 and 3.x versions:

** 'htons', 'htonl', 'ntohs', 'ntohl'
These procedures, like their C counterpart, were used to convert numbers
to/from network byte order, typically in conjunction with the
now-deprecated uniform vector API.

This functionality is now covered by the bytevector and binary I/O APIs.
See "Interpreting Bytevector Contents as Integers" in the manual.

@tuexen tuexen self-assigned this Dec 15, 2021
@tuexen
Copy link
Contributor

tuexen commented Dec 15, 2021

and I think there is also a warning that using strings for sending data is deprecated. Need to update that.
I don't like converting a number to a bytevector and then convert it back just to do an htonl(). Using that API to store a number in a bytevector in network byte order makes sense...

@laf0rge
Copy link
Author

laf0rge commented Nov 6, 2023

a kind reminder about this issue. guile-2.0 is no longer packaged by even debian oldstable (11) let alone stable (12), so it's getting more and more difficult to run software that explicitly depends on guile 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants