in reply to Problem with Socket Programming Perl Script
accept is for listening sockets, i.e. servers. Your constructor usage, however, looks like you want to connect to an existing service. This is why the accept call fails and returns undef. (If you had checked for errors, you'd have gotten "Invalid argument" in $!)
See perlipc for examples of client-side code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with Socket Programming Perl Script
by ashok.g (Beadle) on Jan 24, 2011 at 10:47 UTC | |
by Anonyrnous Monk (Hermit) on Jan 24, 2011 at 10:58 UTC | |
by tyingst (Initiate) on Feb 10, 2016 at 19:44 UTC | |
by ashok.g (Beadle) on Jan 24, 2011 at 11:07 UTC | |
by Anonyrnous Monk (Hermit) on Jan 24, 2011 at 11:12 UTC | |
by ashok.g (Beadle) on Jan 24, 2011 at 11:24 UTC | |
|