From cf4a6fbc8ac107602d965f327abfec985fceac59 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 2 Feb 2017 11:18:34 +0100 Subject: [PATCH] Working --- client | Bin 9368 -> 12144 bytes client.h | 4 ++-- client.o | Bin 3416 -> 7688 bytes lib.c | 6 ++++++ lib.h | 29 +++++++++++++++++++++++++++++ lib.o | Bin 944 -> 2680 bytes makefile | 4 ++-- server | Bin 0 -> 16536 bytes server.c | 18 +++++++++++------- server.h | 5 ++++- server.o | Bin 944 -> 8248 bytes test1 | 1 + 12 files changed, 55 insertions(+), 12 deletions(-) create mode 100755 server create mode 100644 test1 diff --git a/client b/client index 8918d9fc7cc1a3cd39a3fde0f908ce16129fbacc..82beefdf88b0aca216c64bee1d6b70510b067ba7 100755 GIT binary patch delta 3634 zcmZu!eQXow8Gqk9pTBdl<0OtlXdDs--I_QlA$%8`#KIW~gs-M-3dXT7wpZsId}nBw z*s&(97NuzMZd${N1Y;jU8XK9yBP9+IRa62^pl$py*5!|N1-hZOz`Wk+gk~=~G%?$t z2F%y3V+S9cr4Zluu3BlSS0({_8`HhRz%+x?+)w_S&yNMCMh;Hpv*j~C2gclPaLr)Y zoQ&Fe^jSd*jRh}+Mh;#eK%7PA@_FJW(B5%i(kaItGWQ&q1GC(xMlWH=%<)o4HT*Eo zX=Z3b;1?J;=^|;VvXl!=Q3I-Ja9wZ7yuY?YFUkQx|-wTa>fZ$&q z0H~RlW||?1zQ%s=jt8dzKMb1Y3yt^9#X`$!7B7V&WNzbJD@Km|KJm@IcL$nEYe%s- zQd&y_y@3}4WBI_&z>coNi~q%V$MwHt-$L@8GUF&-G@1c=@nnM>KvU8`Wn{1VI zIo@R>To=B`=f4N?%Kd!)C6Je3jVX{{7R-A9|%KiX@* zS_4Q2Ts*LOkR-r6UT4}%jGcCq8O#Q_VsJgUuimvU;@$xDg6b)0w_F8n4!XpsdrKtM z!Tagx^j3a^@jM3ro)bbao{&n5Uz5E0A$3>lr~n=vZ785ODZrIV1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XAXg$Hya=&Ukg;)g7qO(n0CK{gojv`%hw>*RKiL$*@XYL-YgP^*2y^Ac-bCuFPZi$?frpr|>PEkjca^Fm96 M4xfdrglv`g59v04 #include #include - - #define BUFSIZE 20 + #include "lib.h" + #endif diff --git a/client.o b/client.o index c7aec517195b391aad190372a1777bba6b9ed18a..8cb6312046dde2a546ca9548e4bcb2a1e82e667e 100644 GIT binary patch literal 7688 zcmbtZ4Qw366`s94`z~?pICc`8I4z675F~tO6UQac1Ut@=GbAMBNBk*0?q_|s&E1}} zyBFd}iD}axP9_poQK2GgXs9TNw4@Sh4Q)xJlqPDWDxlIrs|FSICu)nT1PMV~k-j(c z=58{*lPYzT+kNkw@BPf%*_l~qIV6Bh2;7bw?mV76Tsa30$E$BB4qsjTzk5wSRm-oMI16ELT!%N~*v=-azpQm~RgAHo z0Ys+cIhLH+bs?8rwSqslphYBk=%4K;x>zXtfn=m}9+=pcZ+m;eLc+GYx9rrsVGY@2dQZg;EbN&&{lZO_n@MG+ z0^7INT79|s(hvepmR-dm1OEc?>}H|?8~hsLSCe1E{My2=t^7K_4VjEZnHY9d1ZY`- z0ot*rv-KOdgU1e(Tc1YfBp*RIBvRi3B2T?t*hfB%^Pby>BUk&As##O!2=+Nh5RAXqpWoZJp2Mg9y`Lq(V}!|MRUvH!E$qbt&R71& z$?Ryag}DXz3uDIZ%S7B8mW_8~t|L8PU%w2UcDB^0p&rH-4PBvjff^P0VlTT1%L6~0 zAZnA3PQ_4O1Z4`b*FiFje?e9TG*sYUyyAOt$ITWiIXk}Zmf_U!P=C>JEBpHMZY7>^ z0-vdrE0nlv2M+ug%N8Bm4Psdg7EDdreyo7rE3V@QIglY)5MZ$&8CJ@4F6RlBST}|2 zxNwK51735PI@u0V=vHvxnTWwdu%(yG&Oe&%UyM5WqsQK<96k2u+2~Sl?HA1XmmXd> zXU+>x9NqQI{h?kcK_QhcI%(hb+4e1Cccr%P*p?XG%;E)D;=ba#iJu#;o_ow`v&>ritR3L`4 zZNp|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 --- a/lib.c +++ b/lib.c @@ -0,0 +1,6 @@ +#include "lib.h" + + + + +int createUPDSocket(int port){ return 1; } diff --git a/lib.h b/lib.h index e69de29..f3fbe9c 100644 --- a/lib.h +++ b/lib.h @@ -0,0 +1,29 @@ +#ifndef _LIB_H_ + + #define _LIB_H_ + + + #define BUFSIZE 20 + + + // debug flags + # define DEBUG 1 + + + + + /************************************************ + **** Signatures **** + ************************************************/ + + /* CREATES A UDP SOCKET + * + * @port Port to use (if 0: random) + * + * @return socket Socket descriptor or -1 if error + * + */ + + int createUPDSocket(int port); + +#endif diff --git a/lib.o b/lib.o index 1a7849e352b4e04461a0044023eb884956956558..3d9b2d3b8d0f802c369bfac7d872ff9da0c7d86f 100644 GIT binary patch literal 2680 zcmbtW&1(}u6n~rTr?DYz)LQBxf}(;uNhF3^sYdHpRkSEQO4%gSG}!Eh-HEh{dJ(~! zf*^u;@gESpcoh66JbLjD@Fu9}d%H8uWZWR=K=!@&d!O_6&1@c?zj`5MS)i5$r=TY( z6yW`EkFQ2-6>^Y;l}k^)Jh}hlJ^9@F=;CuI(vC$zc1FDR$Y^|ucx&XA1}U}micq^} zkb1TOLqo$YPoT@Bbug1l+nL$Sq%}2~od!rT>-3DBnNOcgADUUp5nSE-;_Qr-!zjZL zYnF1Uy;$A>NT*Mw?J*2~6n{|_KvHk1GI~hNm64=iA3iPXdu9TkQRi^07HqU?tR9<< z$1zcu7O7FRst4Q^d}aCEO}~Dd3u#+e_uIU%*$CQBEpSN@7S8eTw(vWJW=k;Au$Es4 zx57p%bVR2F9X}9o@!Cp$u~f<*XJuB*A1jtB#Y*u+-f4@j#}}I1<3X#Aq8rrL7dGcA zPNkf8nt5j}6qv>71is*P;RjAA0^e%_TwGk7&mUf?bv@CIqdJvtB$XbNDy&#$G9wr4zd=7eqU zXa{E2cc&r~PP@1!E1Q&5;aMr~Ht;=Co{^N^oBkG#X!iR1W*V+{Z*D-G>xTW3l+|9S zPVGvM`-Ww5Qtj`hkU8ZQ<6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XrmyC8ol^f<>KvA!@>S52h*w!v_|Fj`Ox0h_^H2MQ#5zIpSGzsFg@aVPoYHU1 zYl;Y!m4c#t_eekm*WddEyR!hD(NpjW7*e(rMzm|S;IgV>GSM!3bqW1fuM`S?n}UsH z8%pR;tr7ZdHU%5Ynx($oe|1+2{U53u(^h_Ehdx-dRgp`EnuJ1!613?{mix|@1y4GE jjgT0Z9p(zK*W;)9k9w}q_*N|c(e*h_name, ntohs(addr_client.sin_port) ); + printf( "recu message %s de %s:%d\n", received, client_ip, ntohs(addr_client.sin_port) ); /* [4] Send response =========================================================*/ diff --git a/server.h b/server.h index e766838..085b371 100644 --- a/server.h +++ b/server.h @@ -6,6 +6,7 @@ #include #include + #include #include #include #include @@ -13,7 +14,9 @@ #include #include #include - + + + #include "lib.h" #endif diff --git a/server.o b/server.o index 33457c9b5e51d3153db6c08d202c363db79c3fb4..bf062e42124d428b97faf831a685b3ab464ea2c7 100644 GIT binary patch literal 8248 zcmbtZ4Qw366`s94pD%X&lQ@9$1G!K_gM`m^VhjWk>^Rq~AtY&n3l!4R{jBe{x!XH- z_e>l}pfPG~oK!JN!BtTcLa9JiQG{9nQAtqwNrlujNT})`5|s){fvSR*3IQU0Z|03} zJi3!A^+~t$=9}-mH}ht8c6RT9#Fnpx41-BA*alXuNtCfqmsRxvt`4w^*kU$fO})F* z`p$=wfK9!0|Ah+|tf^m?p~za(;niyZwWbp1dtbKBBxcbJ%41lb#LKA=Tu$TVJXWU? z2PgI&yii$k8fzRnjeX(Tsdmt+4WnlokQ8F4kF^nFbc#b&j;K#34xU8YQ^=n>Ly-^od1(wW30@~uN7lh&ciIj|p|dUNmvG=C8eoDa zb*LwC(5J$1sdg60 z{$*mfJ^vdR%?Uw!ok!%u;klUJH3<#Jq_K5qyJ1aNj=``8r~ar6`+pfR7!i&8x2AWU z&sytN@O2P0@Nm|5UY&$t-?i%%xH6V@Y&YiFnF_N#&#ri}jQ7ejslX|@F~5}AZ3hxh zJ8o9$K*`u;PAaG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