09-15-2012
That's Done, Thank You..
One more thing I want to ask, Is it possible to send the file (without opening it) through Socket.
10 More Discussions You Might Find Interesting
1. Programming
Dear Reader,
Is there any way to check up socket status other than 'netstatus '
Thanks in advance, (1 Reply)
Discussion started by: joseph_shibu
1 Replies
2. Programming
Hello,
I actually try to make client-server program.
I'm using SCO OpenServer Release 5.0.0 and when I try to compile my code (by TELNET) I've got this error :
I'm just using this simple code :
and I get the same error if I use :
If someone can help me,
Thanks (2 Replies)
Discussion started by: soshell
2 Replies
3. IP Networking
my system is a stand alone system... i want to try doing socket porgramming..ihave heard that this is usually done during testing...
how can i do that....? (6 Replies)
Discussion started by: damn_bkb
6 Replies
4. IP Networking
Hello Everyone
Iam working on tcp/ip programming.with some time interval server has to send data.client has to close the connection and to open the connection between the time interval.this is the scenario
when iam closing the connection in client side the connection terminates.how to... (1 Reply)
Discussion started by: sureshvaikuntam
1 Replies
5. Shell Programming and Scripting
hi
i want to write simple socket program which will listen on socket . here is the code
## read msg on socket
#! /usr/bin/perl
use IO::Socket::INET;
my $MySocket= IO::Socket::INET->new(LocalPort=>1234,
Proto=>'udp') ;
while ()... (2 Replies)
Discussion started by: zedex
2 Replies
6. UNIX for Advanced & Expert Users
Hi,
I am trying to connect to more than 60 servers to perform some actions remotely. for this I am using ssh2. But its taking lot of time.
Though i am running the command in background, still its taking long time to execute..
Any one let me know can we use sockets instead of ssh2 for... (3 Replies)
Discussion started by: pvamsikr
3 Replies
7. UNIX for Advanced & Expert Users
can we send udp message to a destination ip address .. without having an ip address configured in our machine using recvfrom ? (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies
8. UNIX for Dummies Questions & Answers
in c socket programming, how can I send and received on the same port? (7 Replies)
Discussion started by: Peevish
7 Replies
9. UNIX for Dummies Questions & Answers
in socket programming how can i : Create for example 3 blank files, namely: server, client, network
•Server: act as servers/provider, will receive all requests from different client
•Client: requesters
•Network: middle-layer of communication between server & client
any tips or... (6 Replies)
Discussion started by: kedah160
6 Replies
10. Programming
Hi everyone,
I'm new to this forum. I'm working on new project for last few days and this forum already helped me on
couple of occasions. I don't have any prior experience with network programming so I'll appreciate any advise given.
I'm trying to do the following:
1. open user... (2 Replies)
Discussion started by: _thomas
2 Replies
LEARN ABOUT DEBIAN
log::handler::output::socket
Log::Handler::Output::Socket(3pm) User Contributed Perl Documentation Log::Handler::Output::Socket(3pm)
NAME
Log::Handler::Output::Socket - Send messages to a socket.
SYNOPSIS
use Log::Handler::Output::Socket;
my $sock = Log::Handler::Output::Socket->new(
peeraddr => "127.0.0.1",
peerport => 44444,
proto => "tcp",
timeout => 10
);
$sock->log(message => $message);
DESCRIPTION
With this module it's possible to send messages over the network.
METHODS
new()
Call "new()" to create a new Log::Handler::Output::Socket object.
The following options are possible:
peeraddr
The address of the server.
peerport
The port to connect to.
proto
The protocol you wish to use. Default is TCP.
timeout
The timeout to send message. The default is 5 seconds.
persistent and reconnect
With this option you can enable or disable a persistent connection and re-connect if the connection was lost.
Both options are set to 1 on default.
dump
Do you like to dump the message? If you enable this option then all messages will be dumped with "Data::Dumper".
dumper
Do you want to use another dumper as "Data::Dumper"? You can do the following as example:
use Convert::Bencode_XS;
dumper => sub { Convert::Bencode_XS::bencode($_[0]) }
# or maybe
use JSON::PC;
dumper => sub { JSON::PC::convert($_[0]) }
connect
This option is only useful if you want to pass your own arguments to "IO::Socket::INET" and don't want use "peeraddr" and "peerhost".
Example:
connect => {
PerrAddr => "127.0.0.1",
PeerPort => 44444,
LocalPort => 44445
}
This options are passed to "IO::Socket::INET".
log()
Call "log()" if you want to send a message over the socket.
Example:
$sock->log("message");
connect()
Connect to the socket.
disconnect()
Disconnect from socket.
validate()
Validate a configuration.
reload()
Reload with a new configuration.
errstr()
This function returns the last error message.
PREREQUISITES
Carp
Params::Validate;
IO::Socket::INET;
Data::Dumper;
EXPORTS
No exports.
REPORT BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
If you send me a mail then add Log::Handler into the subject.
AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
COPYRIGHT
Copyright (C) 2007-2009 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-11-21 Log::Handler::Output::Socket(3pm)