in reply to Stream delimiting chars

I'm not quite sure... but this feels like what you want.
NAME IPC::Msg - SysV Msg IPC object class SYNOPSIS use IPC::SysV qw(IPC_PRIVATE S_IRWXU); use IPC::Msg; $msg = new IPC::Msg(IPC_PRIVATE, S_IRWXU); $msg->snd(pack("l! a*",$msgtype,$msg)); $msg->rcv($buf,256); $ds = $msg->stat; $msg->remove;

Replies are listed 'Best First'.
Re: Re: Stream delimiting chars
by jepri (Parson) on Sep 13, 2001 at 20:38 UTC
    I'm actually using IPC::SysV to do the transport (some of the time). IPC::SysV can only move a certain amount of data per message (quite small, about 4k).

    I've wrapped IPC::SysV in a module that sends data through and rebuilds it... thus the need for spotting the end of the message.

    I was being coy about the transport because I'm also using TCP, and anything else that comes to hand...

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.