Important alert: (current site time 7/16/2013 3:43:08 AM EDT)
 

winzip icon

AOL Instant Messenger

Email
Submitted on: 4/27/2000 3:31:22 PM
By: Chad J. Cox  
Level: Intermediate
User Rating: By 55 Users
Compatibility: VB 5.0, VB 6.0
Views: 34978
(About the author)
 
     This examples shows how to connect and interact with the America Online Toc server.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

4/27/2000 5:10:12 PMcipher

looks real great chad, grabbed myself a copy and i'm impressed. excelent comments and code structure. ::claps:: keep up the good stuff.
(If this comment was disrespectful, please report it.)

 
4/27/2000 6:01:24 PMCool33

Very nice code. As a matter of fact, I had just begun a fairly similar code, but now I know how to actually connect to AIM server. This is great, it makes my program so much better. Thanks, awesome code, nice job.
(If this comment was disrespectful, please report it.)

 
4/27/2000 6:02:37 PMCool33

I have a question also. Where is it at irc.themes.org that you read about AIM TOC server?
(If this comment was disrespectful, please report it.)

 
4/27/2000 11:21:48 PMlim

chad?? is this Dos
(If this comment was disrespectful, please report it.)

 
4/28/2000 1:24:41 AMKev

Folks, if you want good clean written code...then Chad is the man to download it from. I encourage you to study this code and learn from it. Don't just rip it and call it your own. There is no honour in it and you will gain no respect that way. Great job Chad. You know if I ever need hire a programmer, you would be the first person I would approach. :)

- Kev
tpasoft.com
(If this comment was disrespectful, please report it.)

 
4/28/2000 2:26:30 AMMoPaRx

very nice! keep it up..
(If this comment was disrespectful, please report it.)

 
4/28/2000 2:58:14 AMpre

I like how it turned out. Hard effort always pays off.
(If this comment was disrespectful, please report it.)

 
4/28/2000 8:04:41 AMMichael Barnathan

YES! I was trying to do this for a very long time! Thank you!
(If this comment was disrespectful, please report it.)

 
4/28/2000 8:07:15 AMMichael Barnathan

Give me the answer to Cool33's question about irc.themes.org also, please. I want to find out a little more about it also.
(If this comment was disrespectful, please report it.)

 
4/28/2000 8:11:47 AMmtutty

This is nice code. It would greatly help my understanding of the protocols and string building if you would use constants for the special #s and characters that get embedded, also for port #s, etc.
(If this comment was disrespectful, please report it.)

 
4/28/2000 10:39:32 AMChad J. Cox

Guys, at http://irc.themes.org in the left column with all of the menus, under IRC Miscellaneous you will see "Tik", which is the AOL Tcl/Tk client. That download also includes a file named "Protocol" (no extension) which lists version 1.0 of the Toc protocol.

oh and lim, this is who you think it is.
(If this comment was disrespectful, please report it.)

 
4/28/2000 12:27:54 PMlazy

this project turned out very good... i liked it myself... keep up the good work :]
(If this comment was disrespectful, please report it.)

 
4/28/2000 2:52:51 PMMichael Wieck

Very nice, Chad. I know that you have been working on this example for quite some time now, so it's nice to see that all your time and effort has paid off. Keep up the good work, and good luck with winning the Coding Contest.
(If this comment was disrespectful, please report it.)

 
4/28/2000 3:10:29 PMJesse Alter

This will be interesting to browse through. I'm mildly concerned about how AOL's constantly changing their protocol around so people on MSN and such can't access it. How will that affect this program?

Great job with the program though, I wish you much success in the future. =)
(If this comment was disrespectful, please report it.)

 
4/28/2000 3:28:04 PMChad J. Cox

