LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2004, 01:23 PM   #1
jhon
Member
 
Registered: Aug 2004
Posts: 32

Rep: Reputation: 15
Thumbs up define


Q1) anybody knows how to use WSAEWOULDBLOCK/WSARcev/WSASend in unix language?

Q2) how about GLOBALALLOC WINAPI? GLOABALFREE WINAPI?

Q3) translate WSARecv(sock, &buf, bufCount, &RecvBytes, &Flags, NULL, NULL) in WINDOWS to UNIX?

Last edited by jhon; 08-30-2004 at 01:46 PM.
 
Old 08-30-2004, 08:06 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
ummm... no offense but what the f.. is that? ..

next ill assume that hideous stuff is windows code (eeew, no wonder why i weep looking at it *weep*)

anyways, you'll get better response probably if you ask a mod to move this into the programing forum ... next how about tell us what that stuff is suppose to do? (ill assume its some networking code, in which case ill just say learn the gnu c lib i think? (also because i have no clue what it is supposed to do , sorry))

http://www.delorie.com/gnu/docs/glibc/libc_toc.html
 
Old 08-30-2004, 08:42 PM   #3
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Quote:
Originally posted by SciYro
[B]ummm... no offense but what the f.. is that? ..

next ill assume that hideous stuff is windows code (eeew, no wonder why i weep looking at it *weep*)


http://uluru.poly.edu/~tmoors/course...de/sockets.cpp

// Under Unix, the translation can be done by using strerror()

// Most sockets error codes span a contiguous region from WSAEWOULDBLOCK (+35) to WSAEREMOTE (+71). However,
// some other error codes are scattered around the place. For codes in the contiguous region, index
// a table; for codes which are scattered, search a table containing the codes and use the resulting
// index to index a table of the corresponding scattered messages.

-> google ?

Last edited by DrNeil; 08-30-2004 at 08:44 PM.
 
  


Reply


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
Best way to define variables? Yig Linux - Software 3 08-24-2005 06:09 PM
C++ question #define ... Bluesuperman Programming 4 02-01-2005 10:49 AM
question on #define h/w Programming 7 12-03-2003 06:14 PM
define main linuxanswer Programming 8 11-05-2003 03:02 PM
using #define Jo_Nak Programming 4 06-11-2003 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration