资 源 简 介
Gpshub is a server written in C++, it allows sharing gps positions between hosts connected to the network. Each host declares a list of buddies (other hosts) who are allowed to get its position data. Server uses UDP connection for transfering gps data, what should ensure the smallest possible amount of data transfered. Its goal is to enable applications to display real-time positions of other devices.
.-----------. .------>| gpshub |<-----. | "-----------" | .-----. ^ .-----. | gps | | | gps | "-----" | "-----" .-----. | gps | "-----"
gps - host which shares position with others, position data comes from gps device
.------------. .--------. | gpshub |<----TCP-----| gps | | |<----UDP-----| | "------------" "--------"
TCP - command channel
UDP - g