Solved

Porting MFC WSA to Linux

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

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Chinese translation in RedHat 10 56
null coming in rpm name 3 74
Linux Hanging with disable Error Output 4 89
how awk substr works and also how index works in inside substr? 4 117
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

820 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