Thread: Winsock in C and in Linux?

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    Winsock in C and in Linux?

    I'm reasonably new to C/C++ although I have extensive knowlege of Visual Basic. I am trying to convert some software I wrote to Linux so that Linux users can also use it. This is client software I'm talking about (designed to connect to a Windows server).

    I am wondering how I can establish a connection with the server and then have separate functions to handle incoming data and to send outgoing data. As I said I'm quite new and have not had much experience of C++ yet. If anyone can help me by providing links to LINUX tutorials or sample source it'd be much appreciated.

    John

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Start by reading through this lot
    http://cboard.cprogramming.com/showthread.php?t=41926

    To be honest, you need to get up to speed a little on the C or C++ front before tackling something like this. There are plenty of traps which are easy to disguise through simple coding mistakes.

    Just so you know, there is no actual language called C/C++.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    3
    Then what is C and what is C++... I was under the impression that they were both programming languages and that C++ was a more up to date and improved version of C

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    3
    I see what you mean - I think - nooo! / is a separator... meant to be understood like "or"

    John

Popular pages Recent additions subscribe to a feed