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. sockets in mfc

sockets in mfc

Scheduled Pinned Locked Moved C / C++ / MFC
c++adobequestion
1 Posts 1 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.
  • P Offline
    P Offline
    proach
    wrote on last edited by
    #1

    am i using sockets correctly? class CMySocket : public CAsyncSocket { public: CMySocket() : CAsyncSocket() {} void OnAccept() { _tprintf(_T("incoming connection\n")); } }; //and then later if( !AfxSocketInit() ) _tprintf(_T("Cannot init sockets")); CMySocket* sock = new CMySocket; if( sock->Create(1935,SOCK_STREAM,FD_READ | FD_WRITE) ) _tprintf(_T("Created!\n")); if( sock->Listen() ) _tprintf(_T("Listening!\n")); delete sock; the thing is that listening doesn't seem to get aby results though another app connects to that port. i am sending data from my FLASH movie via XMLSocket object but no result :(

    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