Honestly I can't say how this example would be affected by AOL changing their protocol. I used the same documentation that was initially released by AOL before their problems with Microsoft began. This is also the same protocol used by several of the Linux and BeOS clones. It makes me wonder if Microsoft wasn't trying to take advantage of the Oscar protocol instead. Your question is a good one. I'll have to look into it and see what I can find out.

-Chad
(If this comment was disrespectful, please report it.)

 
4/28/2000 3:35:22 PMJeremy

Great code, works great with no errors. Nice work chad.-Jeremy (da joker)
(If this comment was disrespectful, please report it.)

 
4/28/2000 3:35:39 PMJeremy

Great code, works great with no errors. Nice work chad.
(If this comment was disrespectful, please report it.)

 
4/28/2000 5:21:22 PMrokinroj

If ever there was a reason to vote this is it. Even knowing that my vote for Chad is going to move my project further down the code of the month list, I'm still giving him an excellent.
(If this comment was disrespectful, please report it.)

 
4/28/2000 5:22:54 PMrokinroj

The code is clean, well commented, properly named, properly indented. This guy should be the poster boy for VB! Great job Chad!

(If this comment was disrespectful, please report it.)

 
4/28/2000 9:01:24 PMngjc

Now, if we could ONLY figure out how AOL MAIL works, then I could stop telling my clients who use AOL that they're assed-out because AOL decided to be the only company in the WORLD to break from POP/SMTP standard...
(If this comment was disrespectful, please report it.)

 
4/28/2000 11:58:46 PMChris

Very Very Impressive. Thanks for sharing this code with the rest of us. This is definately code that sets the standard. Way to go!
(If this comment was disrespectful, please report it.)

 
4/29/2000 12:06:55 AMcipher

Looks like you didn't work hard enough Harlan. ::chuckles::
(If this comment was disrespectful, please report it.)

 
4/29/2000 12:20:08 AMplastik

Truely the best thing I've seen come out of you chad! Great job and keep up with the great visual basic examples and projects you try!

Harlan, it seems to me that Chad has come out with it first, maybe if you came out with it first you could have a say in it. This will help out a lot of people, try not to be so selfish.
(If this comment was disrespectful, please report it.)

 
4/29/2000 3:17:15 AMCyfrin

Chad, Is that the best you can do? ::laughing:: Just kidding. I think you did a great job. Keep up the great work and dedication.
(If this comment was disrespectful, please report it.)

 
4/30/2000 3:22:23 AMxvaporx

Chad,
You've done it again! Your the man! Referring to the comment about you being the Visual Basic Poster Boy, It should be the Visual Basic Poster Man! Hehe :o)

Oh And Harlan,
I wonder why Chad isn't answering your mail? Hmmm...let's think about that. Who cares if he's ruining for selfish people like you. People like you would price **** like this way to high anyway.
(If this comment was disrespectful, please report it.)

 
4/30/2000 6:30:00 PMVincent Abruzzo

Very nice coding, next to Steve Case and Bill Gates, you're my hero.
<3 null
(If this comment was disrespectful, please report it.)

 
4/30/2000 9:39:32 PMdoughboy

Its a great code but it would be helpful if you also made a version in vb5,

(If this comment was disrespectful, please report it.)

 
5/1/2000 2:14:56 AMGreg

First, this example kicks.
I hope a lot of people read this, people check out www.andymaul.com.
He recompiled Chad's program and didnt give ANY credit to Chad.
Email him and let him know what you think about him ripping Dos's code and not giving any credit.
(If this comment was disrespectful, please report it.)

 
5/2/2000 1:52:28 AMatomic

nice work. ive always like your coding style.
(If this comment was disrespectful, please report it.)

 
5/2/2000 4:04:40 PMjhiner

Hey sweet code. Just one quesiton: How did you figure out how to talk to the aim toc server? Did you have some kind of port monitor or what? I'd really like to know. -Thanks.
(If this comment was disrespectful, please report it.)

 
5/2/2000 4:36:02 PMKevin

