8 More Discussions You Might Find Interesting
1. 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
2. Programming
i m using sockets for setting up a connection between a server and a client.
When the clients gets connected to the server, its ip is conveyed to the server through one of the predefined structures in c library...
i save this ip address in an array....1st client's ip address goes to the zeroth... (1 Reply)
Discussion started by: abmxla007
1 Replies
3. Programming
Hello!:)
I'm trying to do some socket programming based on the following situation:
I have a directory service named Casino that will hold all the information regarding the gamers that will try to connect to it in order to play a game(for example (Blackjack).Once they make the login they are... (4 Replies)
Discussion started by: maracumbigo
4 Replies
4. Programming
Hi ,
I'm facing the following problem in socket programming.
My structure is
struct {
int i;
char *str;
}samp;
I'm creating the pointer to this structure and assigning the value to the structure members and send via the socket to the another process.
The receiver process when... (7 Replies)
Discussion started by: arunviswanath
7 Replies
5. Programming
Can anyone plz me. I need a sample code for the following description.
Its urgent.
It is C/Socket program with the following descriptions:
NAME
coreadServer - Concurrent Readers Server.
coreadClient - Concurrent Readers Client.
SYNOPSIS
coreadServer <OutputFile>
coreadClient <n>... (1 Reply)
Discussion started by: priya.vmr
1 Replies
6. 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
7. UNIX for Dummies Questions & Answers
Dear all
Any recommendation for this, web-site or publisher? (3 Replies)
Discussion started by: trynew
3 Replies
8. 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
OpenGuides::Test(3pm) User Contributed Perl Documentation OpenGuides::Test(3pm)
NAME
OpenGuides::Test - Methods to help test OpenGuides applications.
DESCRIPTION
Provides methods to help when writing tests for OpenGuides. Distributed and installed as part of the OpenGuides project, not intended for
independent installation. This documentation is probably only useful to OpenGuides developers.
SYNOPSIS
use OpenGuides;
use OpenGuides::Test;
OpenGuides::Test::refresh_db();
my $config = OpenGuides::Test->make_basic_config;
$config->default_language( "nl" );
my $guide = OpenGuides->new( config => $config );
OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
os_x => 523465,
os_y => 177490,
categories => "Pubs",
);
METHODS
make_basic_config
my $config = OpenGuides::Test->make_basic_config;
$config->default_language( "nl" );
Makes an OpenGuides::Config object with needed fields pre-filled. You can mess with it as you like then.
write_data
my $config = OpenGuides::Test->make_basic_config;
my $guide = OpenGuides->new( config => $config );
OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
os_x => 523465,
os_y => 177490,
categories => "Pubs
Pub Food",
);
This method calls the "make_cgi_object" method to make its CGI object; you can supply values for any key mentioned there. You should
supply them exactly as they would come from a CGI form, eg lines in a textarea are separated by "
".
This method will automatically grab the checksum from the database, so even if the node already exists your data will still be written.
If you don't want this behaviour (for example, if you're testing edit conflicts) then pass in a true value to the "omit_checksum"
parameter:
OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
omit_checksum => 1,
);
If you want to grab the output, pass a true value to "return_output":
my $output = OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
return_output => 1,
);
Similarly, if you pass a true value to "return_tt_vars", the return value will be the variables which would have been passed to the
template for output:
my %vars = OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
return_tt_vars => 1,
);
make_cgi_object
my $q = OpenGuides::Test->make_cgi_object;
You can supply values for the following keys: "content", "categories", "locales", "node_image", "node_image_licence",
"node_image_copyright", "node_image_url", "phone", "fax", "website", "hours_text", "address", "postcode", "map_link", "os_x", "os_y",
"osie_x", "osie_y", "latitude", "longitude", "summary", "username", "comment", "edit_type". You should supply them exactly as they
would come from a CGI form, eg lines in a textarea are separated by "
".
refresh_db
Openguides::Test::refresh_db();
Unlink the existing SQLite database t/node.db and plucene indexes. Then create a new SQLite database t/node.db
AUTHOR
The OpenGuides Project (openguides-dev@lists.openguides.org)
COPYRIGHT
Copyright (C) 2004-2009 The OpenGuides Project. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2013-01-11 OpenGuides::Test(3pm)