igor1212 has asked for the wisdom of the Perl Monks concerning the following question:
I need to know, how can I read socket syn data, sent from the client?
I'm using some gps tracking devices which connects to my tcp server written in Perl with IO::Socket::INET.
I'm perfectly receiving data from clients, but not the sync packet, which contains gps device id.
When the client device connects to the server firstly sends a sync packet and then continues with sending gps data.
As of manufacturer, sync packet format is:
typedef struct
{
WORD SyncHeader;
WORD SyncID;
DWORD UnitID;
} SyncStruct;
How can I get this data on socket connection?
Thanks in advance for your help.
Igor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Socket syn data
by Corion (Patriarch) on Dec 08, 2008 at 19:05 UTC | |
|
Re: Socket syn data
by Wiggins (Hermit) on Dec 08, 2008 at 20:55 UTC | |
by igor1212 (Novice) on Dec 10, 2008 at 12:26 UTC |