๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Crow2

js fetch ํ›„, response ์‘๋‹ต์ด ๋Š๋ฆฐ ๋ฌธ์ œ ๋ฌธ์ œ let url = `${TSP_SVR_URL}/fix_points`; fetch(url, { method: "POST", headers: { "Content-type": "applicaion/json", }, body: JSON.stringify({ SPoint: pointList[0], EPoint: pointList[0], SPointList:{ nodes:pointList.slice(1, cnt) }, }), }) .then(response => response.json()) .then(body => { console.log(body) }); fetch ์š”์ฒญ ์‹œ์— response์˜ body๊ฐ€ ๋„ˆ๋ฌด ๋Šฆ๊ฒŒ ์˜ค๋Š” ํ˜„์ƒ์ด์—ˆ๋‹ค. ํ”„๋ฆฌํ”Œ๋ผ์ดํŠธ๊ฐ€ ์ œ์ผ ๋จผ์ € ์˜ค๊ณ , ๊ทธ๋‹ค์Œ fetch response๊ฐ€ ๋“ค์–ด์˜ค.. 2022. 4. 29.
2020-2021 ๊ฐœ๋ฐœ ํšŒ๊ณ  - ๊ด€์ œ ์‹œ์Šคํ…œ ๋“œ๋ก  ๊ด€์ œ ์‹œ์Šคํ…œ C++, qt lib boost beast : http client crow : rest api server crow git nlohman json : json parser nlohman json ํšŒ์‚ฌ ์ƒํ™œ์„ ํ•˜๋ฉด์„œ ๋งค๋ฒˆ c++๋ฅผ ์œ„์ฃผ๋กœ๋งŒ ๊ฐœ๋ฐœ์„ ํ•˜๋‹ค, ์ฒ˜์Œ์œผ๋กœ ์›น ๊ธฐ์ˆ ์„ ์ด์šฉํ•œ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ–ˆ๋‹ค. ๊ด€์ œ ์‹œ์Šคํ…œ์˜ ์„œ๋ฒ„ ๊ฐœ๋ฐœ์— ๋“ค์–ด๊ฐ€๊ธฐ์ „ ์–ด๋–ค ์–ธ์–ด๋กœ ๊ฐœ๋ฐœ์„ ํ• ๊นŒ ๊ณ ๋ฏผ์„ ํ–ˆ์—ˆ๋‹ค. node, flask, .net, spring ์ด์•ผ๊ธฐ๋ฅผ ํ–ˆ์—ˆ์œผ๋‚˜ ํด๋ผ์ด์–ธํŠธ์ชฝ์—์„œ epoll์„ ์ด์šฉํ•ด๋‹ฌ๋ผ๋Š” ์š”๊ตฌ์‚ฌํ•ญ์ด ์žˆ์—ˆ๋‹ค. ์ง€๊ธˆ ์ƒ๊ฐํ•ด๋ณด๋ฉด ๋‹ค๋ฅธ ํ”„๋ ˆ์ž„์›Œํฌ์—์„œ๋„ epoll๊ณผ ๋น„์Šทํ•œ ์ˆ˜์ค€์˜ ํ†ต์‹  ๊ธฐ๋ฒ•๋“ค์ด ์กด์žฌํ• ํ…๋ฐ ๋‹น์‹œ์—” '์•„, epoll ์จ๋‹ฌ๋ผ๊ณ  ํ•˜๋‹ˆ c++์„ ์จ์•ผ๊ฒ ๋‹ค.' ์ •๋„ ์ˆ˜์ค€์—์„œ c++๋กœ .. 2021. 12. 4.