From owner-freebsd-questions@FreeBSD.ORG Wed May 21 02:20:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0DFC106567F for ; Wed, 21 May 2008 02:20:35 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 5C0888FC0A for ; Wed, 21 May 2008 02:20:34 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1470551ywe.13 for ; Tue, 20 May 2008 19:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=bXhP5wf/c+YcRxCCHxb4m3wp3AJfjHnZKL8rHTFIn08=; b=krLSsfrk5tlp58OGds/QUKW7zENec8Hm18fmKfq+/BtT8UQkLrwFAPFCd3mWv5qdZcQU1JsjSx++CnUHpOKjHowLncw4CHk23lKarzogEg3J1YJvKA2P4700nRAAX3C2i+rJftz+Vcf/xhfAsv5vK2ZoK8m5GTtV1I0GodcSrtA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=D8nP5NagH6sLgj7KPAUDbxNg0O9WCLSJRQFhG2ZbXm7nnWQq4+bxAAbNZU4QjeJmbcX8r5fW8K8DmUGZ8ewuiRlpnwzn4KLWFSvEY2+assiieHaONk+l3jHCcGIHgo3SFPBXfBLEsT8F+FFx3YlPP32Sd3BRqcMr6vhN0KTOPgw= Received: by 10.150.82.41 with SMTP id f41mr8286547ybb.172.1211334748878; Tue, 20 May 2008 18:52:28 -0700 (PDT) Received: from ?192.168.4.140? ( [76.113.34.1]) by mx.google.com with ESMTPS id 33sm1287476yxr.3.2008.05.20.18.52.27 (version=SSLv3 cipher=RC4-MD5); Tue, 20 May 2008 18:52:28 -0700 (PDT) From: Tim Judd To: John Pettitt In-Reply-To: <4830AE78.6000806@cloudview.com> References: <4830AE78.6000806@cloudview.com> Content-Type: text/plain Date: Tue, 20 May 2008 19:52:23 -0600 Message-Id: <1211334743.1033.6.camel@t60.local.zz> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Slightly OT - steaming data server software? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2008 02:20:35 -0000 On Sun, 2008-05-18 at 15:32 -0700, John Pettitt wrote: > > > Slightly OT but since I'm going to run this on FreeBSD 7 I figured I'd > ask here .. > > I have an application where data arrives in what is effectively > continuous stream (actually NMEA messages from an AIS receiver) and I'd > like to have a server where an arbitrary number of clients can connect > to a tcp port and receive a copy of the stream. I could probably > write this in perl without too much work but somebody has to have done > something similar already - does anybody know of code that does this? > (and yes I know sending the messages as individual udp packets would be > easier - I'm already doing that internally but it doesn't work for > opening up the data stream to the public). nc -lk | tee /var/ais/data nc -lk