Welcome to LinuxQuestions. In the future, please limit your question to the one subcategory that is most appropriate. For that question, it is probably this one -- Programming.
Also, you've not actually asked a question. You would benefit from reading this: http://catb.org/esr/faqs/smart-questions.html
I suppose you are talking about a "Vehicular ad-hoc network". What about this general concept do you want to reproduce in software?