Jump to content

Mycobacterium

Member
  • Posts

    92
  • Joined

  • Last visited

Everything posted by Mycobacterium

  1. PYTHON Client - script try to send 1.5MB test.png file import socket import os import time def get_file_packet_count(filename, buffer_size): byte_size = os.stat(filename).st_size packet_count = byte_size//buffer_size if byte_size%buffer_size: packet_count += 1 return packet_count def send_packet(data): sock.sendto(data, target) while True: try: data, messenger = sock.recvfrom(buff_size) data = data.decode() if data == "CONFRIMED": break except: continue time.sleep(0.00001) def send_file(filename): data = None while not data == "READY": print("Waiting for READY state from server side") ready_message = message % ("IS_READY", "_", 0) sock.sendto(ready_message.encode(), target) time.sleep(0.001) try: data, messenger = sock.recvfrom(buff_size) data = data.decode() except: pass time.sleep(0.01) packet_count = get_file_packet_count(filename, buff_size) init_message = message % ("INITIATE", "Duplicate_" + filename, packet_count) sock.sendto(init_message.encode(), target) f = open(filename, "rb") if sock is not None: print("Sending %s with %d packets" % (filename, packet_count)) for i in range(0, packet_count): send_packet(f.read(buff_size)) print("Sent all %d packets\n" % (packet_count)) f.close() message = "%s***%s***%d" PORT = 3007 MY_ADDR = "29.0.0.210" buff_size = 1024 * 5 target = (MY_ADDR, 3007) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind(('', PORT)) sock.settimeout(.02) send_file("test.png") Server - waiting for connection import socket from time import time PORT = 3007 MY_ADDR = "0.0.0.0" buff_size = 1024 * 5 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((MY_ADDR, PORT)) sock.settimeout(.02) INIT_MODE = True packets = [] f_write_stream = None packet_count = 0 print("Waiting for traffic") if sock is not None: while True: try: data, messenger = sock.recvfrom(buff_size) except: continue if INIT_MODE: data = data.decode() # Intent***filename***packet_count message, filename, packet_count = data.split("***") packet_count = int(packet_count) if message == "INITIATE": print("Receiving %s with %d packets" % (filename, packet_count)) f_write_stream = open(filename, "wb") INIT_MODE = False packets = [] elif message == "IS_READY": sock.sendto("READY".encode(), messenger) else: packets.append(data) sock.sendto("CONFRIMED".encode(), messenger) if len(packets) == packet_count: print("Writing %s with %d packets\n" % (filename, packet_count)) for packet in packets: f_write_stream.write(packet) f_write_stream.close() INIT_MODE = True f_write_stream = None packet_count = 0 written_packets_count = 0
  2. I try to define buffer_size and get UDP fragmentation What is important to me is that each packet sent to the device must have a source and destination port - otherwise nothing will reach there. I have something similar in python, I split the file into parts and send it, but for some reason the other side does not receive IPv4 Fragmented IP protocol (I don't see it on wireshark). And I get buffer overflow on the sending script side.
  3. Hello. I need to send a file over 1.5 MB between 2 network interfaces using UDP. My case is that communication must go on port 3007 (source port and destination port). It is very important. In standard operating systems using the IP protocol, system decides which source port use to send next portions of data. In this particular case we can't let the system decide, we have to force source_port and destination_port to 3007 The problem is that sending subsequent portions of data using the same source_port will result in a buffer overflow. Tested in python (UDP - socket). Do you know any way (ruby, python, java) that would allow me to send such a 1.5MB file using UDP where the source_port and destination_port will always be the same?
  4. I think I can buy in similar price Sapphire Radeon RX 6700 PULSE 10GB GDDR6
  5. Hi I am considering buying Arc A770 Phantom Gaming D OC 8GD GDDR6 graphics card, do you know if there is something better, more efficient for a similar price ?
  6. HI, I am replacing the server CPUs and I will stay with two Intel Xeon E5-2609 v4 from this replacement. Is there any desktop motherboard on the market that allows me to use these two Xeon E5-2609 v4 ?
  7. How many degrees +/- I can lower VGA temperature by using WC ?
  8. I watched this movie, and I have some doubts about properly circulating air in my case. I ran the game Sniper Ghost Warrior Contracts 2 Butchers Banquet in 4K 120Hz at maximum detail.. The GPU temperature reaches max 80 ° C The video shows that the temperatures with FurMark running reach max 72 * C I wanted to ask you if my temperatures are normal, shouldn't I somehow cool more my GPU ?
  9. Unfortunately, after many attempts to search for a case that will allow me to mount 2 VGA's, I decided to change the environment to RTX 1080TI Suprim X in Corsair iCUE 7000X RGB Black case. At last I could mount my sound card and I had one free PCI-E 16 slot !! It is surprising, however, that market offers nothing interesting for owners of 2 VGA cards
  10. Impossible, laptop stays in one place all the time, no one sat on it, no one threw it out the window .. White stains appeared out of nowhere, suddenly, I haven't seen them before .. Hopefully this is not another production related screen defect the same as the butterfly keyboard .. Apple has recently been getting us used to production failures ...
  11. Thanks Nayr438. Probably screen defect was from the moment I bought the laptop, I just didn't notice it. I wonder if such a defect may increase with time..
  12. Are you able to write something more? What is the specificity of the problem, pressure issue is a production line problem and incorrect assembly? My equipment is 7 months old, I have not seen these white stains before, they appeared suddenly. The equipment was not moved anywhere, it stood in one place most of the time ..
  13. Camera didn't capture it very well, in real they are more pronounced. This is not my equipment, but screen defect looks similar.. Does It Also Have Pressure Problems ? Take a look at this screen photo.. Also Pressure Problems ?
  14. HI, I noticed white spots on my MacbookPro 16 screen. They look like that: Can you tell me what they actually are ? Should I be concerned that the layers of the screen are peeling off ? The store refuses to replace the entire device, they only want to replace the screen. .. Thanks.
  15. I know But I don't need it, the VGA's aren't overclocked and stock cooling is enough. Yep, right now I use Aorus SLI Bridge. Nope, I use SLI bridge but one VGA is dedicated to Physix only, something like that. (1) is connected to TV (2) is dedicated for Physix (1) nad (2) work in SLI I prefer to give $700 for some better case that will solve my problem.
  16. Sure, but I need proper case for this purpose Well, some nice pci-e soundcard for example Why not ? I have 2 GPU's, now i use one VGA for Physix and other for d3d
  17. HI, I'm trying to find case that will allow me to install 2x MSI GTX1080TI SLI graphics cards (not wtercooled) on ROG crosshair VIII formula motherboard. The problem is that heatsinks and fans take up a lot of space, and access to other pci-e ports is impossible, so I need to embed one card horizontally and the other vertically, both can be installed vertically .. I had a few choices but I am not sure if they are the right ones for my need .. --- Lian Li PC-O12WX - It allows me to mount 2 graphics cards vertically on the risers, unfortunately case was designed rather strangely, so after connecting riser to the motherboard, I am not able to use other pci-e ports. ASUS ROG STRIX HELIOS - The vertical card placement is lower than the first 2 case backplates, however i am not sure if i will be able to install one card horizontally and the other vertically ? Thermaltake A700 TG Aluminium - You can rotate basket vertically, but watching movies I can see that after inserting 2 vga cards, there is no room for anything else. Maybe you have any ideas? One condition, I don't want to watercooled my 1080TI
  18. All right, I just buy a new one APC nr 88 battery pack. Thanks Guys for your time and all the information .. Disconnected all the time ..
  19. I think the same, but I wanted to make sure I was wondering if charging and discharging to the end a few times might slightly increase the capacity ?
  20. The manufacturer writes that with a 100W load, it should last about +/- 100 minutes. At zero load, it should rather not report battery wear, certainly not at that rate.
  21. At the moment I do not power supply anything, I have 100% battery when I disconnect the APC from the power, slowly this percentage is running out. After about 10 minutes I have 60% and it goes further down ..
  22. Hi, I bought today an APC UPS model SMT1500RMI1U. The equipment is new, but it was left unpacked in the warehouse for 3 years. The battery lasts a very short time.. Is there any way to regenerate battery, or maybe the only way is to replace it with a new one?
  23. Thank You Blue4130 .. Now i know a little bit more Ok, so the following setup is a temporary solution for me: 2x 1TB Samsung 860 QVO SSD 2x 4TB Seagate BARRACUDA 2,5 1x Samsung 250GB M.2 PCIe NVMe 970 EVO Plus on Delock PCI Express x4-1x NVMe M2 low profile ( for ESXi or Proxmox )
×