in reply to Re: Local socket model
in thread Local socket model
Both servers work fine with their counter-part (but I wrote them to do that). I haven't tried to change anything to debug the "c<->perl" problem, because I have a hard time understanding what could be wrong (they are just exchanging strings) and thought I would ask here to find out if there is something I'm unaware of.#!/usr/bin/perl -w use strict; # simple client use Socket; use IO::Handle; socket(TSOCK, PF_UNIX, SOCK_STREAM,0); connect(TSOCK, sockaddr_un("/tmp/testsock")) or print "ERROR!"; while (defined(my $messg = <TSOCK>)) { print $messg; print TSOCK "Hello server!\n"; TSOCK->flush; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Local socket model
by Illuminatus (Curate) on Oct 07, 2008 at 14:10 UTC | |
by Anonymous Monk on Oct 07, 2008 at 14:26 UTC | |
by Illuminatus (Curate) on Oct 07, 2008 at 14:38 UTC | |
by ikegami (Patriarch) on Oct 08, 2008 at 01:00 UTC |