shevek::server< client, serverdata >::connection(3) Library Functions Manual shevek::server< client, serverdata >::connection(3)NAME
shevek::server< client, serverdata >::connection -
Base of the client class which is implemented by the calling program.
SYNOPSIS
#include <server.hh>
Inherits shevek::refbase.
Public Member Functions
void continue_reading ()
This is called after in->unread (), to resume accepting data from this connection.
~connection ()
Destructor.
Public Attributes
Glib::RefPtr< shevek::fd > in
The input socket. The client can stop reading from this connection by calling in->unread ().
Glib::RefPtr< shevek::fd > out
The output socket. This is used to send data to the connection.
Protected Member Functions
connection ()
The client class can construct this object with its create function.
Glib::RefPtr< server< client,
serverdata > > get_server ()"
Access to the server object which hosts this client.
void disconnect ()
This can be called by the client object to close this connection.
Friends
class server< client, serverdata >
Detailed Description
template<typename client, typename serverdata>struct shevek::server< client, serverdata >::connection
Base of the client class which is implemented by the calling program.
A client object is created for every connection which is accepted. This class handles server administration and provides access to members
from the client class.
Author
Generated automatically by Doxygen for libshevek from the source code.
libshevek Fri May 11 2012 shevek::server< client, serverdata >::connection(3)
Check Out this Related Man Page
shevek::refbase(3) Library Functions Manual shevek::refbase(3)NAME
shevek::refbase -
Base class for classes which want reference counting through Glib::RefPtr.
SYNOPSIS
#include <refbase.hh>
Inherited by shevek::avahi, shevek::avahi::browser, shevek::closure, shevek::dl, shevek::fd [virtual], shevek::process, shevek::server<
client, serverdata > [virtual], shevek::server< client, serverdata >::connection [virtual], and shevek::shm< T >.
Public Member Functions
template<typename _T > Glib::RefPtr< _T > cast_dynamic ()
Identical to GLib::RefPtr <>::cast_dynamic, but nicer to type.
Protected Member Functions
refbase ()
Constructor, increments reference count.
virtual ~refbase ()
Destructor, decrements reference count and destroys the object if it reaches 0.
template<typename T > Glib::RefPtr< T > refptr_this ()
Get a RefPtr to this, protected because only members should need it.
Friends
class Glib::RefPtr
Detailed Description
Base class for classes which want reference counting through Glib::RefPtr.
Member Function Documentation
template<typename T > Glib::RefPtr< T > shevek::refbase::refptr_this () [protected]
Get a RefPtr to this, protected because only members should need it. This function allows member functions, which have a pointer to the
object, but not a Glib::RefPtr, to pass a RefPtr to others.
Author
Generated automatically by Doxygen for libshevek from the source code.
libshevek Fri May 11 2012 shevek::refbase(3)
Hi to all
small question for someone extremely new to the subject. Could anyone point me in the direction of the source code for a client server, message passing program?
Thanx for all your help (6 Replies)
I have been asking this question on several Mac community sites but never got a answer. I hope some of you UNIX gurus can provide me with the right kind of information :)
Why is my system calling my router and how can I prevent it?
I have a Power Mac QS 733 with MacOS 10.1.5 (as you already... (6 Replies)
Hi,
look at the following code:
The client after estabilishing a connection with the server does the following:
if ((peter = fopen(argv, "r")) == NULL){
printf("errore\n");
exit(0);
}
... (11 Replies)
i am wrtting simple client server program.i am getting some problem in this code.can anyone help me in this code.thanks.
#include <stdlib.h>
#include <stdio.h> /* Basic I/O routines */
#include <sys/types.h> /* standard system types */
#include... (10 Replies)
A client(PC) connects to an unix server via terminal emulator.
How can I obtain that client's IP address?
The unix server is an old SVR4.2 (NCR) and the "who" command
does not show ip addresses.
I need a command or a shell script or a C/C++ program that will
help me to obtain the client's... (6 Replies)
We have an old k class server that we would like to use as a testbed for our oracle application. However, it is not booting properly - fiailing the self boot test (light at the back of server is blinking). On the little window on the front of server i see the following message about console (?). ... (9 Replies)
hi guys,
I need the code for a server client registration form.The server must ask for authentication .Then the client would send in data. This is stored in a file .The server sends back a receipt to the client as part of the payment done.
plz can some 1 get me the code... (9 Replies)
Is there a way how to react on the message a client sent to the server?
I would like as the client sent message to server: "get information such and such" and server would answer.
Thank you for reply! (6 Replies)
Hello everybody,
I learning socket programming in C and was wondering if anybody here could help me out.
I have two .c programs namely server.c and client.c .......
The client sends a message and the server in turn returns the value.
Basically I want to send in a request to a webserver... (24 Replies)
Hello,
Looking at the asio.sourceforge.net library, I found a tutorial to develop simple client and server programs. Below I am pasting the client and the server. On my Fedora Core 4, I can compile the two programs(client is 'a' and server is 'daytime', but I have no idea on how to test them... ... (8 Replies)
I have a box that has to start dhcpd when a certain connection is down and stop the dhcpd when the connection is up again. I would appriciate any help making this script:
From server A:
ping server B
if connection is ok then do nothing
if connection is not ok then start dhcpd
until... (8 Replies)
i have created two files named server and client then when i run the server program it says the server is waiting(./server 5555) then when i run the client program it says "client error:connection refused" can u plz help me to run it?:( (7 Replies)
hi
am newbie to unix and socket programing
I am trying to figuring out syntax for read and write
to send data from server to client and client can read it
I have to send two integers
write(newsockfd,buffer,"%d %d",x,y,0) writing from client where x and y are two integers..
... (7 Replies)
Hi,
I am using Linux to run TCP server.
Whenever i accept a TCP connection from a client, i am able to around 10MB increase in prcoess(Using pmap).
How can i free this when i close the connection ?
I tried close(fd), but that is not freeing up this memory chunk.
Please help to... (6 Replies)
Hi all,
I have a client who has an RX4640 using 11iV2, he said the server has problems.
I checked and I couldn't activate the VGs.
I am somehow new to HP-UX and I don't want to do something that would mess everything up. I am not sure if that is what is really happening, but from what I... (20 Replies)