- or download this
# Send side routines
sub connect {
...
Proto => 'tcp',
Reuse => 1);
- or download this
use Msg;
...
...
die "Client could not connect to $host:$port\n" unless $conn;
print "Connection successful.\n";
- or download this
# Create a connection end-point object
my $conn = bless {
sock => $sock,
rcvd_notification_proc => $rcvd_notification_proc,
}, $pkg;
- or download this
sub send_now {
my ($conn, $msg) = @_;
_enqueue ($conn, $msg);
$conn->_send (1); # 1 ==> flush ??????
}
- or download this
$conn->_send (1);
- or download this
_send ($conn,1);