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. socket prograaming doubt!

socket prograaming doubt!

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelp
3 Posts 3 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.
  • R Offline
    R Offline
    robin700
    wrote on last edited by
    #1

    i have created a server(tcp socket)...now i want to load a text file of usernames and password into the server...help please! i am doing socket programming for first time

    L A 2 Replies Last reply
    0
    • R robin700

      i have created a server(tcp socket)...now i want to load a text file of usernames and password into the server...help please! i am doing socket programming for first time

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Groan. So the problem you have is reading documentation. Read it again, and again, and again, and write some code, then read it again. Then come back to us when you have a real question.

      ============================== Nothing to say.

      1 Reply Last reply
      0
      • R robin700

        i have created a server(tcp socket)...now i want to load a text file of usernames and password into the server...help please! i am doing socket programming for first time

        A Offline
        A Offline
        Albert Holguin
        wrote on last edited by
        #3

        What's the question? For new socket programmers, usually the confusion seems to be in the fact that as far as the socket is concerned, you're passing data bytes, it doesn't care what the data is (integers, text, whatever). So you just have to load some buffers with your data and pass it on, it's up to your server/client to be able to interpret the data correctly. The interface definition (what bytes mean what) is usually referred to as an API (i.e. the rules).

        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