Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [networking]

Networking is associated with creating and managing networks as well as adding network connectivity to a (set of) programs.

7
votes
2answers
59 views

PyCat A small implementation of netcat in Python3.x

Intro netcat is an all-round tool used with many applicable features I was playing around with sockets and openssl, and decided I should build my own. It works as expected, but my code feels a bit ...
3
votes
2answers
38 views

Python 3 multi-threaded pinger

My goal: I want to ping every single IPv4 address and record whether or not they responded. The way I have it set up is every IP address corresponds to an index. For example ...
4
votes
0answers
44 views

Traceroute implementation in Rust

I made this simple traceroute implementation using the libpnet library, which sends ICMP echo probes with an increasing time-to-...
1
vote
0answers
13 views

Wrap location API in coroutines

In my app I need to query location and scan wifi periodically. To conserve power I need to change the rate dynamically, depending on the distance to the target. Also I want to wait for both ...
2
votes
0answers
38 views

Task based GameObject recorder for networked game

I've recently been dipping my toes in to async code so I'm not 100% sure if there's a better way to do this, or if I'm going to run into problems down the road. I plan on using the following class in ...
1
vote
0answers
19 views

Unity Multiplayer Authoritarian Client-Server

I have created a client-server system which handles multiplayer for a game I've been making with Unity. Problem is, it feels very clunky and complex and I want to know how the design could be ...
1
vote
1answer
118 views

IP Scanning program Python 3

This is the code I made to scan IP addresses. I am new to python and just want to learn how I can optimize it. I know the subprocess is slower than others to IP scanning but if there is a way to make ...
2
votes
2answers
114 views

Bash script to change network interface parameters/configuration and start virtual machines

On my Arch Linux system I have created a script that should do the following on system startup: detect all network interfaces check if physical interfaces are up check if bridge interfaces are up ...
2
votes
4answers
135 views

Simple port scanner in Python 3

I wrote a simple python port scanner today and I would like to get some advice on how to improve on the code in different ways. I am aware that I can implement threading to reduce runtime but I won't ...
1
vote
0answers
24 views

Peertable - an infrastructural peer-to-peer networking library

From the README: Welcome to Peertable! This project is an infrastructural peer-to-peer networking library for Python 3. You can also use it in standalone mode, although that is for little use ...
3
votes
1answer
105 views

Java Messenger data transmission

This is a very simple concern, could somebody take a look at a few lines of my code? I'm writing a simple Java multi-user messenger, it is structured in a desktop client with a Swing GUI, a java ...
6
votes
2answers
649 views

Network Interface Object

I wrote a Network... thing (not really telnet); and it's pretty simple. No options, just straight I/O. It seems programs get so bloated easily. ...
2
votes
1answer
153 views

Measure website home page total network size in bytes

We have a requirement to check the size of some of our website home pages, in MB. This is to ensure that they are not growing too large, and that large images haven't been uploaded. I couldn't find ...
3
votes
1answer
76 views

Mutex helper for interprocess sychronization of accessing a network drive

I have two windows services working in parallel. Each of them is using a network drive that is connected and disconected dynamically by each one as required. They do it by executing ...
1
vote
0answers
38 views

Simple overlapped IO single threaded client

I wanted to make a single threaded network client that only uses a single connection to a server. IOCP seems like overkill but overlapped IO with event notification I think is the most performant of ...
14
votes
1answer
892 views

Event Based TCP Library

A while ago, I wanted to make a multiplayer game, so I wrote some TCPClient and TCPListener code, and it worked, but it was ...
7
votes
2answers
425 views

Trace route based on Cisco routing table text output

I created a script for path search across network topology based on uploaded routing tables in text format. The final purpose is to be able to get all available paths to given subnet/host from each ...
0
votes
2answers
92 views

Multiple AFNetworking calls In a view controller

Multiple AFNetworking calls In a view controller. The code is very wield. I think , to negotiate with the server , and combine those into one url, instead of many urls. ...
6
votes
1answer
219 views

Retry mechanism for failed downloads

I'm writing a mechanism to retry any failed downloads that respond with certain http error codes, I've noticed the server I'm downloading from will unexpectedly throw these codes to me and when I ...
7
votes
1answer
837 views

Event-based multi-client socket wrapper

For learning purposes I am trying to develop an event-based library/wrapper to communicate with many clients by using epoll. The wrapper was designed with the ...
0
votes
1answer
58 views

First Time Programming Sockets

The following code was my first attempt at creating and manipulating socket variables. I compiled and ran the code through cmd. What are the most common ways to organize methods in both a server and ...
1
vote
0answers
77 views

Fetch network interfaces configuration for hosts from list

Can you please review a little my simple Python code? I wrote this script to get list of hosts from text file and then iterate over these and get IP configured on active network interfaces - and ...
0
votes
1answer
84 views

Objective-C and AFNetworking

This is Objective-C and about Networking Request. Just set the AFNetWorking Manager and get method name from the method lists below (it is all Post request). The way we take now is quite weird. If ...
2
votes
1answer
150 views

TCP Packet design

I'm implementing a client/server app using JSON (as String) via TCP/IP. String --> Packet --> byte[] --> tcp/ip --> byte[] --> Packet --> String ...
3
votes
2answers
3k views

HTTP request parser in C

I'm implementing a simple HTTP server in C, and this is the first part of it. Basically, it takes a string containing a "raw" HTTP request, and parse it into a ...
5
votes
1answer
94 views

