1 package Object::Remote::Connector::INET;
6 with 'Object::Remote::Role::Connector';
8 has socket_path => (is => 'ro', required => 1);
12 my $path = $self->socket_path;
13 my $sock = IO::Socket::INET->new($path)
14 or die "Couldn't open socket ${path}: $!";
15 ($sock, $sock, undef);
20 push @Object::Remote::Connection::Guess, sub {
22 if (defined and !ref and /^.+:\d+$/) {
23 my $socket = shift(@_);
24 return __PACKAGE__->new(@_, socket_path => $socket);
34 Object::Remote::Connector::INET - A connector for INET sockets
38 Used to create a connector that talks to an INET socket. Invoked by
39 L<Object::Remote/connect> if the connection spec is in C<host:port> format.
43 Inherits arguments from L<Object::Remote::Role::Connector> and provides the
48 When invoked via L<Object::Remote/connect>, specified via the connection spec,
51 The remote address to connect to. Expected to be understandable by
52 L<IO::Socket::INET> for its C<PeerAddr> argument.