For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > November 2004 > steaming events to one socket









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author steaming events to one socket
tony

2004-11-23, 8:57 am

Hello,

I am looking into consolidating (multiplexing?) events from HP OV and
BMC to one socket. The idea being that you can monitor this socket,
parse it and extract whatever info you like from this socket.
Although i have quite some experience with C and perl, I dont know to
do this.
If possible id like to do this in perl first for quick n easy coding,
and then C for speed.
Any hints on how to do this, or links to fine manuals - greatly
appreciated.

TIA


Tony
Robert Harris

2004-11-23, 3:58 pm

tony wrote:
> Hello,
>
> I am looking into consolidating (multiplexing?) events from HP OV and
> BMC to one socket. The idea being that you can monitor this socket,
> parse it and extract whatever info you like from this socket.
> Although i have quite some experience with C and perl, I dont know to
> do this.
> If possible id like to do this in perl first for quick n easy coding,
> and then C for speed.
> Any hints on how to do this, or links to fine manuals - greatly
> appreciated.

You need select(2) or poll(2) which will enable you to monitor more than
one socket.

Robert
>
> TIA
>
>
> Tony

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com