Python program that checks connections based on URLLIB response

The main function tries to create a urllib connection, and if it fails/succeeds the label changes accordingly. However, I'm looking for ways to improve this code. Some elements I'm already aware of: ...
5
votes
2answers
150 views

Python program that pings and outputs a response in Tkinter

I have a program that allows me to check (in a nicer way than using command prompt) what my ping will be when playing League Of Legends. I've implemented all of the elements that I had hoped, however ...
2
votes
1answer
73 views

Crap (from the Past) Scraper

I listen to a podcast called Crap from the Past. It's a radio show that airs weekly in Minneapolis and specializes in playing music from my childhood. The show has been on the air for ~26 years. I ...
1
vote
1answer
215 views

Class for TcpClient usage

I have created a class which wraps the TcpClient. It's greatly simplified everything when developing. It takes an interface for me to run callbacks where I can ...
3
votes
2answers
389 views

Networking library for c++, windows

I have planned to implement a networking library for C++ which is specific to windows since I can't find a library for my needs. Here is an implementation of TCP server using this library. First of ...
4
votes
0answers
248 views

Python port scanner using multithreading

I have written a rather simple port scanner using python and I would like to know things I could do better regarding: Code quality, making the code in general better Performance, making the code run ...
4
votes
1answer
63 views

Java - Downloading Wikipedia Articles

This is my first experiment that uses a network API and connects to the internet. I tried to write a program that gives you an article of wikipedia directly by typing the name. You can get an ...
3
votes
1answer
57 views

Restart network-manager service if connection down on wake shell script

I use Ubuntu (Trusty and Xenial) and usually put my computer in sleep mode rather than power it down. A common problem is that upon wake the network is down so one has to restart the network-manager ...
1
vote
1answer
1k views

Multi-client TCP server with a thread for each client and DB connection pool

I'm creating a Qt TCP (with SSL) server to which multiple clients should connect and use the DB, and this is the main task. So, I think I can use this architecture: each client has its own thread, and ...
1
vote
0answers
33 views

Queuing outgoing packets to fix server lag issues

I have been developing a game lately, my first multiplayer game. I am using Netty and LibGDX. So previously, before this update I added, I was only queuing incoming packets, I had to do this because ...
2
votes
1answer
110 views

Executing a command using Net::SSH

According to the local cop (rubocop), my method has too many lines. ...
3
votes
2answers
225 views

Arp-spoof check in PowerShell

To learn some PowerShell I made a tool, I've made before in bash. It pings the subnet for arp values and checks if there is no weird behaviour. ...
4
votes
1answer
55 views

Transferring many Vector3 across network ten times per second

I am making a game with C#/Unity, and have devised a Client-Server system to update the positions and directions of all units in play ten times a second. My biggest concern is that the more units ...
3
votes
1answer
59 views

Don't MiTM me please

To first understand how MiTM works I've made a few MiTM scripts, but this time I wanted to defend myself against such attacks. I'm unsure if my idea even works. The code seems to be working but I make ...
2
votes
0answers
317 views

Python scapy subnet mapper

This a follow-up question of Python scapy - TCP port scan of subnet I've decided to make an all powerful subnet mapper in Scapy to better understand how tools like ...
4
votes
1answer
831 views

Python scapy - TCP port scan of subnet

Question I love using NMAP and other related tools to scan networks really fast. But using a tool and understanding how it works are 2 different things, thus I tried creating a program where I can ...
1
vote
0answers
88 views

Converting Cisco IOS output to XML

The INPUT FILE is created by a script that runs "show interface description | i FN" against each of my routers. Once I have that file, my PYTHON SCRIPT below, parses the INPUT FILE for each of the ...
3
votes
0answers
2k views

OpenSSL Client/Server

I have recently begun to dabble with OpenSSL to provide TLS encryption to TCP socket communication. Through documentation and heavy reference on example code I have come up with the following code (...
12
votes
2answers
3k views

Bob Marley is jamming on the wifi

Bob is jamming it's way through the city deauthenticating people from thier wifi for a few seconds. First scanning all possible wifi-AP and then pretty printing them, afterwards you can choose a wifi ...
6
votes
2answers
210 views

Multiplayer Peer-To-Peer position interpolation

I have coded this movement interpolation for Unity3d using Photon. OnPhotonSerializeView gets called at the tickrate. Any kind of criticism/improvement suggestions are welcome. I tried to make the ...
2
votes
3answers
584 views

Reading data from network stream

I have a function to request an update from the server. I provide the query and also indicate the expected length of the response. ...
3
votes
0answers
68 views

Retrieving a certain amount of data from a socket [closed]

I'm trying to retrieve a certain amount of data from a socket, both Unix domain and TCP, but I've no control over its format or length. I discussed this with someone who told me to set my receiving ...
1
vote
0answers
612 views

Protocol to parse packets using TCP

I posted this question a year ago and until a weeks ago I solved most of the issues that were happening due to incomplete packets, things like trying to read the packet header again when the payload ...
8
votes
3answers
377 views

Update MediaWiki settings with dynamic IP address

I'm running a MediaWiki instance from a home server where the public IP address is not guaranteed to remain static. The following script is meant to run at boot time to check if the IP address has ...
2
votes
1answer
604 views

Be the Man in the middle, and (ARP) Poison your network

Whilst learning from a Python Networking book, I've made this tool to perform a Man in the Middle attack by ARP-Spoofing on a Network. I think this has been done plenty before. ...