flat assembler
Message board for the users of flat assembler.

Index > Main > Why Win32 and Linux socket API are identical?

Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 06 Aug 2012, 19:35
Recently I am preparing the FreshLib network part, when I realized that the Windows and Linux socket API are actually identical. The same functions, the same constant names and the same structures.

Is it some standard, or what? Did someone knows some details about this subject?

_________________
Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9
Post 06 Aug 2012, 19:35
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 06 Aug 2012, 19:48
Maybe because both are rooted on Berkeley sockets?

However, I think when it comes to more advanced non-berkeley features, you won't find the APIs quite similar (specially names, where Winsock has a very distinctive prefix on most function names).
Post 06 Aug 2012, 19:48
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 06 Aug 2012, 20:13
Yes, it seems this is the reason. Actually I don't want to include advanced features in FreshLib, because it can be not portable (or too hard to be emulated) to Linux or other, not so complex OS (Menuet or Kolibri for example).

So, I will use the same API with some small modifications.
Post 06 Aug 2012, 20:13
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.