jhiner -- He probably used a packet capture program like SpyNet. This captures all the data going through your network card or modem. This is how i figure out how to communicate with servers ;)
(If this comment was disrespectful, please report it.)

 
5/6/2000 8:45:28 PMAndrew Killer

I have only got one thing to say about the code and it is
(If this comment was disrespectful, please report it.)

 
5/7/2000 12:50:16 AMgleet

man chad(dos) great work... i am just happy that you are helping the not so good at vb people, j/k... i suck at vb(kinda) but everyone is not good at vb, not even bill gates ;p... well dos you know the whole dang thing.... and i looked at it and deleted it because i don't steal code... great coding, get work, great effort... i give you a 10/10... thanks, and visit my site.... www.gleetx.net. thanks chris(gleet)
(If this comment was disrespectful, please report it.)

 
5/10/2000 6:39:41 PMHarlan Iverson

sorry for pissing people off...plastik, your right...i was being too selfish...i decided to release mine along with the source code in my ocx format....also includes a quickie example project. should make it easy...my appoligies to everyone
~harlan(loopy)
(If this comment was disrespectful, please report it.)

 
5/11/2000 5:20:52 PMpugz

Whoa! it's the one and only DoS! Man, I didn't even download this code because I already know it was going to be off the hook. Just like everything else you code, and by the looks of the comments.. it's probaly the most respected code on psl. Just wanted to say that you got a awesome future in programming and that I have learned alot form your help files.

Keep up the good work!
-proggin for 2 years and still a beginner... the real "PugZ"
(If this comment was disrespectful, please report it.)

 
5/11/2000 10:30:50 PMMichael Barnathan

OSCAR HIDEs his SNACK behind a FLAP, but you've found a way to GET it :)
(If this comment was disrespectful, please report it.)

 
5/12/2000 9:56:24 PMAzId

Yo, it's Dos, haven't seen one bad thing from you yet, and that streak coninues. You've been my programming hero(so to speak) on everything from progs to various code functions I've seen you write. Don't stop now, you can only get hotter.
(If this comment was disrespectful, please report it.)

 
5/13/2000 9:58:32 PMJason Simmons

Dude, this code is excellent! You should make examples like this for other messengers and stuff. I've been collecting the protocols and stuff but I can't really understand them. If you want them email me at jasongsimmons@hotmail.com.
(If this comment was disrespectful, please report it.)

 
5/16/2000 6:55:19 PMBoCc

This is a really good program...good job Chad...
(If this comment was disrespectful, please report it.)

 
5/17/2000 9:55:14 PM\/îÞè® Tè¢.

I always get this error when trying to sign on:
Connection is forcefully rejected
(If this comment was disrespectful, please report it.)

 
5/19/2000 1:49:38 AMJosh

Yo chad,sup??? hey does any one know where to get a port logger??? i need one so i can ad Proxy Support to a TCP/IP program,,, and AOL mail is porbably TCP if i know any better,it probably sends a request to AOL to send it then it sends it Via some other way probably Web based mail I.E. hotmail....
The Wing Zero Knows...
(If this comment was disrespectful, please report it.)

 
5/21/2000 3:50:04 PMsphere

chat, remember me?
(If this comment was disrespectful, please report it.)

 
5/21/2000 4:14:37 PMsphere

chat, remember
me?

ehh, prob not, but a while ago i
used to hang out on the aol room, but
no one does anymore....

anyway, i
downlaoded this code, and singed on. i
was ammazed. the one thing i have to
say is that the buddy lsit doesnt
worok. i added my sn to it, and it
never showed up. and i couldnt start
an im, i had to im from my aol to this
, but then it worked...really good, btw
im on #thezone at `sphere

matt

(If this comment was disrespectful, please report it.)

 
5/31/2000 5:17:19 PMSome guy

Awesome code! My buddy list wipes itself out when i exit the program is is supposed to? if not, could you please tell me how to make it?
(If this comment was disrespectful, please report it.)

 
6/3/2000 8:37:45 PMWolvenWraith

