From 428a26017fb812c3e6611d22b0e1adbab73e389b Mon Sep 17 00:00:00 2001 From: winsdominoes Date: Tue, 14 May 2024 18:34:20 +0700 Subject: [PATCH] base --- webserver | Bin 0 -> 15960 bytes webserver.c | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 webserver create mode 100644 webserver.c diff --git a/webserver b/webserver new file mode 100755 index 0000000000000000000000000000000000000000..78ed470fd9488c7b94a4ba1d35e4b950667f942c GIT binary patch literal 15960 zcmeHOYit}>6~4QU6NftSCQYd0K)iywv=C41_@NXqSwAzboWvxyTBMfo+B>#a+K00{ zTiX=^L(0QyBLyKrgenA5QIV)nCHP?k0!M*TkU$N;QlW|{!YGw^IBGxvM22(bo^LW9 z)~Qq>q)Kz8o$sET)H%5$i->L&&^Fu2jMIXte@jgpADFtUSmAq5@QM9?Yv{gUDg5 zNC!aJ{r-|nrjqoIKHd}&807I#R$8^gO3y}oOyV*j2p)^fdqsG!2oJa};{+m}925Q= zk$8r&jci( zlKwWk4yME(DB)Fya@oo5&O^COYc5-;EVM2h>2B@rG|ENeu-7qD{5wy zbrMDuU(zz#W7{6FvwzFVxl3zjO27T~I+uOQR&3_rcdKI~!+rhMVdJpT<<~npl{Gwe+{)M`dnQ|U z?9$lr{#>zOkEJJbHnlaAFBYVAOS@Keq`}20`Ze_7BbOLyK0t{1RB6g?=d02#x*vS` zs}$0>lCP=4_Z;7^)GlsCsa0`+UWvXg<(U=qkgpuodcIzK4N$HI^uc*?J)q}#gt8vc zd-p#v+zRORJko|&MZb+i%w@C{VHANV0#O8_2t*NxA`nF&ioiQR0&g}P_@{aHPj%)q zwXYpg%KZGQ6L()V&;G3Ll6P`$*Vjqywme72hUS!F|5>)Yam{tz>GLeRE#D*SbVKui z^6YNQlN;prKMyZo{-n8l%{=>u_0h4x_SN=Zn&*0cMXk7dPm}A-X``X}X|F%hFOtSQ zS6gCu_?EMmhStq>8rpXEYD4o9J6;kb|6$L+tB>KK+vf7RdGRkt&5O5c%-GB3<=f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cpFsCxz#u@2M;J`2oHV;-|y_gdduL416iX9~A=-ew*=s z7~)R|0k|zRVZ!bGG{ndH1BmA#^dFAj&xMccuae>^D9Zs+>TB%_RQWZ1c!=O{w$Blq zaR0vx@y(?61ilEOAm$I$YgC~$RDTZ_p7XE|GVBi-c!RhN0Y07sS6fL*1%6t(BSZgh zGVt8R^AFaq*w>2vtNi`r0v@j8cS* z9^`r=vkv`ZotF@P*q{3fmR-`nxcesXAMiE00)7xNcY>}*q`?Up*n7!Ht6x8UxUXy{ i9mXEyU*HEND!)fZTJ&NiRS$T6SL4rjX|JZY;Qt4!tIo{; literal 0 HcmV?d00001 diff --git a/webserver.c b/webserver.c new file mode 100644 index 0000000..2bd4c95 --- /dev/null +++ b/webserver.c @@ -0,0 +1,15 @@ +#include +#include +#include +#include + +int main() { + int sockfd = socket(AF_INET, SOCK_STREAM, 0); + if(sockfd == -1) { + perror("webserve (socket)"); + return 1; + } + printf("socket created successfully\n"); + + return 0; +}