Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need source for WSAAsyncGetHostByAddr()

Need source for WSAAsyncGetHostByAddr()

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 5771346
    wrote on last edited by
    #1

    Hi all, I'm new to WinSock. Please, if anyone know where I can find source code of how to use WSAAsyncGetHostByAddr() in an VC++/MFC application send me a mail. I found an example of using WSAAsyncGetHostByAddr() in C/SDK app. but I have an VC++/MFC app. and I wish to update it with WSAAsyncGetHostByAddr(). Thank you, Mileta.

    R 1 Reply Last reply
    0
    • U User 5771346

      Hi all, I'm new to WinSock. Please, if anyone know where I can find source code of how to use WSAAsyncGetHostByAddr() in an VC++/MFC application send me a mail. I found an example of using WSAAsyncGetHostByAddr() in C/SDK app. but I have an VC++/MFC app. and I wish to update it with WSAAsyncGetHostByAddr(). Thank you, Mileta.

      R Offline
      R Offline
      Remus Lazar
      wrote on last edited by
      #2

      Hi, I hope is usefull to you: Add this lines bellow in your InitInstance method of your application and you can use any WSA.. function . WSADATA wsa; WSAStartup(0x0101, &wsa); in ExitInstance(): WSACleanup(); and #include in your stdafx.h file also you must link your application with wsock32.lib It doesn't matter if your application is build with or without MFC Best Regards, /REMUS

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups