Raised This Month: $ Target: $400
 0% 

socket_extention


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 08-22-2007 , 13:03   Re: socket_extention
Reply With Quote #8

You should stop spamming useless messages ^^


Anyway, he replyd fast.
Quote:
Originally Posted by DotNetJunkie IN A PM!!11oneone
Sorry, I don't come on here often.

I'd have to dig for it since I don't remember where
I might have saved it.

Are you a coder?
Adding a socket_listen() function isn't very hard really,
especially if you know something about WinSock.

I think what I did was I made a socket_listen function
which setup the socket to act as a host and then
another function called socket_accept() which return
the next client in the connection que, if there is no
client then the returned handle will be NULL (zero).

It went something like that, I haven't worked with
sockets in awhile.

If you should decide to code your own module then
you will need to keep in mind portability so keep your
code compatible with both Unix sockets and Winsock,
usually by means of #ifdef WIN32's

If I should come across my old module I'll let you
know though.
__________________
Um, hi.

Last edited by Ramono; 08-22-2007 at 13:05.
Ramono is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode