#include <tuple.h>
Data Fields | |
char | servername [100] |
int | portnumber |
int | sock |
pthread_t | thr |
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.
|
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. |
|
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. |
|
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. |
|
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. |