当前位置:网站首页>bind()系统调用的用处
bind()系统调用的用处
2022-08-04 05:30:00 【KuoGavin】
首先说CSocket不用Bind的! SOCKET才用Bind。
bind()就是把一个指定的端口分配给要bind的socket。 以后就可以用这个端口来“听“网络的请求。bind()用于server端,一般端口都是well known,以便于提供服务。 端口分配后,其他socket不能再用这个端口。相当于告诉client端“要请求服务,往这个端口发“。 client端不用bind,每建一个socket系统会分配一个临时的端口,用完后再释放。
边栏推荐
猜你喜欢
随机推荐
动手学深度学习__张量
CSDN spree -- college round table spree
DeblurGAN-v2: Deblurring (Orders-of-Magnitude) Faster and Better 图像去模糊
MNIST handwritten digit recognition, sorted by from two to ten
MNIST手写数字识别 —— ResNet-经典卷积神经网络
如何成长为高级工程师?
yoloV5 使用——训练速度慢,加速训练
Copy攻城狮的年度之“战”|回顾2020
基于BiGRU和GAN的数据生成方法
Introduction to Convolutional Neural Networks
PyTorch
How to grow into a senior engineer?
Copy Siege Lion 5-minute online experience MindIR format model generation
LeetCode_Dec_2nd_Week
CSDN大礼包--高校圆桌派大礼包
The second official example analysis of the MOOSE platform - about creating a Kernel and solving the convection-diffusion equation
动手学深度学习_softmax回归
MNIST手写数字识别 —— 从感知机到卷积神经网络
MOOSE平台使用入门攻略——如何运行官方教程的例子
ConnectionRefusedError: [Errno 111] Connection refused问题解决