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. cross platform tcp c program

cross platform tcp c program

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

    How to write a cross platform tcp c program?

    L A 2 Replies Last reply
    0
    • P praveenvelu

      How to write a cross platform tcp c program?

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

      You write it by coding according to the rules that apply for each platform.

      1 Reply Last reply
      0
      • P praveenvelu

        How to write a cross platform tcp c program?

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

        Sockets aren't exactly implemented the same way across multiple platforms. To achieve a cross-platform program that uses sockets, you can either use compile time switches (#defines) to use the appropriate platform-specific calls and system libraries or use a third party library that already has this compile time switching internally. A few cross-platform socket libraries: 0) http://zeromq.org/[^] 1) www.boost.org (asio library)[^] 2) Larger frameworks have this too (Qt[^], wxWidgets[^])

        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