Hey everybody,
I'm just getting into winsock, etc. but I had some simple questions:

1) does htons,eax just do a ror ax,8?

2) (more involved) I'm looking at writing a simple file server. The total number of files is going to be 50 totalling ~500 kb and I might have 50-100 computers accessing the data. Since I don't even wanna touch Overlapped I/O right yet, I'm thinking to keep the app responsive I'm gonna load all the files into memory and then serve them directly instead of doing CreateFile, etc everytime a file is requested. My question is: do people think this is worth while?

Thanks
--Chorus
Posted on 2002-07-25 18:13:41 by chorus
1) Im not sure that "ror ax, 8" would switch al with ah, but if it does, yes...
(
What I mean is: Im not sure if ror "Eax, 8" differs from "ror ax, 8"
I havent used them in a long time :D
)

2) Mmm, yes. by all means. It would certainly improve performance, and it wouldnt "need" that
much ram would it?
Posted on 2002-07-25 18:25:17 by assant
Yes, htons is simply rol ax, 8 (or ror).
Posted on 2002-07-25 22:53:09 by comrade