00001
00002
00003
00004
00005
00006
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef ASSOC_DATA_UDS_H
00034 #define ASSOC_DATA_UDS_H
00035
00036 #include "address.h"
00037
00038
00039 namespace protlib {
00040
00045 typedef int socketfd_t;
00046 typedef unsigned int associd_t;
00047
00050 struct AssocDataUDS {
00051 AssocDataUDS(socketfd_t socketfd,
00052 const udsaddress& peeraddress,
00053 const udsaddress& ownaddress):
00054 socketfd(socketfd),
00055 assoc(0),
00056 peer(peeraddress),
00057 ownaddr(ownaddress),
00058 thread_ID(0),
00059 num_of_out_streams(0),
00060 shutdown(false),
00061 touched(true)
00062 {};
00063
00064 AssocDataUDS(associd_t ass, const udsaddress& ap, const udsaddress& oa, uint32 streams)
00065 : socketfd(0),
00066 assoc(ass),
00067 peer(ap),
00068 ownaddr(oa),
00069 thread_ID(0),
00070 num_of_out_streams(streams),
00071 shutdown(false),
00072 touched(true)
00073 {};
00074
00075 const socketfd_t socketfd;
00076 const associd_t assoc;
00077
00078 const udsaddress peer;
00079 const udsaddress ownaddr;
00080
00081 pthread_t thread_ID;
00082
00083 const uint32 num_of_out_streams;
00084
00085
00086
00087 bool shutdown;
00088
00089 bool touched;
00090 };
00091
00093
00094 }
00095 #endif