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. How to know that I m connected to remote socket or not ?

How to know that I m connected to remote socket or not ?

Scheduled Pinned Locked Moved C / C++ / MFC
agentic-aitutorialquestion
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.
  • Z Offline
    Z Offline
    zinc_z
    wrote on last edited by
    #1

    Hi all, I m creating a socket like this and receiving remote socket CScoket rConnectedSocket ; CScoket * pSrvSocket; pSrvSocket = new CSocket(); ASSERT_VALID(pSrvSocket); pSrvSocket->Create(Agent_Port); pSrvSocket->Listen(); pSrvSocket->Accept(rConnectedSocket); .............. ............. ................... pSocketFile = new CSocketFile(&rConnectedSocket); pArchiveIn = new CArchive(pSocketFile, CArchive::load); pArchiveOut = new CArchive(pSocketFile, CArchive::store); now later in code is there any way that I could know that I m still connected to remote socket or not ? Thanks ZINC

    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