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. Winsocket2

Winsocket2

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminquestion
5 Posts 4 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.
  • J Offline
    J Offline
    Jay03
    wrote on last edited by
    #1

    Hey guys, Im working with winsocket in one of my projects and I have some questions regarding Windows Sockets. I see that it is used to send data over the TCP/ IP network protocol but why is it specifically called Windows socket? If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM? If anyone has any links that can give me the basic understanding of what goes on in the Windows Socket it would be greatly appreciated Thanks, Jay :)

    Z D E J 4 Replies Last reply
    0
    • J Jay03

      Hey guys, Im working with winsocket in one of my projects and I have some questions regarding Windows Sockets. I see that it is used to send data over the TCP/ IP network protocol but why is it specifically called Windows socket? If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM? If anyone has any links that can give me the basic understanding of what goes on in the Windows Socket it would be greatly appreciated Thanks, Jay :)

      Z Offline
      Z Offline
      Zac Howland
      wrote on last edited by
      #2

      WinSock is just the library name. It is basically Microsoft's implementation of the Berkeley sockets that are used on *Nix systems. From a development point of view, there is very little different in the way of method calls, arguments, etc (outside of initializing and freeing the library). When using it, you can communicate with anything that talks TCP/IP, regardless of the OS. Just make sure you keep byte-ordering in mind when programming. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

      1 Reply Last reply
      0
      • J Jay03

        Hey guys, Im working with winsocket in one of my projects and I have some questions regarding Windows Sockets. I see that it is used to send data over the TCP/ IP network protocol but why is it specifically called Windows socket? If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM? If anyone has any links that can give me the basic understanding of what goes on in the Windows Socket it would be greatly appreciated Thanks, Jay :)

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Jay03 wrote:

        If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM?

        No. That's the beauty of TCP. Neither end has to be concerned with the other (e.g., Windows <-> Unix <-> OS/400). They just both have to speak the same language. This is a somewhat simplified explanation. See here for more on TCP. See here for more on the OSI model.


        "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

        "Judge not by the eye but by the heart." - Native American Proverb

        1 Reply Last reply
        0
        • J Jay03

          Hey guys, Im working with winsocket in one of my projects and I have some questions regarding Windows Sockets. I see that it is used to send data over the TCP/ IP network protocol but why is it specifically called Windows socket? If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM? If anyone has any links that can give me the basic understanding of what goes on in the Windows Socket it would be greatly appreciated Thanks, Jay :)

          E Offline
          E Offline
          earl
          wrote on last edited by
          #4

          TCP doesn't inherently care about different architectures, but some care (see ntohl and htonl) has to be taken to make sure that the data you send (you just hand the functions a hunk of memory) isn't architecture / OS dependent. earl

          1 Reply Last reply
          0
          • J Jay03

            Hey guys, Im working with winsocket in one of my projects and I have some questions regarding Windows Sockets. I see that it is used to send data over the TCP/ IP network protocol but why is it specifically called Windows socket? If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM? If anyone has any links that can give me the basic understanding of what goes on in the Windows Socket it would be greatly appreciated Thanks, Jay :)

            J Offline
            J Offline
            Jay03
            wrote on last edited by
            #5

            Great answers guys....... thanks a lot!

            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