AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [WIP] Using MSN protocol with SourceMod (https://forums.alliedmods.net/showthread.php?t=175980)

lokizito 01-11-2012 22:19

[WIP] Using MSN protocol with SourceMod
 
1 Attachment(s)
It is a work in progress as it needs to be finished.

As it is at this moment, it uses MSNP8 to connect. Currently, it fully connects to the Notification Server, send the command for sync the contacts list and set your status to online. It can already answer to any request of messages, so it can receive messages, but not send then. Also, it can handle the receiving contacts split in differents packets (usually happens when you have more then a few contacts). Now, need just to add support for managing the contacts, adding/removing/moving from groups. When it's done, i will be adding natives to be used in others plugins, a few commands for chatting, and keep track about the contacts for other's plugins (e.g: if a contact is in the group RCON, it will work with that contact like a MSN rcon version)

It uses the Socket extension for everything except the Tweener Authentication which requires SSL and because of that, uses cURL extension. Also it uses sslice's MD5 stock to answer the challenges.

Documentation of MSNP8: http://msnpiki.msnfanatic.com/index....Authentication

Peace-Maker 01-12-2012 07:55

Re: [WIP] Using MSN protocol with SourceMod
 
Oh, i didn't know the protocol specifications were public. I'll mess around with that :)

lokizito 01-12-2012 08:38

Re: [WIP] Using MSN protocol with SourceMod
 
Using cURL extension with verbose on i'm able to see the ticket, but i can't find out how to retrieve the header.
EDIT: Updated the code on the first post, for what i've reach till now.

Peace-Maker 01-12-2012 08:54

Re: [WIP] Using MSN protocol with SourceMod
 
Use a regular expression!

lokizito 01-12-2012 09:07

Re: [WIP] Using MSN protocol with SourceMod
 
Quote:

Originally Posted by Peace-Maker (Post 1630111)
Use a regular expression!

I know that, the thing is, i don't know how to retrieve the response header. With verbose set to 1 i can see it, but don't know how to get it.

EDIT: Finished the whole NS authentication. Now just need to implement the responses for what is received.

lokizito 01-12-2012 17:55

Re: [WIP] Using MSN protocol with SourceMod
 
I've updated the attachment. Right now it recognizes almost everything that the NS may send. (RNG not implemented as the rest of the interface for chatting isn't implemented yed)

lokizito 01-13-2012 10:57

Re: [WIP] Using MSN protocol with SourceMod
 
More progress made, now it can send chat invites (it is made right after login to a test contact) and may work when receiving it.

lokizito 01-15-2012 21:29

Re: [WIP] Using MSN protocol with SourceMod
 
More progress made, now fully working at receiving and parsing contacts. And fully working at answering SB sessions. More info at the first post.

Alex30555 01-20-2012 17:33

Re: [WIP] Using MSN protocol with SourceMod
 
Nice :D

Bimbo1 01-24-2012 22:38

Re: [WIP] Using MSN protocol with SourceMod
 
Cool, didn't know it was possible D:


All times are GMT -4. The time now is 18:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.