just wanna know

Started by
1 comment, last by Fratt 22 years, 2 months ago
hello, first, is there any same protocol for windows and linux ? i''ve seen that winsock.h is fairly the same as socket.h for linux. so you agree with that ? second, how do you do that ? do you use thread for posting your socket sending and receiving ? thanx a lot Fratt
Advertisement
quote:Original post by Fratt
is there any same protocol for windows and linux ?
i''ve seen that winsock.h is fairly the same as socket.h for linux.

so you agree with that ?

Yes. Berkeley sockets will work in almost the same way on both Linux and Windows. There are a few minor differences (e.g. close() versus closesocket()), but overall, you can write reasonably portable code with sockets.
quote:
how do you do that ? do you use thread for posting your socket sending and receiving ?

You can use threads if you want. You can also use non-blocking or asynchronous sockets.

I would recommend having a look at this site, as it has a fair bit of detailed information on socket programming.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
thank you a lot.

so, i''ll have to use Berckley sockets. let''s go !

Fratt

This topic is closed to new replies.

Advertisement