How can I connect to an IRC server and chat. Basically I want to make an IRC program, but with REALLY limited features, can someone describe this process to me?
First of all, you'll need to make a server for the client to connect to(not hard if you use WinSock).
Then you can send messages to the server, which will be displayed on the client programs.
It is difficult to make a server that accepts more that one connection, but I you know WinSock, this will be an easy task!
There! (I assume you know the basics on the Winsock Control, otherwise just ask! You can find it rightclicking on your control tab on the left, selecting "Components" --> "Microsoft Winsock Control <ver.>".) We are connecting now.
As you probably expect, we must verify on the Connect Event. The server needs to know our nickname and user information.
--------------------
Private Sub TCP_Connect()
Say ">> Connected! Sending Data ..."
Send "NICK MyVBNickname01"
Send "USER [email protected] " _
& TCP.LocalIP & "irc.msn.com :VBIRC-Test"
End Sub
--------------------
Information sent! You're connected! The server probably sends his MOTD (Message Of The Day) and you're ready to go! I'll give you something simple to put every received string in the TextBox, and I think you can make some coding yourself on responding to the strings received (such as nick-changing, parts, joins, whatever).