Winsock in C and in Linux?

This is a discussion on Winsock in C and in Linux? within the Linux Programming forums, part of the Platform Specific Boards category; I'm reasonably new to C/C++ although I have extensive knowlege of Visual Basic. I am trying to convert some software ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    Start by reading through this lot
    Useful Links And Good Books

    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21