flat assembler
Message board for the users of flat assembler.

Index > Windows > WSOCK32.DLL socket programming??

Author
Thread Post new topic Reply to topic
saltmakrell



Joined: 10 Feb 2004
Posts: 6
Location: Norway
saltmakrell
Are there anyone having a short example of Socket programming with Fasm using the wsock32.dll-library in Windows? For example a small http server og something like that, which you could share the code of.

I'm trying to learn the basics of network communication, and will therefore be very thankful for some help!!

Ruben
Post 05 Mar 2004, 15:09
View user's profile Send private message MSN Messenger Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Isn't wsock32.dll winsock 1? I do not have experience with writting a http server but I had my experience in the coding of a client for icq from the ground up. If you want, take a look at:

http://board.flatassembler.net/topic.php?t=725
Post 05 Mar 2004, 15:45
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
saltmakrell



Joined: 10 Feb 2004
Posts: 6
Location: Norway
saltmakrell
After studying the faim-code and other codes (among them C++ codes), I have at last managed to make myself a simple server! Smile
I have skipped all the error checking, which probably not is a smart thing
to do in real programs, but I think the code is more clear to understand
without it.

The server waits on the port 10 until a request arrives.
Then it shows the client's (the one who requested) message,
and send the message "This is From Server!!!" back to client. It closes afterwards.

I have also just made a small home-page with my small codes,
and I would appreciate feedback. Either positive or negative! It still lacks good commentation, and the little bit which are there,
is in Norwegian, but it will be better soon.!
It can be found on http://home.no/ruun/fasm/ . Please have a look!!!


Ruben
Post 09 Mar 2004, 19:26
View user's profile Send private message MSN Messenger Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Hi,

I guess it is pretty alright for a simple server and client Smile
Post 10 Mar 2004, 12:38
View user's profile Send private message Visit poster's website MSN Messenger 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.