Winsock Programming

This is a discussion on Winsock Programming within the C++ Programming forums, part of the General Programming Boards category; I'm currently working on an IRC-RPG. I know all the things to do it, except the most important one . ...

  1. #1
    Registered User SubLogic's Avatar
    Join Date
    Jan 2003
    Posts
    33

    Exclamation Winsock Programming

    I'm currently working on an IRC-RPG. I know all the things to do it, except the most important one . Sockets. Any tutorials or examples how to connect to an irc server or any other server using <winsock.h>? I'm currently working with console so I'm not sure about windows api functions...
    0100001

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    A good place to start is http://www.ecst.csuchico.edu/~beej/guide/net/html/.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User SubLogic's Avatar
    Join Date
    Jan 2003
    Posts
    33
    Yeah, I've seen that tutorial, but what I was really looking for is a ready simple example on how to connect, send data and recieve data. I've done winsock programming in visual basic. I used to create bots for channels so please don't say "Read the IRC Ref file" because once I even done a client that could handle up to two simultaneous networks and ten channels on each
    0100001

  4. #4
    Registered User SubLogic's Avatar
    Join Date
    Jan 2003
    Posts
    33
    Originally posted by vVv
    The IRC protocol is very easy to program, have a look at the RFC. Start with NICK, USER and PING.
    Damn! I Just said that!
    0100001

  5. #5
    Registered User SubLogic's Avatar
    Join Date
    Jan 2003
    Posts
    33
    Humpf! I just tried the code you gave me. I did some changes in the remote address but there's a whole lot of confusing.. If maybe you included some comments. I mean rc is not defied, s is not defined some_buffer is not defined.... And when recieving, I do not thing it just recieves, it should go to a loop or something.. until disconnected...
    0100001

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    You should study Winsock or socket in general from a good book. I highly recommend Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.

    Kuphryn

  7. #7
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136

  8. #8
    Registered User SubLogic's Avatar
    Join Date
    Jan 2003
    Posts
    33
    OK. I'll try reading some tutorial about sockets in C++, maybe I'll get something out of it..
    0100001

  9. #9
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    winsock is damn easy... try the link up above, it has plenty of examples iirc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock issues
    By tjpanda in forum Windows Programming
    Replies: 3
    Last Post: 12-04-2008, 08:32 AM
  2. Winsock Messaging Program
    By Morgul in forum Windows Programming
    Replies: 13
    Last Post: 04-25-2005, 05:00 PM
  3. Winsock - Where do i start?
    By Brain Cell in forum Networking/Device Communication
    Replies: 5
    Last Post: 02-14-2005, 01:39 PM
  4. Where do I initialize Winsock and catch messages for it?
    By Lithorien in forum Windows Programming
    Replies: 10
    Last Post: 12-30-2004, 12:11 PM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 01:45 AM

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