09-24-2014
Thank you for your response. Your comment on ipV6 with switch to link-local only will help. I suspect there are other issues related to hardware that need further investigation. Many thanks.
9 More Discussions You Might Find Interesting
1. Solaris
I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details:
FTP Client has Sun SSH.
FTP Server has F-Secure.
I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error
scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies
2. Homework & Coursework Questions
request
create a chat system in linux where a user type smth and all the other users connected to server get the message.then a user have to create join leave or delete a channel of chat if he created it.i did the server and the client but i dont know how to implemt the chat rooms.i was ... (1 Reply)
Discussion started by: demonmind
1 Replies
3. SCO
Hello All,
I have a SCO Unix server and when I do the command
"df -kP" I get the following:
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 2048000 934936 1113064 46% /
/dev/boot 15360 6419 8941 42% /stand
It should say
Filesystem 1024-blocks Used Available... (4 Replies)
Discussion started by: mikep9
4 Replies
4. UNIX for Advanced & Expert Users
=========================================================
Errrr previously post: https://www.unix.com/sco/140055-sco-open-server-6-system-halt.html
Then I think it's better to post here. If I wrong, please ignore.
=========================================================
Dear All,
Newbie... (1 Reply)
Discussion started by: virgani
1 Replies
5. SCO
Dear All,
Newbie here, hope my post goes to the correct room.
System: SCO Open Server 6.0
Everything running well, after this Sunday morning noone can login via telnet or via putty, the system suddenly reject without any message (and also ftp). The local IT Support there (without enough... (2 Replies)
Discussion started by: virgani
2 Replies
6. Solaris
Hi,
Does anyone know if the Sun Java System Directory Server (now Oracle Directory Server) is freely available for download?
Thanks (1 Reply)
Discussion started by: Mack1982
1 Replies
7. HP-UX
Hi all
I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge.
The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data.
Any help will be appreciated
FR (2 Replies)
Discussion started by: fretagi
2 Replies
8. AIX
Hi there
I've bought a used System p 9115-505. When I attach the LAN cable to my router the HMC receives an IP address from my router, but the HMC is unreachable. There are no open ports.
Does anybody know that problem?
Any help greatly appreciated. Greetings from Italy! (2 Replies)
Discussion started by: mediaset23
2 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I have a legacy system that is running on SCO OpenServer 5.0.6, and the hardware is becoming a little sketchy. I replaced the hard drive about a year ago, and was able to come back from a tape backup of my entire system. I have been successful with building a VM with VMware Workstation,... (42 Replies)
Discussion started by: spock9458
42 Replies
LEARN ABOUT DEBIAN
mojo::server
Mojo::Server(3pm) User Contributed Perl Documentation Mojo::Server(3pm)
NAME
Mojo::Server - HTTP server base class
SYNOPSIS
use Mojo::Base 'Mojo::Server';
sub run {
my $self = shift;
# Get a transaction
my $tx = $self->build_tx;
# Emit "request" event
$self->emit(request => $tx);
}
DESCRIPTION
Mojo::Server is an abstract HTTP server base class.
EVENTS
Mojo::Server can emit the following events.
"request"
$server->on(request => sub {
my ($server, $tx) = @_;
...
});
Emitted when a request is ready and needs to be handled.
$server->unsubscribe('request');
$server->on(request => sub {
my ($server, $tx) = @_;
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body('Hello World!');
$tx->resume;
});
ATTRIBUTES
Mojo::Server implements the following attributes.
"app"
my $app = $server->app;
$server = $server->app(MojoSubclass->new);
Application this server handles, defaults to a Mojo::HelloWorld object.
"app_class"
my $app_class = $server->app_class;
$server = $server->app_class('MojoSubclass');
Class of the application this server handles, defaults to the value of the "MOJO_APP" environment variable or Mojo::HelloWorld.
METHODS
Mojo::Server inherits all methods from Mojo::EventEmitter and implements the following new ones.
"new"
my $server = Mojo::Server->new;
Construct a new Mojo::Server object and subscribe to "request" event with default request handling.
"build_tx"
my $tx = $server->build_tx;
Let application build a transaction.
"load_app"
my $app = $server->load_app('./myapp.pl');
Load application from script.
say Mojo::Server->new->load_app('./myapp.pl')->home;
"run"
$server->run;
Run server. Meant to be overloaded in a subclass.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Server(3pm)