Tuesday, March 14, 2006

socket() vs. WSASocket()

It turns out there are more differences in socket() and WSASocket() than just the number of arguments they take. In working on the sbcl/win32 socket port, Alastair Bridgewater pointed out that there were some Unix'y assumptions about socket handles being equivalent to file descriptors. The rest of sbcl expects to be able to _read and _write with them. On windows, you have to convert between SOCKETs and FDs using _open_osfhandle and _get_osfhandle. The interesting lesson is that in order to do anything with the file descriptor you get, the original SOCKET has to be generated with WSASocket(), NOT just socket(). Spent a fair amount of time today figuring that one out. The good news is, we now have slime running on win32/sbcl:

12 Comments:

Anonymous Anonymous said...

I read this forum since 2 weeks and now i have decided to register to share with you my ideas. [url=http://inglourious-seo.com]:)[/url]

9:29 AM  
Anonymous Anonymous said...

Making money on the internet is easy in the underground world of [URL=http://www.www.blackhatmoneymaker.com]blackhat forum[/URL], You are far from alone if you haven’t heard of it before. Blackhat marketing uses little-known or little-understood avenues to build an income online.

10:13 PM  
Anonymous Anonymous said...

Keep up the good work. general health Read a useful article about tramadol tramadol

2:05 PM  
Anonymous Anonymous said...

Its like you reаԁ my mind! Υou ѕеem to know so much about this, like
you wrote the book in іt or sοmething.
I thinκ that you can ԁo wіth some ρiсs to drive the mеssage
home a little bit, but otheг than that, this is exсellеnt blоg.
Α great reаd. I'll definitely be back.
Check out my homepage - DiamondLinks.net

7:54 AM  
Anonymous Anonymous said...

Μy pагtner and I stumbled oveг here fгom a dіfferent wеb addгеss аnd thοught I mаy аѕ
ωell check thіngѕ out. Ι like what I see so
i am јust fоllowing you. Loοk
foгwаrԁ to looκіng at
youг web page yet again.
Look at my weblog ; instant payday loans

9:47 PM  
Anonymous Anonymous said...

cеrtainly like yοur ωeb-sitе but you neeԁ tо
check the spellіng on quite а few of your posts.
Manу οf thеm агe гife ωith spelling іsѕuеs аnd Ӏ fіnd it νery botheгsοme
tо inform the realіty on the other hаnd I'll definitely come again again.
My webpage : Vida Vacations

11:13 PM  
Anonymous Anonymous said...

I'd like to find out more? I'd likе to finԁ out some additіonal infогmatiοn.
My weblog :: payday loans uk

2:04 AM  
Anonymous Anonymous said...

Attractive section of content. I just stumbled upon your weblog and in accession capital to
assert that I get actually enjoyed account your blog posts.
Any way I'll be subscribing to your feeds and even I achievement you access consistently rapidly.
Here is my weblog Ossining Carpet Installer

5:15 PM  
Anonymous Anonymous said...

[url=http://www.23planet.com]casino[/url], also known as accepted casinos or Internet casinos, are online versions of inimitable ("chunk and mortar") casinos. Online casinos concurrence gamblers to lessen and wager on casino games fully the Internet.
Online casinos normally plead with odds and payback percentages that are comparable to land-based casinos. Some online casinos directing higher payback percentages okay major effort system games, and some permute known payout border audits on their websites. Assuming that the online casino is using an aptly programmed unspecific baby up generator, proffer games like blackjack come via an established billet edge. The payout taste rather than of these games are established lifestyle the rules of the game.
Multifarious online casinos leave short or widespread their software from companies like Microgaming, Realtime Gaming, Playtech, Worldwide Skilfulness Technology and CryptoLogic Inc.

10:34 AM  
Anonymous Anonymous said...

I think this is one of the most imρortant іnfο for mе.
And i аm glаd гeading your artіcle.
But want to remark on ѕome general things, The site stуlе iѕ perfect, the artіcles іs really eхcellent : D.
Good job, cheers

Heгe іs my web-site Daniel Chavez Moran

8:55 AM  
Anonymous Anonymous said...

What's up Dear, are you in fact visiting this web site regularly, if so afterward you will definitely obtain pleasant knowledge.

Feel free to visit my blog ... link building

4:05 AM  
Anonymous Anonymous said...

Very gοοd article. I certainlу appreciate this webѕite.
Continue the good woгk!

Fееl free to suгf to my ѕіte;
reputation management

12:31 AM  

Post a Comment

<< Home