Lines Matching refs:connection
34 ## Open a TCP connection to the specified host and port.
45 ## Close the TCP connection.
47 my ($connection) = @_;
48 $connection->shutdown(2);
55 my ($connection, $hexdata) = @_;
59 my $sent = $connection->send($data, 0);
70 my ($connection, $expected_hex) = @_;
75 my $ok = $connection->recv($actual_data, length($expected_data));
96 my $connection = open_connection($host, $port);
97 write_data($connection, $data1);
98 if (!read_response($connection, $response1)) {
101 close_connection($connection);