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. Communication between CSocket and BSD Socket

Communication between CSocket and BSD Socket

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

    Communication between CSocket and BSD Socket Hi Friends, I wanted some help on my project as i have stuck at a place. Basically i am developing a Client Server Application. My Server is using a class derived from CSocket. Wherein i wanted is it possible to communicate a Client which is based on BSD Socket with a Server which is build using CSocket. With Rgds

    Girish Software Developer

    M J 2 Replies Last reply
    0
    • G Girish601

      Communication between CSocket and BSD Socket Hi Friends, I wanted some help on my project as i have stuck at a place. Basically i am developing a Client Server Application. My Server is using a class derived from CSocket. Wherein i wanted is it possible to communicate a Client which is based on BSD Socket with a Server which is build using CSocket. With Rgds

      Girish Software Developer

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      Having never done that myself I can't gaurantee it'll work but the answer must still be yes otherwise the internet itself would not work! Windows sockets were originally developed from BSD sockets anyway, back in the days of Win95, so you shouldn't have too many problems. I would recommend using the 'raw' Winsock APIs send, recv, setsocketopt etc rather than the somewhat buggy MFC Socket classes, especially if you're doing anything Asychronous/multi threaded which is pretty much a given on the Server side. I hope it goes well.

      "The secret of happiness is freedom, and the secret of freedom, courage." Thucydides (B.C. 460-400)

      1 Reply Last reply
      0
      • G Girish601

        Communication between CSocket and BSD Socket Hi Friends, I wanted some help on my project as i have stuck at a place. Basically i am developing a Client Server Application. My Server is using a class derived from CSocket. Wherein i wanted is it possible to communicate a Client which is based on BSD Socket with a Server which is build using CSocket. With Rgds

        Girish Software Developer

        J Offline
        J Offline
        James R Twine
        wrote on last edited by
        #3

        I think you will be OK here.  BSD Sockets are the "standard" TCP/IP or UDP/IP socket.  Winsock is a Windows implementation of BSD sockets.  There is no reason a correctly implemented socket application would not be able to communicate across the network and across different systems (barring network failures, firewalls, etc.)    Peace!

        -=- James
        Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
        Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
        See DeleteFXPFiles

        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