0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

初めてQiitaに記事を書いてみる【投稿テスト】

Posted at

はじめに

初めまして。普段、Qiitaの投稿記事によくお世話になっています。が、自ら投稿することはありませんでした。そんな私の投稿でもささやかながらお役に立てればと思い、自分で調べていて分かったことなどを共有していきたいと思います。

自己紹介

仕事ではC/C++がメインで、時々、シェルスクリプト、C#やPythonを使っています。

適当なサンプルコード

import socket

UDP_IP = "127.0.0.1"  # Dst IP addr(ex: localhost))
UDP_PORT = 514        # Dst Port No.

# Create UDP Socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

# Send Message
sock.sendto(b"Hello World!", (UDP_IP, UDP_PORT))

print(f"Sent Message : {"Hello World!"} (Dst: {UDP_IP}:{UDP_PORT})")

# Close Socket
sock.close()

まとめ

以上、記事投稿テストでした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?