Sockets

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Bos

    #16
    Re: Sockets

    jacob navia <jacob@nospam.c omwrote:
    Antoninus Twink wrote:
    On 16 Apr 2008 at 0:08, 4.4.bsd wrote:
    Is there any possible way to use sockets in C, so i can finish a
    instant messenger program?
    Yes, of course. Just
    #include <sys/types.h>
    #include <sys/socket.h>
    then use socket(), connect(), listen(), send(), etc. as required.

    Post again if you have any specific queries about any of the socket
    functions, or how they're used.
    >
    Under windows you can use the sockets interface provided by
    Microsoft with the windows SDK.
    No, no, no, wrong, very, very wrong! It is "Under Windows you can use
    the <sockets.hlibra ry provided by LCC-Win-32-Navia!" Surely any
    amateur knows _that_?
    It is very similar to the Unix interface anyway.
    Yup. Similar. And there's the problem.

    Richard

    Comment

    • jaysome

      #17
      Re: Sockets

      On Thu, 17 Apr 2008 07:01:19 GMT, rlb@hoekstra-uitgeverij.nl (Richard
      Bos) wrote:
      >jacob navia <jacob@nospam.c omwrote:
      >
      >Antoninus Twink wrote:
      On 16 Apr 2008 at 0:08, 4.4.bsd wrote:
      >Is there any possible way to use sockets in C, so i can finish a
      >instant messenger program?
      >
      Yes, of course. Just
      #include <sys/types.h>
      #include <sys/socket.h>
      then use socket(), connect(), listen(), send(), etc. as required.
      >
      Post again if you have any specific queries about any of the socket
      functions, or how they're used.
      >>
      >Under windows you can use the sockets interface provided by
      >Microsoft with the windows SDK.
      >
      >No, no, no, wrong, very, very wrong! It is "Under Windows you can use
      >the <sockets.hlibra ry provided by LCC-Win-32-Navia!" Surely any
      ^^^^^^^^^^^ SIC (that's not what's in the OP's code)
      >amateur knows _that_?
      No, no, no, wrong, very, very wrong! It is under UNIX (including
      Linux, QNX, Mac OS X, etc.) you can use the <sys/socket.hlibrary .

      And under Windows VC++ (even in VC++ 6.0, circa 1998) you can use the
      <winsock2.hlibr ary.

      The non-standard C function socket() is defined by every decent
      compiler on every desktop platform.

      Surely any amateur knows _that_?

      --
      jay


      Comment

      • Richard Bos

        #18
        Re: Sockets

        jaysome <jaysome@hotmai l.comwrote:
        On Thu, 17 Apr 2008 07:01:19 GMT, rlb@hoekstra-uitgeverij.nl (Richard
        Bos) wrote:
        >
        jacob navia <jacob@nospam.c omwrote:
        Under windows you can use the sockets interface provided by
        Microsoft with the windows SDK.
        No, no, no, wrong, very, very wrong! It is "Under Windows you can use
        the <sockets.hlibra ry provided by LCC-Win-32-Navia!" Surely any
        ^^^^^^^^^^^ SIC (that's not what's in the OP's code)
        amateur knows _that_?
        >
        No, no, no, wrong, very, very wrong! It is under UNIX (including
        Linux, QNX, Mac OS X, etc.) you can use the <sys/socket.hlibrary .
        >
        And under Windows VC++ (even in VC++ 6.0, circa 1998) you can use the
        <winsock2.hlibr ary.
        But that doesn't advertise LCC-Win-Navia...

        Richard

        Comment

        • Richard Tobin

          #19
          Re: Sockets

          In article <b2vd04pltjq26b ut06ifda52ttknv 7n9m5@4ax.com>,
          jaysome <jaysome@hotmai l.comwrote:
          >>jacob navia <jacob@nospam.c omwrote:
          >>Under windows you can use the sockets interface provided by
          >>Microsoft with the windows SDK.
          >No, no, no, wrong, very, very wrong! It is under UNIX (including
          >Linux, QNX, Mac OS X, etc.) you can use the <sys/socket.hlibrary .
          Presumably Jacob was referring to Microsoft's "SDK for UNIX-based
          Applications" which "supports most of the POSIX libraries and headers":

          http://www.microsoft.com/windowsserv...ebinstall.mspx

          -- Richard
          --
          :wq

          Comment

          • Keith Thompson

            #20
            Re: Sockets

            rlb@hoekstra-uitgeverij.nl (Richard Bos) writes:
            jacob navia <jacob@nospam.c omwrote:
            >Antoninus Twink wrote:
            On 16 Apr 2008 at 0:08, 4.4.bsd wrote:
            >Is there any possible way to use sockets in C, so i can finish a
            >instant messenger program?
            >
            Yes, of course. Just
            #include <sys/types.h>
            #include <sys/socket.h>
            then use socket(), connect(), listen(), send(), etc. as required.
            >
            Post again if you have any specific queries about any of the socket
            functions, or how they're used.
            >>
            >Under windows you can use the sockets interface provided by
            >Microsoft with the windows SDK.
            >
            No, no, no, wrong, very, very wrong! It is "Under Windows you can use
            the <sockets.hlibra ry provided by LCC-Win-32-Navia!" Surely any
            amateur knows _that_?
            So, are we flaming jacob when he *doesn't* advertise his compiler
            here?

            [...]

            --
            Keith Thompson (The_Other_Keit h) <kst-u@mib.org>
            Nokia
            "We must do something. This is something. Therefore, we must do this."
            -- Antony Jay and Jonathan Lynn, "Yes Minister"

            Comment

            • jacob navia

              #21
              Re: Sockets

              Richard Bos wrote:
              jacob navia <jacob@nospam.c omwrote:
              >
              >Antoninus Twink wrote:
              >>On 16 Apr 2008 at 0:08, 4.4.bsd wrote:
              >>>Is there any possible way to use sockets in C, so i can finish a
              >>>instant messenger program?
              >>Yes, of course. Just
              >>#include <sys/types.h>
              >>#include <sys/socket.h>
              >>then use socket(), connect(), listen(), send(), etc. as required.
              >>>
              >>Post again if you have any specific queries about any of the socket
              >>functions, or how they're used.
              >Under windows you can use the sockets interface provided by
              >Microsoft with the windows SDK.
              >
              No, no, no, wrong, very, very wrong! It is "Under Windows you can use
              the <sockets.hlibra ry provided by LCC-Win-32-Navia!" Surely any
              amateur knows _that_?
              >
              If you have nothing to say, do not say it here.

              Windows provides a system socket interface since
              1995 (WSASockets).
              >It is very similar to the Unix interface anyway.
              >
              Yup. Similar. And there's the problem.
              >
              Problem for you maybe. But not everybody is like you.

              Fortunately.

              --
              jacob navia
              jacob at jacob point remcomp point fr
              logiciels/informatique
              http://www.cs.virginia.edu/~lcc-win32

              Comment

              • jacob navia

                #22
                Re: Sockets

                Richard Bos wrote:
                jaysome <jaysome@hotmai l.comwrote:
                >
                >On Thu, 17 Apr 2008 07:01:19 GMT, rlb@hoekstra-uitgeverij.nl (Richard
                >Bos) wrote:
                >>
                >>jacob navia <jacob@nospam.c omwrote:
                >>>
                >>>Under windows you can use the sockets interface provided by
                >>>Microsoft with the windows SDK.
                >>No, no, no, wrong, very, very wrong! It is "Under Windows you can use
                >>the <sockets.hlibra ry provided by LCC-Win-32-Navia!" Surely any
                > ^^^^^^^^^^^ SIC (that's not what's in the OP's code)
                >>amateur knows _that_?
                >No, no, no, wrong, very, very wrong! It is under UNIX (including
                >Linux, QNX, Mac OS X, etc.) you can use the <sys/socket.hlibrary .
                >>
                >And under Windows VC++ (even in VC++ 6.0, circa 1998) you can use the
                ><winsock2.hlib rary.
                >
                But that doesn't advertise LCC-Win-Navia...
                >
                Richard
                If I mention my compiler I get flamed by this "regulars". ..

                If I do not mention it I get flamed by the same people.

                This guy is one of the worst ones!


                --
                jacob navia
                jacob at jacob point remcomp point fr
                logiciels/informatique
                http://www.cs.virginia.edu/~lcc-win32

                Comment

                • lawrence.jones@siemens.com

                  #23
                  Re: Sockets

                  vippstar@gmail. com wrote:
                  On Apr 16, 8:20 am, CBFalconer <cbfalco...@yah oo.comwrote:
                  >>
                  >develop (or steal) the needed protocols somewhere.
                  >
                  Steal is a heavy word. It's certainly not stealing to use a free POSIX
                  implementation of BSD sockets (which most unix systems have)
                  "Steal" and it's various synonyms (swipe, lift, snatch, pilfer, etc.)
                  are jargon for "obtain from another source" as opposed to developing
                  from scratch. No illegality, immorality, or other bad karma is implied.

                  -Larry Jones

                  I keep forgetting that rules are only for little nice people. -- Calvin

                  Comment

                  • jacob navia

                    #24
                    Re: Sockets

                    Keith Thompson wrote:
                    >
                    So, are we flaming jacob when he *doesn't* advertise his compiler
                    here?
                    >
                    [...]
                    >
                    I get flamed anyway. Whatever I do or I do not do. It is the principal
                    sport of c.l.c


                    --
                    jacob navia
                    jacob at jacob point remcomp point fr
                    logiciels/informatique
                    http://www.cs.virginia.edu/~lcc-win32

                    Comment

                    • Sri Harsha Dandibhotla

                      #25
                      Re: Sockets

                      On Apr 18, 1:39 am, jacob navia <ja...@nospam.c omwrote:
                      Keith Thompson wrote:
                      >
                      So, are we flaming jacob when he *doesn't* advertise his compiler
                      here?
                      >
                      [...]
                      >
                      I get flamed anyway. Whatever I do or I do not do. It is the principal
                      sport of c.l.c
                      >
                      To Post or not to post. That is the question.

                      Comment

                      • Richard Bos

                        #26
                        Re: Sockets

                        Keith Thompson <kst-u@mib.orgwrote:
                        rlb@hoekstra-uitgeverij.nl (Richard Bos) writes:
                        jacob navia <jacob@nospam.c omwrote:
                        Under windows you can use the sockets interface provided by
                        Microsoft with the windows SDK.
                        No, no, no, wrong, very, very wrong! It is "Under Windows you can use
                        the <sockets.hlibra ry provided by LCC-Win-32-Navia!" Surely any
                        amateur knows _that_?
                        >
                        So, are we flaming jacob when he *doesn't* advertise his compiler
                        here?
                        Sarcasm is dead.

                        Seriously, though, so is this group. Topicality? Apparently even the
                        regulars now think that it's perfectly OK to post _anything_ here, as
                        long as it has a 'C' in its description. Cobol? Hey, it starts with a C,
                        it must be on topic.

                        Richard

                        Comment

                        Working...