If anyone is good at decrypting at the hex level.. or knows what the current (not the older version that this client is based on) AIM Roasting string/Encryption Key is.. it will be VERY useful to me on this client I'm working on that's using the newer coding.. thanks
(If this comment was disrespectful, please report it.)

 
6/3/2000 8:38:36 PMWolvenWraith

Oh forgot to say, great code chad. Helped a lot with the headers especially
(If this comment was disrespectful, please report it.)

 
6/5/2000 11:00:24 PMJsan

I'm looking for something to interact with icq. Do you have anything like that?
(If this comment was disrespectful, please report it.)

 
6/10/2000 2:14:15 AMvbproggyboy

THANK YOU, this code is awesome!!!!!!!!!!!!!!!!
Thank you so much for finding this code and putting it on this site!!!thanks again, this code is awesome
(If this comment was disrespectful, please report it.)

 
6/21/2000 12:20:31 AM\/îÞè® Tè¢.

Hey, Chad? WE need some help. The buddylist won't save. i have tried EVERYTHING besides paying someone to do it. Nothing seems to work. Maybe that swelling VB brain of yours can think something up.
(If this comment was disrespectful, please report it.)

 
6/22/2000 9:49:11 PMvbproggyboy

hey chad,
nice code and all but it doesnt work for me anymore,
everytime i try to log on it says there was an unknown login error can you tell me how to fix it? thanks
(If this comment was disrespectful, please report it.)

 
6/28/2000 3:54:49 PMProgWiz

Dude!
Awosome code and work! I wish I could program as good as you can in VB. BTW, where did you learn so much about VB. Anyways thanks for sharing and if you think you could help me by teaching me some stuff email me @ pazeshel@hotmail.com
Thanks man,
ProgWiz
(If this comment was disrespectful, please report it.)

 
7/7/2000 9:28:47 AMJoe

Excellent!
Excellent!
Can anyone write a server program and have this Client connect to it instead of AOL with the same features. Please contact me at: nystallion@hotmail.com
(If this comment was disrespectful, please report it.)

 
7/15/2000 8:52:23 PMcozmikx

WOW. This is great, could I put into my own programs, of course you would get FULL CREDIT... please email me (c0zmikx@cs.com)
(If this comment was disrespectful, please report it.)

 
7/20/2000 5:50:56 AMRandy

Hmm... This Wont Even RUN For Me! - I Goto Run and it highlights
(If this comment was disrespectful, please report it.)

 
7/20/2000 5:52:33 AMRandy Porosky

Geez I just wrote a ton of text and psc didnt even publish it!! Well, This Code Wont Even RUN! it loads everything ok, all forms/modules is loaded. this thing has alot of errors... can sum1 help?
(If this comment was disrespectful, please report it.)

 
8/6/2000 12:03:42 PM(\/)enace

whats up DoS I have been a big fan of your work for sometime now, from your bas, and ocx, to your tutorial, which actually taught me API, I need to ask you something, so get back to me if you can. Well I would just like to say good job, and keep up with the submissions.
(\/)enace
(If this comment was disrespectful, please report it.)

 
8/22/2000 10:33:51 PMMichael

For some reason this code doesn't work for me. It says connected, but then it doesn't do anything. Is anyone else getting this problem?
(If this comment was disrespectful, please report it.)

 
8/27/2000 3:10:00 AMagent153

I haven't downloaded the code yet, but if it works like you say it does, I'd like to write a plugin for Hazardous Materials (http://hazmat.agent153.net) out of it. I'll include it with version 1.0 and you'll get credit for the code. (Writing name down...) Contact me for more info: agent@agent153.net (Subject line "AIM for HazMat")
(If this comment was disrespectful, please report it.)

 
8/27/2000 3:19:26 AMJason Campbell

OK, the code does not work with vb5, but it says it's compatible with vb5. Sorry, can't make a plugin, cause I don't have vb6. (I think i'll be getting it soo though).
(If this comment was disrespectful, please report it.)

 
9/23/2000 8:04:23 PMThe Hobo

