Common Ping Implementation and Interface

Well, now that I have basic versions of ComeBack and remote post working, I had a few thoughts about Inter-Blog Pings in general.

There seem to me to be a few different types of pings now:

  1. Update pings
  2. Trackback pings
  3. Pingback pings
  4. ComeBack pings
  5. remote post pings

Doesn't it seem time to provide a common API for all these? Or at least unify all the code for them in a single Perl module. Trackback code is all over the MT core at the moment (at least as far as I've seen). In MT.pm and MT/App/Trackback.pm mostly.

It would make more sense to me to have something like the following: lib/MT/Ping.pm lib/MT/Ping/Update.pm lib/MT/Ping/Trackback.pm lib/MT/Ping/Pingback.pm lib/MT/Ping/ComeBack.pm lib/MT/Ping/remotepost.pm

That way all of the inter-blog communication code could be encapsulated in this Ping.pm module, allowing the easy creation and modification of pings. All the remotepost.pm module would have to worry about is posting the actual entry to the blog. It would not have to go through all of the steps needed to parse out the parameters from the HTTP Query string. And along those lines, this would also facilitate moving to another form of inter-blog communication. If you wanted to go XML or the like, just make the changes in Ping.pm and everything is wondeful in the land of pings again. Nothing to change in any of the other files.

Well. those are my thoughts for now at least.

4 TrackBacks

Pre vaše vlastné CMS by možno staèilo pokuka internet a použi èosi hotové. Hadí kód Pythonu máme za sebou. Teraz poïme na podporu pre Perl: TrackBack Standalone od MovableType Perl Modul pre TrackBack via whump.com Davin Raynes: Common Ping Implement... Read More

Pre vaše vlastné CMS by možno staèilo pokuka internet a použi èosi hotové. Hadí kód Pythonu máme za sebou. Teraz poïme na podporu pre Perl: TrackBack Standalone od MovableType Perl Modul pre TrackBack via whump.com Davin Raynes: Common Ping Implement... Read More

Pre vaše vlastné CMS by možno staèilo pokuka internet a použi èosi hotové. Hadí kód Pythonu máme za sebou. Teraz poïme na podporu pre Perl: TrackBack Standalone od MovableType Perl Modul pre TrackBack via whump.com Davin Raynes: Common Ping Implement... Read More

Pre vaše vlastné CMS by možno staèilo pokuka internet a použi èosi hotové. Hadí kód Pythonu máme za sebou. Teraz poïme na podporu pre Perl: TrackBack Standalone od MovableType Perl Modul pre TrackBack via whump.com Davin Raynes: Common Ping Implement... Read More

5 Comments

Come to think of it, instead of just moving to another interface, you could actually add interfaces. That way you could send a (Update|Trackback|Pingback|ComeBack|Post-It) ping via (XML|HTTP|Email|Interface-of-the-future) and the base Ping.pm module would handle all the comms.

please send me the implementation of ping in linux

please send me a copy of your ping implementation as early as possible.
thanking you

i am student of Walchand college of sangli ,maharashtra i am also in search of IPv6 ping implementation so if u got any prgm. keep ur self in touch

Leave a comment

About Me

I am a software developer for Six Apart living outside of Baltimore, MD. I have written a number of plugins for Movable Type, including the award winning MultiBlog, which has (as of MT 4) been integrated into the base application....
More...

Recent Entries

  • Minimalist plugins are fun!

    Last night I whipped up one of the smallest plugins I’ve ever written. It is so small in fact that I was able to stuff...

  • Feedburner Widget on MT News

    Movable Type News A WordPress 2.5 Upgrade Guide: And of course there are lots of third-party plugins for the MT dashboard, to integrate statistics and...

  • AD&D Monster Stats for the Presidential Canditates

    Charles Stross (scifi author, D&D nerd, and former perl columnist) posted Politics as she is Played with 3d6: The recent death of Gary Gygax, who...

  • Feedburner Widget 0.3

    At this point, I am really tempted to drop the ‘Widget’ from the name of the plugin, since it is doing so much more...

  • Feedburner Widget 0.2

    So I finally got around to updating the FeedburnerWidget plugin for MT 4.1 (since I finally got around to upgrading my install to MT 4.1)....

Close