samples/net/sockets/net_mgmt/README.html · samples/net/sockets/net_mgmt/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Networking · Management events

Network management socket

Network event listener를 board별 configuration이나 native_sim에서 build하고 실행합니다.

Official pathsamples/net/sockets/net_mgmt/README.html
Source filesamples/net/sockets/net_mgmt/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

공식 문장의 echo-server 표현과 실제 net_mgmt build 대상을 구분해 설명합니다.

Input

Network events

API

Management socket

Target

native_sim

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 296625CCB9BCB4DE7E3E7C7BF8B5D9154656C97394DFA514C6ABA601F8139FD7
.. zephyr:code-sample:: sockets-net-mgmt
   :name: Network management socket
   :relevant-api: bsd_sockets net_if

   Listen to network management events using a network management socket.

Overview
********

The net-mgmt-socket sample application for Zephyr implements a listener
for network management events that the networking subsystem is sending.

The source code for this sample application can be found at:
:zephyr_file:`samples/net/sockets/net_mgmt`.

Requirements
************

- :ref:`networking_with_host`

Building and Running
********************

There are multiple ways to use this application. One of the most common
usage scenario is to run echo-server application inside QEMU. This is
described in :ref:`networking_with_qemu`.

Build net-mgmt socket sample application like this:

.. zephyr-app-commands::
   :zephyr-app: samples/net/sockets/net_mgmt
   :board: <board to use>
   :conf: <config file to use>
   :goals: build
   :compact:

Example building for the native_sim board:

.. zephyr-app-commands::
   :zephyr-app: samples/net/sockets/net_mgmt
   :host-os: unix
   :board: native_sim
   :conf: prj.conf
   :goals: run
   :compact:

Part 3

한국어 전문 번역

개요

Zephyr의 net-mgmt-socket sample application은 networking subsystem이 보내는 network management event를 수신하는 listener를 구현합니다.

이 sample application의 source code는 samples/net/sockets/net_mgmt에서 찾을 수 있습니다.

요구 사항

빌드 및 실행

이 application을 사용하는 방법은 여러 가지입니다. 공식 원문은 가장 흔한 시나리오를 QEMU 안에서 echo-server application을 실행하는 것이라고 표현하며, 설정 방법은 Networking with QEMU에 설명되어 있습니다. 이 문서에서 실제로 build하는 대상은 net-mgmt socket sample입니다.

Net-mgmt socket sample application의 일반 build 방법은 다음과 같습니다.

west build -b <board to use> samples/net/sockets/net_mgmt -- -DCONF_FILE=<config file to use>

native_sim board용으로 build하고 실행하는 예:

west build -b native_sim samples/net/sockets/net_mgmt -- -DCONF_FILE=prj.conf
west build -t run

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.