约 41,500,000 个结果
在新选项卡中打开链接
  1. socket编程到底是什么? - 知乎

    socket 其实就是操作系统提供给程序员操作「网络协议栈」的接口,说人话就是,你能通过socket 的接口,来控制协议找工作,从而实现网络通信,达到跨主机通信。 协议栈的上半部分有两块,分 …

  2. What exactly is Socket - Stack Overflow

    2013年4月26日 · I don't know exactly what socket means. A server runs on a specific computer and has a socket that is bound to a specific port number. The server just waits, listening to the socket …

  3. Socket 为什么要翻译成套接字? - 知乎

    Socket 的英文原义是“孔”或“插座”,这个多好理解,套什么接什么字,真郁闷从这个时期起,socket是一种进程间通信机制,提供一种供应用程序访问通信协议的操作系统调用,并且通过将socket …

  4. What does "connection reset by peer" mean? - Stack Overflow

    2009年9月16日 · It's fatal. The remote server has sent you a RST packet, which indicates an immediate dropping of the connection, rather than the usual handshake. This bypasses the …

  5. Basic Python client socket example - Stack Overflow

    2025年4月12日 · Here is the simplest python socket example. Server side: import socket serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) …

  6. How do I change a TCP socket to be non-blocking?

    2009年10月9日 · How do you make a socket non-blocking? I am aware of the fcntl() function, but I've heard it's not always reliable.

  7. websocket和普通的socket有什么区别? - 知乎

    Socket,这玩意儿说白了就是网络通信的基石。 就像你手机里的SIM卡,没有它,你手机就是块砖头。 Socket 让你的应用程序能够发送和接收数据,不管是TCP还是UDP,都得靠它来实现。 2. 再 …

  8. How Do I Use Raw Socket in Python? - Stack Overflow

    2009年7月13日 · From what I gathered, Raw Socket usage in Python is nearly identical in semantics to UNIX's raw socket, but without the struct s that define the packets structure. I was wondering if …

  9. How to check if socket is still connected - Stack Overflow

    2017年12月29日 · I've had good results with this variant to check if a socket is closed (negate the result if you want to check if it's still connected): import logging import socket logger = …

  10. Python socket connection exception - Stack Overflow

    2014年8月22日 · I have a socket-connection going on and I wanna improve the exception handling and I'm stuck. Whenever I call socket.connect(server_address) with an invalid argument the …