๐Ÿก Home

Category / ์นดํ…Œ๊ณ ๋ฆฌ :

RNUI Module : react-native-freelifemakers-ui
  • nodejs8- ์ž๋ฐ”ํด๋ผ์ด์–ธํŠธ ์ฑ„ํŒ… ๋ฒ ์ด์ง/java client chat basic(3)

    ๐Ÿ‘‰๐Ÿป ์ฝ”๋“œ์„ค๋ช… / Code Explanation โœ”๏ธ ChatClientGUI.java — ChatClientGUI ์ƒ์„ฑ์ž / ChatClientGUI Constructor 1)์ฑ„ํŒ…ํ‘œ์‹œ ์˜์—ญ / Chat display area 1-1)์ฑ„ํŒ…ํ‘œ์‹œ ์˜์—ญ์œผ๋กœ ์ˆ˜์ •ํ•  ์ˆ˜ ์—†๋„๋ก setEditable(false๋กœ ์„ค์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.)It is set to setEditable(false) to prevent editing within the chat display area. 1-2)๋Œ€ํ™”๋‚ด์šฉ์ด ๋งŽ์„ ๊ฒฝ์šฐ ์Šคํฌ๋กค์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค.Scroll functionality is applied if the conversation content is extensive. 1-3)์ฑ„ํŒ…ํ‘œ์‹œ ์˜์—ญ์„…


  • nodejs8- ์ž๋ฐ”ํด๋ผ์ด์–ธํŠธ ์ฑ„ํŒ… ๋ฒ ์ด์ง/java client chat basic(2)

    ๐Ÿ‘‰๐Ÿป ์ฝ”๋“œ ์„ค๋ช… / Code Explanation โœ”๏ธ Client.java — nodejs ์„œ๋ฒ„๋ž‘ ํ˜ธ์ŠคํŠธ์™€ ํฌํŠธ๋ฅผ ๋™์ผํ•˜๊ฒŒ ๋งž์ถฅ๋‹ˆ๋‹ค.Match the host and port to those of the Node.js server. — ์Šค๋ ˆ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ฑ„ํŒ… ํƒ€์ดํ•‘๊ณผ ํ™”๋ฉด์— ์ถœ๋ ฅํ•˜๋Š” ๋ถ€๋ถ„์„ ๋ถ„๋ฆฌ์‹œํ‚ต๋‹ˆ๋‹ค.Use threads to separate the chat typing process from the screen output. 1)์„œ๋ฒ„๋กœ ๋ถ€ํ„ฐ ๋ฉ”์„ธ์ง€๋ฅผ ์‹ค์‹œ๊ฐ„์œผ๋กœ ๋ฐ›๋Š” ์Šค๋ ˆ๋“œ์ž…๋‹ˆ๋‹ค.This is a thread that…


  • [Mediaserver]mini_Mediaserver_1-์ฝ”๋“œ์„ค๋ช…/code description-amf0.cpp(1-9)

    ๐Ÿ‘‰๐Ÿป ์ฝ”๋“œ ์„ค๋ช… / Code Explanation โœ”๏ธ void Amf0::write_string(std::vector& buf, const std::string& str) — ๋ฒ„ํผ๋งŒ ํ‚ค์šฐ๊ณ  ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.It only expands the buffer and does not return a value. — push_back : vector์˜ ํ˜„์žฌ ๋์— ๊ทธ ๊ฐ’์„ ๋ณต์‚ฌํ•ด์„œ ๋ถ™์ž…๋‹ˆ๋‹ค.push_back: Copies the value and appends it to the current end of the vector. — AMF0์—์„œ๋Š” ์ด…