-
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...
-
-
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 :p
-
Quote:
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! :mad: :mad: :mad:
-
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...
-
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
-
-
OK. I'll try reading some tutorial about sockets in C++, maybe I'll get something out of it..
-
winsock is damn easy... try the link up above, it has plenty of examples iirc.