socket.recv 1.4 Python script

SPONSORED LINKS

    Specification

  • Version: 1.4
  • File size: 0 KB
  • File name: index_txt
  • Last update:
  • Platform: Linux / BSD
  • Language: Python
  • Price:Other Free / Open So
  • Company: John Nielsen (View more)

socket.recv 1.4 script description:




Publisher review:
socket.recv script provides you three basic methods for data receiving control. An issue with socket.recv is how to know when you are done receiving data. A TCP stream guarantees the bytes will not arrive out of order or be sent more than once. But you do not know the size of the data that will be sent to you. 100 bytes could be sent as group of 10 bytes or maybe in one shot. Ultimately, this means you have to use a loop in some fashion until you know it is done. The basic recv returns an empty string when the socket is disconnected. From that you can build a simple loop that will work as long as the sender manages to disconnect the socket at the appropriate time. However, there could be situations where a local error will mask as a clean shutdown or maybe a close() is never called. Three very basic methods are shown in this script in order to try to fix that problem. They use either a time-based, end marker, or size of payload method. Since you cannot be sure just what you are going to receive, you have to be careful that you get enough of a message to determine the size of payload or end marker.
socket.recv 1.4 is a Python script for Networking Tools scripts design by John Nielsen. It runs on following operating system: Linux / BSD.
provides you three basic methods for data receiving control.

Operating system:
Linux / BSD

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5