Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

context Struct Reference

The information we need to keep track of a client-server connection. More...

#include <tuple.h>


Data Fields

char servername [100]
int portnumber
int sock
pthread_t thr


Detailed Description

The information we need to keep track of a client-server connection.

From the client's point of view, this includes the hostname and port number. From the server's point of view this includes a pthread for the client. Both client and server maintain a socket descriptor here.

Definition at line 237 of file tuple.h.


Field Documentation

int context::portnumber
 

The port number of the tuple server. Used by the client to make connections. Ignored in server code.

Definition at line 247 of file tuple.h.

Referenced by get_server_portnumber, main, and open_client_socket.

char context::servername[100]
 

The hostname of the tuple server. Used by the client to make connections. Ignored in server code.

Definition at line 242 of file tuple.h.

Referenced by get_server_portnumber, main, and open_client_socket.

int context::sock
 

Socket for connection between client and tuple server.

Definition at line 251 of file tuple.h.

Referenced by client_thread_func, ctx_dealloc, handle_get_read, kill_this_thread, main, open_client_socket, put_tuple, recv_chunk, send_chunk, and tuple_server_log.

pthread_t context::thr
 

On the server side, this is the pthread for the client. If no pthread is active here, this is set to -1 so we'll know it's available.

Definition at line 257 of file tuple.h.

Referenced by client_thread_func, kill_this_thread, and main.


The documentation for this struct was generated from the following file:
Generated on Sun Mar 30 23:46:51 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002