Trouble with sockets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Braindrool12
    New Member
    • Jan 2008
    • 14

    Trouble with sockets

    Hello, of course i'm still having troubles with sockets...
    Though for the forum leaders, yes i put a post that my old thread was done! But let me get to the point! I see a lot of "simple" server and clients. But they just don't suit me!
    1. I don't know how to link to winsock.
    2. The codes are extreemly long for many of the source codes I find.
    3. They go over what i need.

    For the number 3, I'll explain, I just want like something that you put a file on. And then another person can download it. Like a direct connect server/client. Could someone help me? I'm really frusturated with all the trouble! Also I know about sockets, but i don't know how to use them or anything. Any links, or sources would be greatly honored! Please reply soon!
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by Braindrool12
    Hello, of course i'm still having troubles with sockets...
    Though for the forum leaders, yes i put a post that my old thread was done! But let me get to the point! I see a lot of "simple" server and clients. But they just don't suit me!
    1. I don't know how to link to winsock.
    2. The codes are extreemly long for many of the source codes I find.
    3. They go over what i need.

    For the number 3, I'll explain, I just want like something that you put a file on. And then another person can download it. Like a direct connect server/client. Could someone help me? I'm really frusturated with all the trouble! Also I know about sockets, but i don't know how to use them or anything. Any links, or sources would be greatly honored! Please reply soon!


    I would recommend MSDN link for winsock

    Raghuram

    Comment

    • Braindrool12
      New Member
      • Jan 2008
      • 14

      #3
      Thanks for the link! That helped a lot with the functions! Though is that how i link winsock to it? Whats the '.h' for? Also is there a certain winsock i need for c++ sockets? I just have winsock.dll and i don't know a thing about linking it to source code/project. Because I always see things like, winsock2, winsock, winsock32 and lots of winsocks! Please reply soon! =)
      Originally posted by gpraghuram
      I would recommend MSDN link for winsock

      Raghuram

      Comment

      • gpraghuram
        Recognized Expert Top Contributor
        • Mar 2007
        • 1275

        #4
        Originally posted by Braindrool12
        Thanks for the link! That helped a lot with the functions! Though is that how i link winsock to it? Whats the '.h' for? Also is there a certain winsock i need for c++ sockets? I just have winsock.dll and i don't know a thing about linking it to source code/project. Because I always see things like, winsock2, winsock, winsock32 and lots of winsocks! Please reply soon! =)
        Try using winsock2 and i think your issue will be solved

        Raghuram

        Comment

        • Braindrool12
          New Member
          • Jan 2008
          • 14

          #5
          I took a look at the link, that helps my winsock issues. But it says i should be familiar with VC, also already know how to set up a socket. The problem is i don't know how to do those (from what the site says.)

          Comment

          • gpraghuram
            Recognized Expert Top Contributor
            • Mar 2007
            • 1275

            #6
            Originally posted by Braindrool12
            I took a look at the link, that helps my winsock issues. But it says i should be familiar with VC, also already know how to set up a socket. The problem is i don't know how to do those (from what the site says.)

            Standard socket calls work with the Microsoft compiler.
            You need not know anythink specific about VC, only u should be familiar with the IDE.

            Raghuram

            Comment

            • Braindrool12
              New Member
              • Jan 2008
              • 14

              #7
              Well thanks for the help! Though i haven't been on thescripts.com for a while. So sorta a late response i guess. =l Though I found Something more enjoyable than sockets ( im not saying sockets are boring or not usefull, i think there extreemly importent for online stuff!) Though i found computer graphics to be entertaining! But thanks for the help you gave me already!!!

              Originally posted by gpraghuram
              Standard socket calls work with the Microsoft compiler.
              You need not know anythink specific about VC, only u should be familiar with the IDE.

              Raghuram

              Comment

              Working...