Tag:socket

  • How to solve the problem of java socket connection pool caused by too many threads

    Time:2021-6-3

    This article mainly introduces how to solve the problem of socket connection pool caused by too many threads. The example code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. Friends in need can refer to it Too many threads cause the socket connection pool to be […]

  • Using C + + to transfer pictures with socket in the form of JSON

    Time:2021-5-12

    This example for you to share the C + + implementation of JSON form of socket transmission image specific code, for your reference, the specific content is as follows General process: the client reads the image, encodes it with Base64, converts it into a string, saves it in JSON, transmits it to the server through […]

  • Net core uses socket to communicate with raspberry pie

    Time:2021-4-24

    preface Last year’s raspberry pie has been put in the drawer to eat ash, Debian 9 released a few days ago, and it’s no surprise that it supports raspberry pie. So I took out the card reader again and installed the Debian desktop system again. introduce Now the current level of this thing is just […]

  • Using socket to detect the communication status of socket under Linux

    Time:2021-3-23

    All socket communication comes through socket interface. Any family communication, including socket connection in UNIX domain, has to go. Therefore, as long as several syscalls read and written by socket are intercepted, the sending and receiving situation of socket in UNIX domain can be understood. The release version of systemtap provides a tool called socktop, which […]

  • C # examples of using socket to realize heartbeat

    Time:2021-3-11

    Server code: class Program { static SocketListener listener; public static void Main(string[] args) { //Instantiate the timer class and set the interval to 5000 Ms; System.Timers.Timer t = new System.Timers.Timer(5000); t.Elapsed += new System.Timers.ElapsedEventHandler(CheckListen); //The event is executed when the time of arrival is reached; t.AutoReset = true; t.Start(); listener = new SocketListener(); listener.ReceiveTextEvent += […]

  • C # using socket to realize the communication between server and multiple clients (simple chat system)

    Time:2021-3-10

    Extension:Because the server side stores all the connection objects between the server and the client, we can implement the chat system based on this demo *Every time a user speaks to the server, the server receives a user’s speech information. At this time, the server can send the information sent by the user to each […]

  • C # socket programming simple LAN chat example code

    Time:2021-1-29

    preface Recently, after learning the knowledge about C # socket, I started to build a simple LAN chat. I have the idea of doing this, mainly because it was very troublesome to transfer files between two computers at home before. I need to use QQ, wechat or other third-party applications. Basically, I have to log […]

  • Using SS5 to configure socket5 agent on CentOS server

    Time:2021-1-18

    The first step is to download and install SS5 1. Install the necessary package of the system Copy code The code is as follows: [[email protected] ~]# yum install gcc automake make   2. Install the necessary packages for Socks5 Copy code The code is as follows: [[email protected] ~]# yum -y install pam-devel openldap-devel cyrus-sasl-devel   […]

  • Implementation of chat applet based on java socket

    Time:2020-12-25

    The server package demo04; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.ServerSocket; import java.net.Socket; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.ScrollPaneConstants; public class ownServer { public static void main(String[] args) { // TODO Auto-generated method stub new Server().launch(); […]

  • Smart home solutions

    Time:2020-10-22

    background — Because I am also a geek enthusiast, my family has done a variety of intelligent control a long time ago, the previous control module is not so powerful, I also combined with the Nokia 6120c developed control module with C + +, but now my family bought a pile of control modules on […]

  • Socket programming example code in C language

    Time:2020-9-10

    Not long ago, I just finished reading C Primer Plus, and I gained a lot. I have a more comprehensive understanding of C language, and I have more ideas about modularization and data structure. I have learned C language before, but many of them can’t remember it. My knowledge is very scattered. This is the […]

  • Java socket communication implementation process and problem solving

    Time:2020-9-9

    This article mainly introduces the java socket communication implementation process and problem solving, the article introduces in detail through the example code, which has a certain reference learning value for everyone’s study or work, and friends in need can refer to it The original intention is to verify whether java socket is a single thread […]