Solved

Porting MFC WSA to Linux

Posted on 2004-09-06
6
936 Views
Last Modified: 2008-02-01
Hi There,

I am porting a MFC application to Linux, need evaluation for these functions on Linux:

WSACreateEvent();
WSACloseEvent(m_hWsaEvent);
WSAEventSelect (m_hSocket, m_hWsaEvent, lEvent);
WSAWaitForMultipleEvents(1, &m_hWsaEvent, FALSE, dwTimeOut, FALSE);
WSAEnumNetworkEvents (m_hSocket, m_hWsaEvent, &NetworkEvents);

which are used for EventSocket in application.

Thanks.
0
Comment
Question by:Marjaneh
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11999810
AFAIK there're no equivalents in Linux, you need different libs for events from network (see man socket and man bind) and for GUI (depends on your used GUI like KDE, Gnome, X11, etc.)
0
 
LVL 2

Expert Comment

by:aleric
ID: 12025284
Hiya,

I am *rightnow* trying to do the opposite ;).

I need to port a networking application to windows.
Shall we collaborate?  My interest would be to write
a small (that is, much smaller than libACE) portable
library for event demultiplexing.

If you are interested then please send an email
to carlo @ alinoe. com
0
 

Author Comment

by:Marjaneh
ID: 12025347
I want to be more specific about my application.
This is not a GUI application , it's a script based ui, and a last generator for sip message with 60,000 line code.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 12025388
then simply socket(), bind() and accept() are your friends
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12243976
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
A "Helper" for python 2 91
benchmark write speed to disk on linux 2 67
Installing rpm without root access 1 52
running two linux commands sequentially in background 16 47
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question