Host to network
Vasile Curelea <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <OFFAB0BA3F.7563750B-ON85256D3C.005FA4B2-85256D3C.00600BF9@stardata.ca> |
Hi list, Can anybody point me to a similar function in java? Any help is appreciated! vasile The ntohs function converts a u_short from TCP/IP network byte order to host byte order (which is little-endian on Intel processors). u_short ntohs( u_short netshort ); The htons function converts a u_short from host to TCP/IP network byte order (which is big-endian). u_short htons( u_short hostshort ); ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html