Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1045
  • Last Modified:

Porting MFC WSA to Linux

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
Marjaneh
Asked:
Marjaneh
1 Solution
 
ahoffmannCommented:
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
 
alericCommented:
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
 
MarjanehAuthor Commented:
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
 
ahoffmannCommented:
then simply socket(), bind() and accept() are your friends
0
 
Computer101Commented:
PAQed, with points refunded (500)

Computer101
E-E Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now