Results 1 to 7 of 7

Thread: Sockets

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    24

    Sockets

    I can do a little bit of sockets in Windows, but how do you do it in Linux? Are the functions the same or do you need to use different ones? What are the headers? Also how can you get a socket to listen on a port but accept many connections at a time (both win and lin)? I'm familiar with this in VB but not C++. I need any info to not be specific to any libs or MFC. Thanks a lot!

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The sockets are nearly the same, with only a few differences. In particular all functions of the windows sockets that start with an upper case letter are not available in UNIX, at least not with these names.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    24
    Where can I find the names I need?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    MSDN
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    24
    I only found http://msdn.microsoft.com/library/de...unctions_2.asp which is a good list but if I click one of those WSA functions I can't find a Linux equivalent on that page (or anywhere). Where on MSN is it?

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Why should MS list the Linux equivalent? All functions that use only lower case characters are the SAME in Linux. Those that start with an upper case letter are NOT available in Linux and there probably is no equivalent (those are extended windows-specific functions).
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    24
    OK, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width