From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:36]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 0E29077EF7 for ; Tue, 29 Dec 2015 18:45:48 -0800 (PST) Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-04v.sys.comcast.net with comcast id zelV1r0052Udklx01emCmZ; Wed, 30 Dec 2015 02:46:12 +0000 Received: from eklhad ([IPv6:2601:405:4001:e487:21e:4fff:fec2:a0f1]) by resomta-ch2-18v.sys.comcast.net with comcast id zemB1r00X2MDcd701emBfi; Wed, 30 Dec 2015 02:46:12 +0000 To: Edbrowse-dev@lists.the-brannons.com CC: ubuntu@geoffair.info From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.6.0+ Date: Tue, 29 Dec 2015 21:46:11 -0500 Message-ID: <20151129214611.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1451443572; bh=3pkLSbgw/rRb5x6PKCtcqY0wJn7NDYkxHAQvzZhVXjE=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=LsAV2VYfg9EyZRYerUax+UtGJuX21pofHsbN4mFGokmDQN0ABzoigC6AKJx7OIbmC Kbgh9GULbm1bvysBDNZ5+szuOMq3c5S1ZpbbYOAuIJ/Q5ONgAbVhDAr0vqe8n8eMr0 /immmnlQYfBYzS0gbhnsqoTu+PVMmWZ3gPCZ9H4go2ccc0EqxJg+Ligr9136rU7QjX SJ8exGpXZfGLY2FzUmhRX0mlS4MRKJUqn4WQAhwGJYYoKK3K/Y8HLv9n9PdFqCEBKU 9QsB4LISewwwkGs1DyCI5/JW5y6jRDea0jB3hNUP7qw9S0ME789QRBUE1D3KYLLpre aOm6FlrxKOqQQ== Subject: [Edbrowse-dev] socket.c and socket.h X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2015 02:45:48 -0000 Thinking about socket ipc for edbrowse, I resurrected the old files, which were called tcp.c tcp.h, but I renamed them to socket in that we will probably add udp capability. Based on the comments in socket.c, I used these for portable sockets between unix and windows NT. (How long ago was NT?) I'm sure it worked at one point but who knows if it still does. Geoff I'm copying to you because I don't know if you still monitor this mailing list. Please have a look at these files and let me know what you think with regard to portability and operation. There is included a test program built by cc -DTEST_CONNECT socket.c -o testsock which is in the test debug section of the makefile, so type make testsock Then from two different consoles testsock l 5432 testsock c localhost 5432 l is for listen and c is for connect. Type lines into the second and they appear at the first, until EOF. It still works on Linux, don't know about windows. Beyond this, Geoff, or whomever, we should add udp functions, as Adam points out. Or, if this is just too far off to be useful then we can delete them and start over, but I hope it is at least a place to start. Karl Dahlke