00001 /* 00002 * Equation Cruncher 00003 * Copyright (C) 2004 Dhruv Matani(dhruvbird@yahoo.com) 00004 * 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License as 00008 * published by the Free Software Foundation; either version 2 of the 00009 * License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00019 * USA 00020 */ 00021 00022 00023 #if !defined EC_UDEFS_HPP 00024 #define EC_UDEFS_HPP 00025 00026 #include <vector> 00027 00028 00037 namespace eqn_cruncher 00038 { 00042 typedef std::vector<std::vector<double> > matrix_t; 00043 00050 struct server_data 00051 { 00054 int port_no; 00057 int queue_size; 00061 int sock_id; 00062 }; 00063 00071 struct data_passer 00072 { 00076 int sock_id; 00080 eqn_cruncher::matrix_t* pmat; 00084 double* pres; 00089 pthread_t remote_thr; 00094 int col_no; 00099 const std::vector<double>* prhs; 00100 00101 int done_flag; 00102 00103 }; 00104 } 00105 00106 #endif // EC_UDEFS_HPP
1.2.18