Solved

Porting MFC WSA to Linux

Posted on 2004-09-06
6
923 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now