Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How do i listen to loopback address on my local computer, without a port
Post: RE: How do i listen to loopback address on my loca...

(May-27-2023, 07:32 AM)kaimsuudgui Wrote: Listening to the loopback address (127.0.0.1) on your local computer without specifying a port doesn't serve any practical purpose since network communicati...
billykid999 Networking 6 2,812 May-29-2023, 07:50 PM
    Thread: How do i listen to loopback address on my local computer, without a port
Post: RE: How do i listen to loopback address on my loca...

DigiGod thank you for the help. This was alot of help.
billykid999 Networking 6 2,812 May-26-2023, 10:31 PM
    Thread: How do i listen to loopback address on my local computer, without a port
Post: RE: How do i listen to loopback address on my loca...

(May-26-2023, 12:13 AM)DigiGod Wrote: (May-23-2023, 08:30 PM)billykid999 Wrote: I want to listent to my loopback address on my windows PC, without attaching it to a port. I want to listent to any ...
billykid999 Networking 6 2,812 May-26-2023, 10:04 PM
    Thread: getting wrong source IP address using socket and struct
Post: RE: getting wrong source IP address using socket a...

Here is a printout after some updated code: Protocol: 1 192.168.56.1 -> 192.168.56.1 Version: 4 Header Length: 5 TTL: 128 ICMP -> Type: 0 Code: 0 It seems my headers are fine, except maybe th...
billykid999 Networking 1 1,355 May-25-2023, 08:29 PM
    Thread: getting wrong source IP address using socket and struct
Post: getting wrong source IP address using socket and s...

I'm sending a ping from a lab environment to my looback on machine. Whether I send the ping sourced from routers in the lab, virtual ips on my pc, other NIC's its always resolves to source ip as the l...
billykid999 Networking 1 1,355 May-25-2023, 09:19 AM
    Thread: How do i listen to loopback address on my local computer, without a port
Post: How do i listen to loopback address on my local co...

I want to listent to my loopback address on my windows PC, without attaching it to a port. I want to listent to any messages, or ICMP pings sourced from address 10.0.0.1, as the 10.0.0.0 network is ...
billykid999 Networking 6 2,812 May-23-2023, 08:30 PM
    Thread: with open context inside of a recursive function
Post: with open context inside of a recursive function

I'm writing code to check various routers, part of it includes checking the traffic statistics, which is parsed per router. So I need either an open('file.txt') or a with open context. I decided to s...
billykid999 General Coding Help 1 580 May-23-2023, 01:42 AM
    Thread: threading native_id returning same value for all threads
Post: RE: threading native_id returning same value for a...

So I got it to work with different threads. I'm looking at the debugger as it is pulling ConnetHandler objects from the queue, and ip objects from Queue. It seems to be running a different thread on e...
billykid999 General Coding Help 2 1,013 May-04-2023, 06:40 AM
    Thread: threading native_id returning same value for all threads
Post: RE: threading native_id returning same value for a...

I tried print(threading.current_thread()) and the output is 'Main Thread' with the same OID for each thread. This tells me I am not threading properly. Here's the code below. class Connect: ...
billykid999 General Coding Help 2 1,013 May-04-2023, 03:32 AM
    Thread: threading native_id returning same value for all threads
Post: threading native_id returning same value for all t...

So I'm running some code and trying to thread it. I'm getting se same propery_id/ object_id for each thread when I run it, which to me says the same thread is being used for my program. I've tried ...
billykid999 General Coding Help 2 1,013 May-04-2023, 02:54 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

(May-03-2023, 08:05 AM)buran Wrote: Note that it may be multithreading vs multiprocessing issue (i.e. as I am not 100% sure I understand what you do, I don't know if multithreading vs multiprocessin...
billykid999 General Coding Help 13 1,842 May-03-2023, 08:22 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

(May-03-2023, 07:40 AM)buran Wrote: Still I think you want executor.submit(i, ConnectHandler, ip), not executor.submit(i(ConnectHandler, ip)) using executor.map would expect that you pass iterable ...
billykid999 General Coding Help 13 1,842 May-03-2023, 07:50 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

(May-03-2023, 07:40 AM)buran Wrote: Still I think you want executor.submit(i, ConnectHandler, ip), not executor.submit(i(ConnectHandler, ip)) using executor.map would expect that you pass iterable ...
billykid999 General Coding Help 13 1,842 May-03-2023, 07:44 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

(May-03-2023, 07:31 AM)buran Wrote: As the below code shows, I was not correct, regarding 1, that you don't execute anything Actually, I was not correct, regarding 1, so strike that from concurre...
billykid999 General Coding Help 13 1,842 May-03-2023, 07:38 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

(May-03-2023, 06:57 AM)buran Wrote: There are quite a lot of unclear and/or odd things in this code. For example: 1. You never actually execute anything. executor.submit will only schedule the execu...
billykid999 General Coding Help 13 1,842 May-03-2023, 07:24 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

here is latest iteration, still at about 35 seconds. class Connect: def __init__(self,): intake_file = open('ip_list.txt', 'r') self.json_data = [json.loads(line) for line in int...
billykid999 General Coding Help 13 1,842 May-03-2023, 06:45 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

One more note: here's the latest iteration, with no improvement. The threading is placed right above __name__ == __main__: class Connect: def __init__(self,): intake_file = open('ip_...
billykid999 General Coding Help 13 1,842 May-03-2023, 05:53 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: RE: Concurrent futures threading running at same s...

here is the latest iteration. No difference in time, but for 36 to 39 seconds in the wrong way seconds. I'm suspecting this has nothing to do with how I'm applying threading, maybe to the amount of c...
billykid999 General Coding Help 13 1,842 May-03-2023, 04:34 AM
    Thread: Concurrent futures threading running at same speed as non-threading
Post: Concurrent futures threading running at same speed...

I''m doing I/O reads from network devices using netmiko. using a threading context runs the exact same speed as non threading, I'm not sure if it is because I am only testing on 5 devices. I'm runnin...
billykid999 General Coding Help 13 1,842 May-03-2023, 03:27 AM
    Thread: Initiating an attribute in a class __init__: question
Post: RE: Initiating an attribute in a class __init__: q...

(May-02-2023, 11:51 AM)Gribouillis Wrote: (May-02-2023, 11:24 AM)billykid999 Wrote: as this one will force me to do multiple inheritanceI don't see how it would force you to do multiple inheritanc...
billykid999 General Coding Help 8 1,337 May-02-2023, 09:09 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020