This is awesome coding, but I can't seem to get the buddylist to load :-/ can anyone help me out?
(If this comment was disrespectful, please report it.)

 
9/30/2000 3:16:49 PMArkonDude

The buddy list will not show up for me as well... could this have something to do with being on a proxy server?
(If this comment was disrespectful, please report it.)

 
10/8/2000 12:41:49 PMThe Hobo

Um...someone sent me an email helping me with the buddy list thing, and I...I kinda deleted it. Could they please send it again? thanks!
(If this comment was disrespectful, please report it.)

 
10/13/2000 4:11:34 PMThe Hobo

If anybody has a problem with the buddylist load, i wrote a code of my own for it, if you're interested, email me.
(If this comment was disrespectful, please report it.)

 
10/13/2000 5:50:30 PMSungHo

Kick AzZ Koding, Nice Interface, Clean Code, GOOD JOB!
(If this comment was disrespectful, please report it.)

 
10/16/2000 11:44:16 AMtwyvin

Buddy list fix. In SaveBuddies
(If this comment was disrespectful, please report it.)

 
10/16/2000 11:48:49 AMtwyvin

Buddy List Fix.
In LoadBuddies and SaveBuddies
change every occurrence of
chr(1) to "%"
(If this comment was disrespectful, please report it.)

 
10/16/2000 12:00:03 PMtwyvin

Not having any luck here
the 96 was typed in as a percent symbol,
but any character that is not in a buddy name should work.
by the way this is excellent code.
(If this comment was disrespectful, please report it.)

 
12/10/2000 11:10:24 PMdopepope

arg after it does all the connecting the buddylist wont load, i saw someone say same thing happend. please help. (iammastermind@aol.com - use please instead of given one)
(If this comment was disrespectful, please report it.)

 
12/20/2000 2:36:03 PMThe Hobo

I don't think Chad checks these messages anymore, but if anyone has a problem with the buddylist not working, email me at guitarhobo@hotmail.com, and I'll send you my altered source code for the buddy list. All working.

-The Hobo
(If this comment was disrespectful, please report it.)

 
3/1/2001 6:36:04 PMGryphon

Nice coding and all, but I was a bit misled by this being files as VB5 compatible... Perhaps its just my system, or that I'm not very good at kludging it up so it'll work on that version. Anyhow, if anyone has a more Vb5 friendly version, I'd really appreciate it if they got in touch with me. gryphon@megatokyo.org Thanks alot. =]
(If this comment was disrespectful, please report it.)

 
6/16/2001 1:48:29 PMsam moses

Nice. This was the first thing I've tried to compile with vb. I like it. Thanks.

(If this comment was disrespectful, please report it.)

 
6/17/2001 4:24:15 AMMaxMuscle

Why doesn't this work anymore? It used to work fine until about a week ago, then it connects but doesnt do anything... anyone else having this problem?
(If this comment was disrespectful, please report it.)

 
7/10/2001 8:56:10 PMThe Hobo

I have a fully working version with buddy list loads and the whole deal. I have opened a site regarding my work on the project at http://www.notthesame.net/projectaim where I will list what I currently have and need. I have opened this as a sort of sharing medium between developers for this project. I have also included on this site an example of how to load and save the buddy list.
(If this comment was disrespectful, please report it.)

 
10/10/2001 8:19:38 PMIntimidated

I have now submitted an updated (working) version of this code.
(If this comment was disrespectful, please report it.)

 
8/9/2003 9:46:58 PMPatrick Weber

If anyone didnt realize to check his web site you can download it from there. Here is the link for it... http://www.dosfx.com/downloads/aimclient2.zip
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.