Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1014
  • 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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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