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. help socket newbie

help socket newbie

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++announcement
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.
  • C Offline
    C Offline
    Cyberizen
    wrote on last edited by
    #1

    hello ppl well need some start on socket programming i wrote the following code in Visual C++ 6.0 CSocket mysocket; mysocket.Create(); now the problem is here the Create function returns FALSE i tried to find the last error by using the function getLastError and the error no is 109 and i cant get a description of what it means i have used the second version of Create function as well i tried a loop on all the 65535 ports mysocket.Create(i,SOCK_STREAM,"172.16.64.97") but that didnt work either please help me out i have even tried the CAsyncSocket class but that also fails to create a socket please help me out

    A 1 Reply Last reply
    0
    • C Cyberizen

      hello ppl well need some start on socket programming i wrote the following code in Visual C++ 6.0 CSocket mysocket; mysocket.Create(); now the problem is here the Create function returns FALSE i tried to find the last error by using the function getLastError and the error no is 109 and i cant get a description of what it means i have used the second version of Create function as well i tried a loop on all the 65535 ports mysocket.Create(i,SOCK_STREAM,"172.16.64.97") but that didnt work either please help me out i have even tried the CAsyncSocket class but that also fails to create a socket please help me out

      A Offline
      A Offline
      Anand Paranjpe
      wrote on last edited by
      #2

      Go through MFC Sample CHATSRVR code. The chosen One :)

      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