I'm using Fedora on an x86 box and writing socket code. Actually, I'm porting existing socket code from a Solaris x86 to Fedora.
Should I call htons() on all port numbers and htonl() on all addresses when setting up sockets? ... when calling bind() on the server side and connect() on the client side? ... passing struct sockaddr?
---Elzbieta
Should I call htons() on all port numbers and htonl() on all addresses when setting up sockets? ... when calling bind() on the server side and connect() on the client side? ... passing struct sockaddr?
---Elzbieta