Messageboard are relatively easy (depending on the features ofcourse).
Instant messaging works differently in that you need to contact a central server to see if your mate is online and get his/her address specs. Also, a messageboard is a page request, while instant messaging is a push (or so I assume, it would be inefficient ot continuously poll for a new message).