From 947bff0380c469bf66763ac2aa8020c4df835064 Mon Sep 17 00:00:00 2001 From: Serafim Date: Fri, 13 Dec 2024 15:58:19 +0300 Subject: [PATCH] shutdown --- server1/server | Bin 60936 -> 61040 bytes server1/server.cpp | 10 +++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/server1/server b/server1/server index d866659a2b1b9ff6b274ff1ce9c4c9695fbcfea6..bd1fd71f23a529908eeba9908fefdf3776f56808 100755 GIT binary patch delta 14911 zcmZ`=30zgx)<5UKWiYOQ43~?@AS&Pl7*2@_Dths$iGq?jfFn49qS>I}hxnlDHE>B; zTH$+HYMK&iSgDvMY7W_F&gPKmb+$A!E${c=!-Wg)eTN@=?fqZFUTf{)>~lC2pLe={ z-l;UeJEn)iuLMDqoU*7-+}A~k*1EDY(M@6ph(_!HYNieet9VZ|D>gKw#X8a6LW@*` zceRwNmQvMK>($=s|EruKl{3iQX_l|=uFfr&zrU;Pzij(ICm-AH!82T6r=?DjEi%xB zieDG}HfyoNNnIYNFl-`zr_gby0qQtf<8DxsDAw7ax>1;$LA^$qs3%aahe18f>#>xg zGpIXg5Af^s>n8@f?;4=~50}t5ZwW1e#5`UvWIEJM7eFTG0ChUI@R*mAIj7h?K^;#S1Kw68X&oG zEJCA`htPd{n&8Gt?tIGB8)Da?_1}6t>?Ck4M`+o5{FBz}b6sAUGAVCDR+X{o*``hA zOv;-xYr?cyIeAsT1-Yp@7e!NC>F*ZCOgF^|KW=C{@n0v!U2(>bi_!$8h96Nr2R_qc zzx6*(iYrHijH_(9U_E(2k6Co1xxwv_A{9TgJr(3lQ9|)Mw9Tu}DUf;-7`qrh$$>xo z~m#3kfD`NGpmD^`L-I4`Yy2VdTJO(O}!v zMCuu8Fop_%m!}=L5i|qb7ah1(2kr=ZA6%A1`}Np?JC2Tk`wu${G+~QquuXL`{T*uP zneD)}Piw}V;D9TeM8g$C&S?&~QA!v#z%UOz=5XB=K#PE80cCdVS0q&eT?v#~v0vTj zGSCA+F>H00iM(4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pk5j{#*?Y%=gnDZNJG334SBNj$Q%^f7rJt3h+t zAi?^=OHeCtX0cXg!yz@#xip9WCMDj=5v(vN(KSJ6?w#5c&yo0fIT>ApSxI&OG2$?m z{~u#gco*S~_c)Yew|ji_(HE1l@;G-t2oLAJ9-9J1qcNf4Wdk-uA{P>QkkQtU%6Z#cy@L4 z@hiu&XIDA-UF{R%I(WNiV+(rd>a*C`>#p_;D3VK$QwsKPO|jQvS6&N3rZTVfbpPPd zbuWCE%C7Zn={nD>UQ~JHT5r|Q_4}U+^1I&0&-Lq`DjJTK`!|hbz1}C-_0Z6`R(R-3 fb=RF*eK>vjV{gB{9|&+g1>fkSoxMUMZgl!T!6NqJ diff --git a/server1/server.cpp b/server1/server.cpp index e310cd9..bd72f74 100644 --- a/server1/server.cpp +++ b/server1/server.cpp @@ -211,12 +211,14 @@ void log(std::string msg) { // Returns file descriptor for server socket int start_socket() { + int option = 1; int server_socket = socket(AF_INET, SOCK_STREAM, 0); + setsockopt(server_socket, SOL_SOCKET, SO_REUSEADDR, &option, sizeof(option)); + sockaddr_in server_address; server_address.sin_family = AF_INET; server_address.sin_port = htons(PORT); server_address.sin_addr.s_addr = INADDR_ANY; - bind(server_socket, (struct sockaddr*)&server_address, sizeof(server_address)); if (errno == 98) { @@ -353,6 +355,12 @@ int main() { int server_socket = start_socket(); + if (server_socket == -1) { + getch(); + endwin(); + return 3; + } + log("Socket created\0"); // Create thread to read commands