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#
  4. Simple Question About Sending/Receiving Data To/From A Server

Simple Question About Sending/Receiving Data To/From A Server

Scheduled Pinned Locked Moved C#
questionsysadmin
4 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.
  • B Offline
    B Offline
    BlitzPackage
    wrote on last edited by
    #1

    Good people, I built an application that needs to send information to and receive it from a server. I have one questions, how do I do that? :laugh: I am new to this aspect of programming. Thanks for any information you can provide. Blitz

    realJSOPR 1 Reply Last reply
    0
    • B BlitzPackage

      Good people, I built an application that needs to send information to and receive it from a server. I have one questions, how do I do that? :laugh: I am new to this aspect of programming. Thanks for any information you can provide. Blitz

      realJSOPR Online
      realJSOPR Online
      realJSOP
      wrote on last edited by
      #2

      There are several methods you could use - WCF, sockets, HTTP... What are your requirements? What kind of data?

      .45 ACP - because shooting twice is just silly
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      B 1 Reply Last reply
      0
      • realJSOPR realJSOP

        There are several methods you could use - WCF, sockets, HTTP... What are your requirements? What kind of data?

        .45 ACP - because shooting twice is just silly
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

        B Offline
        B Offline
        BlitzPackage
        wrote on last edited by
        #3

        Thanks for your reply. I need to send at least 2 and up to 7 separate strings. In essence, the user will be sending some authentication data to the server which will consists of an authentication code and some other identifying information (e.g. a MAC Address, user ID, etc...). This will enable me to uniquely identify the user in the database on the server. Then, once the server has certified that the user is unique or doesn't exist, then it will send back an authorization which will either be, I suppose, true or false, etc... Thanks again.

        realJSOPR 1 Reply Last reply
        0
        • B BlitzPackage

          Thanks for your reply. I need to send at least 2 and up to 7 separate strings. In essence, the user will be sending some authentication data to the server which will consists of an authentication code and some other identifying information (e.g. a MAC Address, user ID, etc...). This will enable me to uniquely identify the user in the database on the server. Then, once the server has certified that the user is unique or doesn't exist, then it will send back an authorization which will either be, I suppose, true or false, etc... Thanks again.

          realJSOPR Online
          realJSOPR Online
          realJSOP
          wrote on last edited by
          #4

          If the server is a web server, you could use a web service to do that. If the user has an account on the server, he could just use the built-in .Net authentication stuff. If the server does not meet any of those criteria, I'd use sockets.

          .45 ACP - because shooting twice is just silly
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

          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