Tag:udp

  • Python implements the multitasking version of UDP chat

    Time:2021-10-23

    In this article, an example is given to share with you the implementation of the multitasking version of UDP chat in Python for your reference. The specific contents are as follows 1、 Case example 2、 Case description 1. Write a program with 2 threads.2. Thread 1 is used to receive data and display it.3. Thread […]

  • Implementation of Linux UDP server and client program

    Time:2020-11-28

    1. Source code UDP server: /** *@ brief UDP server * @author Mculover666 * @date 2020/04/15 */ #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv[]) { int server_sock_fd; struct sockaddr_in server_addr, client_addr; char recv_buf[100]; int nbytes = 0; socklen_t len = 0; […]

  • How to construct UDP packet with original socket in golang

    Time:2020-2-1

    Preface This article mainly introduced to you about the construction of UDP packets with original sockets by golang, and shared it for your reference and study. I won’t say much next, let’s have a look at the detailed introduction. Raw socket introduction In TCP / IP protocol, the most common sockets are socket , TCP […]

  • Im development guide 1: how to select technology

    Time:2019-12-12

    The mobile IM Development Guide series will introduce all aspects of an im app, including technology selection, landing optimization, etc. In addition, the author of this article will combine his many years of experience in the development of IOS im SDK in Netease Yunxin to deeply analyze various common problems in the actual development. ###Communication […]

  • Network communication engine TCP and UDP for swoole learning (3)

    Time:2019-11-17

    I. TCP service TCP server Let’s take a look at the introduction guide to swoole official documents – > fast start – > create a TCP server, run the sample code of the document once, and see the following effect: server.php <?php //Create a server object and listen to port 127.0.0.1:9501 $serv = new Swoole\Server(“127.0.0.1”, […]

  • Brief tutorial of nodejs (10)

    Time:2019-10-26

    The brief course of nodejs will start from scratch to learn nodejs related knowledge and help JS developers build a full stack development technology stack! Pay attention to get moreNodejs excellent article This is the tenth concise tutorial of nodejs, which will introduce nodejs.dgramModule (UDP server / client)Related basic operations. What is UDP? Internet protocol […]

  • Analysis of tcp, UDP and IP Protocols

    Time:2019-5-2

    In the early days of interconnection, NCP protocol was used for interconnection between hosts. The protocol itself has many defects, such as: it can not interconnect different hosts, different operating systems, and no error correction function. In order to improve this disadvantage, Daniel came up with the TCP/IP protocol. Now almost all operating systems implement […]

  • Introduction to UDP Protocol Power Node Java College Arrangement __________

    Time:2019-5-1

    1. A brief introduction to UDP UDP is a transport layer protocol, which is in a hierarchy with TCP. But unlike TCP, UDP does not provide functions such as overtime retransmit and error retransmit, that is to say, it is not a reliable protocol. 2. UDP protocol header UDP port number Because many software needs […]

  • Memcached UDP Reflection Attack Vulnerability

    Time:2019-4-7

    Problem record At noon today, a colleague responded that a system opened very slowly, thinking it was a computer problem (snickering manually). Open the website, slow even static files are several KB / S speed. This is obviously unreasonable. Check on the server, CPU is normal, memory is normal, Web programs are normal. The problem […]