├── DICT ├── A │ ├── A-b.txt │ ├── A-c.txt │ ├── A-d.txt │ ├── A-e.txt │ ├── A-f.txt │ ├── A-g.txt │ ├── A-h.txt │ ├── A-i,j,k.txt │ ├── A-l.txt │ ├── A-m.txt │ ├── A-n.txt │ ├── A-o,p.txt │ ├── A-q,r.txt │ ├── A-s.txt │ ├── A-t.txt │ └── A-u,v,w,x,y,z.txt ├── B │ ├── B-a.txt │ ├── B-b,c,d,e.txt │ ├── B-f,g,h,i.txt │ ├── B-j,k,l,m,n.txt │ ├── B-o.txt │ ├── B-p,q,r.txt │ ├── B-s,t,u.txt │ └── B-v,w,x,y,z.txt ├── C │ ├── C-a.txt │ ├── C-b,c,d,e,f,g.txt │ ├── C-h.txt │ ├── C-i,j,k.txt │ ├── C-l,m,n.txt │ ├── C-oa~m.txt │ ├── C-on.txt │ ├── C-oo~z.txt │ ├── C-p,q,r.txt │ └── C-s,t,u,v,w,x,y,z.txt ├── D │ ├── D-a.txt │ ├── D-b,c,d,e.txt │ ├── D-i.txt │ ├── D-j,k,l,m,n,o.txt │ ├── D-p,q,r.txt │ └── D-s,t,u,v,w,x,y,z.txt ├── E │ ├── E-a.txt │ ├── E-b,c.txt │ ├── E-d,e,f,g.txt │ ├── E-h,i,j,k,l.txt │ ├── E-m.txt │ ├── E-n.txt │ ├── E-o,p,q.txt │ ├── E-r,s.txt │ ├── E-t,u,v,w.txt │ └── E-x,y,z.txt ├── F │ ├── F-a.txt │ ├── F-b,c,d,e.txt │ ├── F-f,g,h,i.txt │ ├── F-j,k,l.txt │ ├── F-m,n,o.txt │ ├── F-p,q,r.txt │ └── F-s,t,u,v,w,x,y,z.txt ├── G │ ├── G-a.txt │ ├── G-b,c,d,e.txt │ ├── G-f,g,h,i.txt │ ├── G-j,k,l.txt │ ├── G-m,n,o.txt │ ├── G-p,q,r.txt │ └── G-s,t,u,v,w,x,y,z.txt ├── H │ ├── H-a.txt │ ├── H-b,c,d,e.txt │ ├── H-f,g,h,i.txt │ ├── H-j,k,l,m,n,o.txt │ └── H-p,q,r,s,t,u,v,w,x,y,z.txt ├── I │ ├── I-a,b,c,d.txt │ ├── I-e,f,g,h,i,j,k,l,m.txt │ ├── I-n.txt │ └── I-o,p,q,r,s,t,u,v,w,x,yz.txt ├── J │ └── J.TXT ├── K │ └── K.TXT ├── L │ ├── L-a.txt │ ├── L-b,c,d,e.txt │ ├── L-f,g,h,i.txt │ ├── L-j,k,l,m,n,o.txt │ └── L-p,q,r,s,t,u,v,w,x,y,z.txt ├── M │ ├── M-a.txt │ ├── M-b,c,d,e.txt │ ├── M-f,g,h,i.txt │ ├── M-j,k,l,m,n,o.txt │ └── M-p,q,r,s,t,u,v,w,x,y,z.txt ├── N │ ├── N-a.txt │ ├── N-b,c,d,e.txt │ ├── N-f,g,h,i.txt │ ├── N-j,k,l,m,n,o.txt │ └── N-p,q,r,s,t,u,v,w,x,y,z.txt ├── O │ ├── O-a,b.txt │ ├── O-c,d,e,f.txt │ ├── O-g,h,i,j,k,l,m,n.txt │ ├── O-o,p.txt │ ├── O-q,r.txt │ ├── O-s,t,u.txt │ └── O-v,w,x,y,z.txt ├── P │ ├── P-a.txt │ ├── P-b,c,d,e.txt │ ├── P-f,g,h.txt │ ├── P-i.txt │ ├── P-j,k,l.txt │ ├── P-m,n,o.txt │ ├── P-p,q,r.txt │ └── P-s,t,u,v,w,x,yz.txt ├── Q │ └── Q.TXT ├── R │ ├── R-a.txt │ ├── R-b,c,d,e.txt │ ├── R-f,g,h,i.txt │ ├── R-j,k,l,m,n,o.txt │ └── R-p,q,r,s,t,u,v,w,x,y,z.txt ├── S │ ├── S-a.txt │ ├── S-b,c.txt │ ├── S-d,e.txt │ ├── S-f,g,h.txt │ ├── S-i.txt │ ├── S-j,k.txt │ ├── S-l.txt │ ├── S-m,n.txt │ ├── S-o.txt │ ├── S-p.txt │ ├── S-q,s,t.txt │ ├── S-u.txt │ └── S-v,w,x,y,z.txt ├── T │ ├── T-a.txt │ ├── T-b,c,d,e.txt │ ├── T-f,g,h.txt │ ├── T-i.txt │ ├── T-o.txt │ ├── T-p,q,r.txt │ ├── T-s,t,u.txt │ └── T-v,w,x,y,z.txt ├── U │ ├── U-a~n.txt │ └── U-o~z.txt ├── V │ ├── V-a.txt │ ├── V-b,c,d,e.txt │ ├── V-f,g,h,i.txt │ └── V-j~z.txt ├── W │ ├── W-a.txt │ ├── W-b,c,d,e.txt │ ├── W-f,g,h.txt │ ├── W-i.txt │ ├── W-j,k,l,,m,n,o.txt │ └── W-p,q,r,s,t,u,v,w,x,y,z.txt ├── X │ └── X.TXT ├── Y │ └── Y.TXT └── Z │ └── Z.TXT ├── README.md ├── TCP_socket_server.py ├── http_server1.cpp └── test_dll.cpp /DICT/A/A-b.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-b.txt -------------------------------------------------------------------------------- /DICT/A/A-c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-c.txt -------------------------------------------------------------------------------- /DICT/A/A-d.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-d.txt -------------------------------------------------------------------------------- /DICT/A/A-e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-e.txt -------------------------------------------------------------------------------- /DICT/A/A-f.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-f.txt -------------------------------------------------------------------------------- /DICT/A/A-g.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-g.txt -------------------------------------------------------------------------------- /DICT/A/A-h.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-h.txt -------------------------------------------------------------------------------- /DICT/A/A-i,j,k.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-i,j,k.txt -------------------------------------------------------------------------------- /DICT/A/A-l.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-l.txt -------------------------------------------------------------------------------- /DICT/A/A-m.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-m.txt -------------------------------------------------------------------------------- /DICT/A/A-n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-n.txt -------------------------------------------------------------------------------- /DICT/A/A-o,p.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-o,p.txt -------------------------------------------------------------------------------- /DICT/A/A-q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-q,r.txt -------------------------------------------------------------------------------- /DICT/A/A-s.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-s.txt -------------------------------------------------------------------------------- /DICT/A/A-t.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-t.txt -------------------------------------------------------------------------------- /DICT/A/A-u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/A/A-u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/B/B-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-a.txt -------------------------------------------------------------------------------- /DICT/B/B-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/B/B-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/B/B-j,k,l,m,n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-j,k,l,m,n.txt -------------------------------------------------------------------------------- /DICT/B/B-o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-o.txt -------------------------------------------------------------------------------- /DICT/B/B-p,q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-p,q,r.txt -------------------------------------------------------------------------------- /DICT/B/B-s,t,u.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-s,t,u.txt -------------------------------------------------------------------------------- /DICT/B/B-v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/B/B-v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/C/C-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-a.txt -------------------------------------------------------------------------------- /DICT/C/C-b,c,d,e,f,g.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-b,c,d,e,f,g.txt -------------------------------------------------------------------------------- /DICT/C/C-h.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-h.txt -------------------------------------------------------------------------------- /DICT/C/C-i,j,k.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-i,j,k.txt -------------------------------------------------------------------------------- /DICT/C/C-l,m,n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-l,m,n.txt -------------------------------------------------------------------------------- /DICT/C/C-oa~m.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-oa~m.txt -------------------------------------------------------------------------------- /DICT/C/C-on.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-on.txt -------------------------------------------------------------------------------- /DICT/C/C-oo~z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-oo~z.txt -------------------------------------------------------------------------------- /DICT/C/C-p,q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-p,q,r.txt -------------------------------------------------------------------------------- /DICT/C/C-s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/C/C-s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/D/D-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/D/D-a.txt -------------------------------------------------------------------------------- /DICT/D/D-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/D/D-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/D/D-i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/D/D-i.txt -------------------------------------------------------------------------------- /DICT/D/D-j,k,l,m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/D/D-j,k,l,m,n,o.txt -------------------------------------------------------------------------------- /DICT/D/D-p,q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/D/D-p,q,r.txt -------------------------------------------------------------------------------- /DICT/D/D-s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/D/D-s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/E/E-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-a.txt -------------------------------------------------------------------------------- /DICT/E/E-b,c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-b,c.txt -------------------------------------------------------------------------------- /DICT/E/E-d,e,f,g.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-d,e,f,g.txt -------------------------------------------------------------------------------- /DICT/E/E-h,i,j,k,l.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-h,i,j,k,l.txt -------------------------------------------------------------------------------- /DICT/E/E-m.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-m.txt -------------------------------------------------------------------------------- /DICT/E/E-n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-n.txt -------------------------------------------------------------------------------- /DICT/E/E-o,p,q.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-o,p,q.txt -------------------------------------------------------------------------------- /DICT/E/E-r,s.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-r,s.txt -------------------------------------------------------------------------------- /DICT/E/E-t,u,v,w.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-t,u,v,w.txt -------------------------------------------------------------------------------- /DICT/E/E-x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/E/E-x,y,z.txt -------------------------------------------------------------------------------- /DICT/F/F-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/F/F-a.txt -------------------------------------------------------------------------------- /DICT/F/F-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/F/F-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/F/F-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/F/F-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/F/F-j,k,l.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/F/F-j,k,l.txt -------------------------------------------------------------------------------- /DICT/F/F-m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/F/F-m,n,o.txt -------------------------------------------------------------------------------- /DICT/F/F-p,q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/F/F-p,q,r.txt -------------------------------------------------------------------------------- /DICT/F/F-s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/F/F-s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/G/G-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/G/G-a.txt -------------------------------------------------------------------------------- /DICT/G/G-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/G/G-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/G/G-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/G/G-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/G/G-j,k,l.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/G/G-j,k,l.txt -------------------------------------------------------------------------------- /DICT/G/G-m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/G/G-m,n,o.txt -------------------------------------------------------------------------------- /DICT/G/G-p,q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/G/G-p,q,r.txt -------------------------------------------------------------------------------- /DICT/G/G-s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/G/G-s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/H/H-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/H/H-a.txt -------------------------------------------------------------------------------- /DICT/H/H-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/H/H-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/H/H-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/H/H-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/H/H-j,k,l,m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/H/H-j,k,l,m,n,o.txt -------------------------------------------------------------------------------- /DICT/H/H-p,q,r,s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/H/H-p,q,r,s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/I/I-a,b,c,d.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/I/I-a,b,c,d.txt -------------------------------------------------------------------------------- /DICT/I/I-e,f,g,h,i,j,k,l,m.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/I/I-e,f,g,h,i,j,k,l,m.txt -------------------------------------------------------------------------------- /DICT/I/I-n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/I/I-n.txt -------------------------------------------------------------------------------- /DICT/I/I-o,p,q,r,s,t,u,v,w,x,yz.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/I/I-o,p,q,r,s,t,u,v,w,x,yz.txt -------------------------------------------------------------------------------- /DICT/J/J.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/J/J.TXT -------------------------------------------------------------------------------- /DICT/K/K.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/K/K.TXT -------------------------------------------------------------------------------- /DICT/L/L-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/L/L-a.txt -------------------------------------------------------------------------------- /DICT/L/L-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/L/L-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/L/L-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/L/L-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/L/L-j,k,l,m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/L/L-j,k,l,m,n,o.txt -------------------------------------------------------------------------------- /DICT/L/L-p,q,r,s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/L/L-p,q,r,s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/M/M-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/M/M-a.txt -------------------------------------------------------------------------------- /DICT/M/M-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/M/M-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/M/M-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/M/M-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/M/M-j,k,l,m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/M/M-j,k,l,m,n,o.txt -------------------------------------------------------------------------------- /DICT/M/M-p,q,r,s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/M/M-p,q,r,s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/N/N-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/N/N-a.txt -------------------------------------------------------------------------------- /DICT/N/N-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/N/N-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/N/N-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/N/N-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/N/N-j,k,l,m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/N/N-j,k,l,m,n,o.txt -------------------------------------------------------------------------------- /DICT/N/N-p,q,r,s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/N/N-p,q,r,s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/O/O-a,b.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/O/O-a,b.txt -------------------------------------------------------------------------------- /DICT/O/O-c,d,e,f.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/O/O-c,d,e,f.txt -------------------------------------------------------------------------------- /DICT/O/O-g,h,i,j,k,l,m,n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/O/O-g,h,i,j,k,l,m,n.txt -------------------------------------------------------------------------------- /DICT/O/O-o,p.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/O/O-o,p.txt -------------------------------------------------------------------------------- /DICT/O/O-q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/O/O-q,r.txt -------------------------------------------------------------------------------- /DICT/O/O-s,t,u.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/O/O-s,t,u.txt -------------------------------------------------------------------------------- /DICT/O/O-v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/O/O-v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/P/P-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-a.txt -------------------------------------------------------------------------------- /DICT/P/P-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/P/P-f,g,h.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-f,g,h.txt -------------------------------------------------------------------------------- /DICT/P/P-i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-i.txt -------------------------------------------------------------------------------- /DICT/P/P-j,k,l.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-j,k,l.txt -------------------------------------------------------------------------------- /DICT/P/P-m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-m,n,o.txt -------------------------------------------------------------------------------- /DICT/P/P-p,q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-p,q,r.txt -------------------------------------------------------------------------------- /DICT/P/P-s,t,u,v,w,x,yz.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/P/P-s,t,u,v,w,x,yz.txt -------------------------------------------------------------------------------- /DICT/Q/Q.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/Q/Q.TXT -------------------------------------------------------------------------------- /DICT/R/R-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/R/R-a.txt -------------------------------------------------------------------------------- /DICT/R/R-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/R/R-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/R/R-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/R/R-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/R/R-j,k,l,m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/R/R-j,k,l,m,n,o.txt -------------------------------------------------------------------------------- /DICT/R/R-p,q,r,s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/R/R-p,q,r,s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/S/S-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-a.txt -------------------------------------------------------------------------------- /DICT/S/S-b,c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-b,c.txt -------------------------------------------------------------------------------- /DICT/S/S-d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-d,e.txt -------------------------------------------------------------------------------- /DICT/S/S-f,g,h.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-f,g,h.txt -------------------------------------------------------------------------------- /DICT/S/S-i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-i.txt -------------------------------------------------------------------------------- /DICT/S/S-j,k.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-j,k.txt -------------------------------------------------------------------------------- /DICT/S/S-l.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-l.txt -------------------------------------------------------------------------------- /DICT/S/S-m,n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-m,n.txt -------------------------------------------------------------------------------- /DICT/S/S-o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-o.txt -------------------------------------------------------------------------------- /DICT/S/S-p.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-p.txt -------------------------------------------------------------------------------- /DICT/S/S-q,s,t.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-q,s,t.txt -------------------------------------------------------------------------------- /DICT/S/S-u.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-u.txt -------------------------------------------------------------------------------- /DICT/S/S-v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/S/S-v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/T/T-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-a.txt -------------------------------------------------------------------------------- /DICT/T/T-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/T/T-f,g,h.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-f,g,h.txt -------------------------------------------------------------------------------- /DICT/T/T-i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-i.txt -------------------------------------------------------------------------------- /DICT/T/T-o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-o.txt -------------------------------------------------------------------------------- /DICT/T/T-p,q,r.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-p,q,r.txt -------------------------------------------------------------------------------- /DICT/T/T-s,t,u.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-s,t,u.txt -------------------------------------------------------------------------------- /DICT/T/T-v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/T/T-v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/U/U-a~n.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/U/U-a~n.txt -------------------------------------------------------------------------------- /DICT/U/U-o~z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/U/U-o~z.txt -------------------------------------------------------------------------------- /DICT/V/V-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/V/V-a.txt -------------------------------------------------------------------------------- /DICT/V/V-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/V/V-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/V/V-f,g,h,i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/V/V-f,g,h,i.txt -------------------------------------------------------------------------------- /DICT/V/V-j~z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/V/V-j~z.txt -------------------------------------------------------------------------------- /DICT/W/W-a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/W/W-a.txt -------------------------------------------------------------------------------- /DICT/W/W-b,c,d,e.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/W/W-b,c,d,e.txt -------------------------------------------------------------------------------- /DICT/W/W-f,g,h.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/W/W-f,g,h.txt -------------------------------------------------------------------------------- /DICT/W/W-i.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/W/W-i.txt -------------------------------------------------------------------------------- /DICT/W/W-j,k,l,,m,n,o.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/W/W-j,k,l,,m,n,o.txt -------------------------------------------------------------------------------- /DICT/W/W-p,q,r,s,t,u,v,w,x,y,z.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/W/W-p,q,r,s,t,u,v,w,x,y,z.txt -------------------------------------------------------------------------------- /DICT/X/X.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/X/X.TXT -------------------------------------------------------------------------------- /DICT/Y/Y.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/Y/Y.TXT -------------------------------------------------------------------------------- /DICT/Z/Z.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyt6801/Dict/14df0fd32f70b1882353598d948dfe82921fff8b/DICT/Z/Z.TXT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dict 2 | 《牛津英汉词典》 查词,输入英文单词,可翻译对应的音标,翻译,词组和例句 3 | 借用文本词典实现查词翻译功能,学习练手的好项目 4 | ## 功能: 翻译、HttpServer、日志保存 5 | 6 | http_Server1.exe 可以接收前端或其他http get请求: 7 | #### 请求示例:http://127.0.0.1:9090/api/word=like 8 | #### 返回示例: / lUk; lJk/ v 1 [I, Ipr, Ip] ~ (at sb/sth) turn one's eyes in a particular direction (in order to see sb/sth) 看; 瞧; 望: If you look carefully you can just see the church from here. 你仔细看的话, 可以从这里看到那座教堂. * We looked but saw nothing. 我们看了... 9 | 10 | 11 | ------------------- 12 | ### 功能说明: 13 | ##### 1.后台C/C++ 实现在词典文本查词功能,涉及文件夹遍历,字符串拼接、处理、查找等; 14 | ##### 2.C/C++实现API接口,可接受HTTP请求,并对请求解析,涉及SOCKET通讯; 15 | ##### 3.调用dll动态链接库,实现数据传入和数据输出(test_dll.dll为功能实现的核心部分,为方便调用编译为动态链接库) 16 | 当查不到对应的词时,返回 cannot translate this words! 17 | ##### 4.新增TCP_socket_server.py: 用python实现的http服务端,监听9091端口,接收http_Server1发送来的请求和内容并保存为本地日志; 18 | 把日志保存到本地,保存到本地的test.txt文档,保存请求时间,请求ip,请求url,请求的word,查询结果 19 | 20 | ------------------------ 21 | ### 文件说明: 22 | ##### DICT文件夹: 《牛津英汉词典》txt文本字典; 23 | ##### http_Server1.exe: HTTPServer,监听9090端口,并对请求参数进行解析;调用dll;返回结果;发送日志给日志服务Server(python); 24 | ##### TCP_socket_server.py: 新增python实现的HTTPServer,用作日志服务器,记录http_Server1的请求日志; 25 | ##### test_dll.dll: 实现查词功能的动态链接库,接收要查的单词,返回该单词的完整翻译; 26 | 27 | ------------------------- 28 | ### HOW TO USE 29 | ##### 1.编译http_Server1,建议vs环境 30 | ##### 2.编译test_dll为test_dll.dll,建议vs环境,若需在其他环境运行需设置 `Use MFC in a Static Library` 31 | ##### 3.运行http_Server1.exe,开始测试... 32 | 33 | 34 | -------------------------- 35 | ### TO DO 36 | ##### 1.做一个前端,输入需要查询的单词,可显示出翻译的结果。输入框+查询按钮;ajax发送请求+返回结果显示 -------------------------------------------------------------------------------- /TCP_socket_server.py: -------------------------------------------------------------------------------- 1 | # 创建TCP服务器示例: 2 | # 1、创建socket对象 3 | # 2、绑定主机和端口,应当是一个元组 4 | # 3、监听 5 | # 4、等待连接 6 | # 5、接受数据 7 | # 6、发送数据 8 | # 7、关闭套接字 9 | 10 | import socket 11 | import time 12 | 13 | # 明确配置变量 14 | ip_port = ('127.0.0.1', 9091) 15 | back_log = 5 16 | buffer_size = 1024 17 | # 创建一个TCP套接字 18 | ser = socket.socket( 19 | socket.AF_INET, 20 | socket.SOCK_STREAM) # 套接字类型AF_INET, socket.SOCK_STREAM tcp协议,基于流式的协议 21 | ser.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # 对socket的配置重用ip和端口号 22 | # 绑定端口号 23 | ser.bind(ip_port) # 写哪个ip就要运行在哪台机器上 24 | # 设置半连接池 25 | ser.listen(back_log) # 最多可以连接多少个客户端 26 | while 1: 27 | # 阻塞等待,创建连接 28 | con, address = ser.accept() # 在这个位置进行等待,监听端口号 29 | while 1: 30 | try: 31 | # 接受套接字的大小,怎么发就怎么收 32 | msg = con.recv(buffer_size) 33 | # if msg.decode('utf-8') == '1': 34 | # 断开连接 35 | con.close() 36 | # 写文件 37 | # localtime = time.asctime(time.localtime(time.time())) 38 | with open("test.txt", "a") as out_file: 39 | out_file.write('\n\n' + 40 | time.asctime(time.localtime(time.time())) +'\n'+ 41 | msg.decode('utf-8')) 42 | print('服务器收到消息', msg.decode('utf-8')) 43 | except Exception as e: 44 | break 45 | # 关闭服务器 46 | ser.close() 47 | -------------------------------------------------------------------------------- /http_server1.cpp: -------------------------------------------------------------------------------- 1 | //#include "stdafx.h" 2 | //注意找个代码,会报错 大概是因为注释导致文件终止,删除掉大段的注释。。。 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #pragma comment(lib,"ws2_32") 11 | 12 | #define HALO_S_PORT 9090 13 | #define MIN_BUF 128 14 | 15 | /* 16 | LPVOID是一个没有类型的指针,也就是说你可以将LPVOID类型的变量赋值给任意类型的指针, 17 | 比如在参数传递时就可以把任意类型传递给一个LPVOID类型为参数的方法, 18 | 然后在方法内再将这个“任意类型”从传递时的“LPVOID类型”转换回来。 19 | */ 20 | 21 | //把收到的请求发送给alarm_server(127.0.0.1:9091) 22 | int SEND_ALARM_SERVER(char * sendData) 23 | { 24 | WORD sockVersion = MAKEWORD(2,2); 25 | WSADATA data; 26 | if(WSAStartup(sockVersion, &data) != 0) 27 | { 28 | return 0; 29 | } 30 | 31 | SOCKET sclient = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 32 | if(sclient == INVALID_SOCKET) 33 | { 34 | printf("invalid socket !"); 35 | return 0; 36 | } 37 | 38 | sockaddr_in serAddr; 39 | serAddr.sin_family = AF_INET; 40 | serAddr.sin_port = htons(9091); 41 | serAddr.sin_addr.S_un.S_addr = inet_addr("127.0.0.1"); 42 | if (connect(sclient, (sockaddr *)&serAddr, sizeof(serAddr)) == SOCKET_ERROR) 43 | { 44 | printf("connect error !"); 45 | closesocket(sclient); 46 | return 0; 47 | } 48 | send(sclient, sendData, strlen(sendData), 0); 49 | 50 | char recData[255]; 51 | int ret = recv(sclient, recData, 255, 0); 52 | if(ret > 0) 53 | { 54 | recData[ret] = 0x00; 55 | printf(recData); 56 | } 57 | closesocket(sclient); 58 | WSACleanup(); 59 | } 60 | 61 | 62 | //这个线程recv请求,处理请求,再将内容发到fd上去 63 | static DWORD CALLBACK FdHandler(IN LPVOID lpCtx) { //这是一个线程函数 //将fd传入到这里 64 | 65 | SOCKET fd = (SOCKET)lpCtx; 66 | char *Buffer = new char[8193]; 67 | int i = recv(fd, Buffer, 8192, 0); //从TCP的另一端接收数据,返回的是实际copy的字节数 68 | if (i > 0) { 69 | 70 | Buffer[i] = '\0'; 71 | char method[MIN_BUF]; 72 | char url[MIN_BUF]; 73 | char *h = new char[i + 1]; 74 | strcpy(h, Buffer); 75 | printf("\r\n%s\r\n", Buffer); 76 | SEND_ALARM_SERVER(h); 77 | 78 | // 79 | // http request parsing, and generate http response 80 | // 81 | 82 | int i, j; 83 | //example:GET /su?wd=ww&action=opensearch&ie=UTF-8 HTTP/1.1\r\n 84 | //处理接收数据 85 | i = 0; j = 0; 86 | // 取出第一个单词,一般为HEAD、GET、POST 87 | while (!(' ' == Buffer[j]) && (Buffer[j]!= '\0')) 88 | { 89 | method[i] = Buffer[j]; 90 | i++; j++; 91 | } 92 | method[i] = '\0'; // 结束符,这里也是初学者很容易忽视的地方 93 | 94 | printf("method: %s\n", method); 95 | // 如果不是GET或HEAD方法,则直接断开本次连接 96 | // 如果想做的规范些可以返回浏览器一个501未实现的报头和页面 97 | if (stricmp(method, "GET") && stricmp(method, "HEAD"))//比较,相等返回0 98 | { 99 | printf("not get or head method.\n"); 100 | printf("***********************\n\n\n\n"); 101 | closesocket(fd); 102 | return 0; 103 | } 104 | i = 0; 105 | while ((' ' == Buffer[j])) 106 | j++; 107 | while (!(' ' == Buffer[j])) 108 | { 109 | url[i] = Buffer[j]; 110 | i++; j++; 111 | } 112 | url[i] = '\0'; 113 | printf("url: %s\n",url); 114 | char if_api_word[20] = "/api/word="; 115 | char rec_api_word[20]; 116 | char rec_search_word[20]; 117 | int if_url_correct=0; 118 | for (;if_url_correct<10;if_url_correct++) 119 | { 120 | strncpy(rec_api_word,url,strlen(if_api_word)); 121 | 122 | } 123 | rec_api_word[10] = '\0'; 124 | 125 | if (strcmp(rec_api_word,if_api_word) != 0) 126 | { 127 | printf("cannot parsing request.url=%s\n",url); 128 | printf("***********************\n\n\n\n"); 129 | closesocket(fd); 130 | return 0; 131 | } 132 | else{ 133 | for(;if_url_correct 4 | #include 5 | #include 6 | #include 7 | #include 8 | extern "C" 9 | { 10 | class _declspec(dllexport) A 11 | { 12 | public: 13 | A() 14 | { 15 | printf("A construct...\n"); 16 | } 17 | const char *whoIsMe() 18 | { 19 | return "Myname is A"; 20 | } 21 | ~A() 22 | { 23 | printf("A deconstruct...\n"); 24 | } 25 | }; 26 | _declspec(dllexport) A a; 27 | #define MAX_LINE 3800 28 | #define IMGNUM 20000 //图片所在文件夹中图片的最大数量 29 | char img_files[IMGNUM][1000]; 30 | 31 | int getFiles(char *path) 32 | { 33 | int num_of_img = 0; 34 | long hFile = 0; 35 | struct _finddata_t fileinfo; 36 | char p[700] = {0}; 37 | strcpy(p, path); 38 | strcat(p, "\\*"); 39 | if ((hFile = _findfirst(p, &fileinfo)) != -1) 40 | { 41 | do 42 | { 43 | if ((fileinfo.attrib & _A_SUBDIR)) 44 | { 45 | if (strcmp(fileinfo.name, ".") != 0 && strcmp(fileinfo.name, "..") != 0) 46 | continue; 47 | } 48 | else 49 | { 50 | //strcpy(img_files[num_of_img], path); 51 | //strcpy(img_files[num_of_img], "\\"); 52 | //strcat(img_files[num_of_img], "\\"); 53 | //strcat(img_files[num_of_img++], fileinfo.name); 54 | strcpy(img_files[num_of_img++], fileinfo.name); 55 | } 56 | } while (_findnext(hFile, &fileinfo) == 0); 57 | _findclose(hFile); 58 | } 59 | return num_of_img; 60 | } 61 | _declspec(dllexport) char *search_words(char *aim_code) 62 | { 63 | // char aim_code[20]; 64 | //scanf("%s", aim_code); 65 | 66 | char root[180]; 67 | memset(root, 0x00, sizeof(root)); 68 | 69 | char xxx[1]; 70 | memset(xxx, 0x00, sizeof(xxx)); 71 | 72 | strcpy(root, "DICT/"); 73 | 74 | if (aim_code[0] >= 97 && aim_code[0] <= 122) 75 | xxx[0] = aim_code[0] - 32; 76 | 77 | root[strlen(root)] = xxx[0]; 78 | strcat(root, "/"); 79 | 80 | // 81 | int num = getFiles(root); 82 | int i, j; 83 | if (1 == num) 84 | { 85 | strcat(root, img_files[0]); 86 | } 87 | else 88 | { 89 | for (i = 0; i < num; ++i) 90 | { 91 | //printf("%s\n", img_files[i]); 92 | for (j = 2; j < 20; j++) 93 | { 94 | if (img_files[i][j] == aim_code[1]) 95 | { 96 | strcat(root, img_files[i]); 97 | printf("%s\n", root); 98 | break; 99 | break; 100 | } 101 | } 102 | } 103 | } 104 | 105 | /*root[41] = aim_code[0]; 106 | strcat(root, "-"); 107 | root[43] = aim_code[1]; 108 | strcat(root, ".txt");*/ 109 | //printf("%s\n", root); 110 | //system("pause"); 111 | 112 | char buf[MAX_LINE]; /*缓冲区*/ 113 | FILE *fp; /*文件指针*/ 114 | int len; /*行字符个数*/ 115 | int rownum = 0; 116 | if ((fp = fopen(root, "r")) == NULL) 117 | { 118 | printf("cannot read %s", root); 119 | return "cannot translate this words!"; 120 | //system("pause"); 121 | /*perror("fail to read"); 122 | exit(1);*/ 123 | } 124 | while (fgets(buf, MAX_LINE, fp) != NULL) 125 | { 126 | len = strlen(buf); 127 | buf[len - 1] = '\0'; /*去掉换行符*/ 128 | 129 | rownum++; 130 | if (strcmp(buf, aim_code) == 0) 131 | { 132 | fgets(buf, MAX_LINE, fp); 133 | printf("%s %d \n", buf, rownum); 134 | //system("pause"); 135 | 136 | return buf; 137 | } 138 | } 139 | return "no this words!"; 140 | printf("cannot get password!\n"); 141 | } 142 | _declspec(dllexport) int g_nUsageCount = 3195; 143 | } --------------------------------------------------------------------------------