LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-07-2009, 01:37 PM   #1
charpcoder
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Is there an equivalent to WSAAccept in Linux?


Hello all,

During the day my job requires me to develop using Microsoft's tools, but during my personal time I develop on Linux. Anyways, I was trying to find an socket function with equivalent functionality to "WSAAccept" on Linux. For those of you not familiar with WSAAccept, it is essentially the same accept() function that we all know and love with the addition of a conditional acceptance function (passed as a parameter). This allows one to inspect the remote address information of a waiting socket and do some calculations to determine whether you actually want to complete the 3-way handshake (note: this address may be spoofed so you don't want to rely on it completely). This is in contrast with accept() which always completes the 3-way handshake (provided the incoming request wasn't spoofed/network issues) and after returning you then have access to the address information for the remote socket.

Thanks,
Mike
 
Old 05-07-2009, 05:51 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
http://www.linuxquestions.org/questi...-linux-705614/ is probably not what you wanted to hear. AFAIK there is nothing like that outside of Windows, although there are fairly simple ways of emulating the effect (if not the actual behavior.)
 
Old 05-07-2009, 07:04 PM   #3
charpcoder
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rweaver View Post
http://www.linuxquestions.org/questi...-linux-705614/ is probably not what you wanted to hear. AFAIK there is nothing like that outside of Windows, although there are fairly simple ways of emulating the effect (if not the actual behavior.)
Thanks for the reply, rweaver. How could I try to emulate the effect or actual behavior?
 
  


Reply

Tags
conditional, networking, socket


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WSAAccept( ) Analogous in Linux thirumalesh Programming 4 02-18-2009 11:46 PM
altzone equivalent in Linux ? sangeeta Linux - Software 1 11-03-2007 08:18 AM
Linux PowerVCR equivalent? ElvenAssassin Linux - Games 1 04-26-2004 03:48 PM
mutex equivalent in Linux devershetty Linux - Newbie 1 07-24-2003 10:02 PM


All times are GMT -5. The time now is 10:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration