Questions tagged [networking]
Networking is associated with creating and managing networks as well as adding network connectivity to a (set of) programs.
32
questions with no upvoted or accepted answers
8
votes
0answers
3k views
+50
Socket application using TPL
This is an application I wrote that allows multiple TCP clients to share a single TCP connection to a remote server (hosted project, and a demo). Traffic generated by the server is forwarded to all ...
4
votes
0answers
246 views
dynwg: A DynDNS watchdog for WireGuard via systemd-networkd
Preface
I'm using WireGuard as a VPN solution to connect a remote client permanently to my home server.
Unfortunately due to Consumer DSL-related IP address changes, the client loses the connection ...
4
votes
0answers
690 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
0answers
3k views
Network Bandwidth Usage Monitor
I have written a very basic bandwidth usage monitor in C++/winpcap.
I would like to get some feedback, regarding design choices, implementation, style, correctness. (Or anything else you care to ...
4
votes
0answers
91 views
Simple port scanner
At the moment, prtscn takes a server, and a list of port ranges to test (of the form x,y-z,a-c,d,e etc). The -v option will show ...
3
votes
0answers
36 views
Network connection monitor
I was recently in need of a class that checks if a computer has a valid internet connection, so I wrote one; however, I feel that there is a better way to do so and I just don't have the knowledge ...
3
votes
0answers
5k 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 (...
3
votes
0answers
189 views
WebRTC data channel connection establishment with separate offerer and answerer roles
I've developed a demo application for demonstrating connection establishment using WebRTC data channels. I am using cross-window communication using postMessage for ...
3
votes
0answers
79 views
Flexible port scanner library
I have tried to generalize the concept of turning an IP address into a boolean.
The save format is an overly complicated way of storing consecutive IP addresses as strings of bits
Example usage:
<...
3
votes
0answers
183 views
Minimal Async Web Server in Rebol 2
I'm building a rudimentary web server in Rebol 2. I'm trying in particular to understand the flow and logic behind the asynchronous aspects of the TCP scheme.
As far as I can understand it, you ...
3
votes
0answers
170 views
Download website source through Socks4 using Winsock
I just have started to introduce myself into network programming using C++. So I started with Winsock. The code I made is compiled with MinGW and works perfectly!
As a beginner, the main purpose of ...
2
votes
0answers
11 views
Auto re-connecting to a VPN on OS X and pointing Squid accordingly
We need to tunnel certain applications over a VPN at work. Ideally we would use a dedicated firewall/network appliance for this but the only permanent infrastructure we have are Mac Pro's running ...
2
votes
0answers
58 views
Web server using syscalls in Go
I'm new to Go and wanted to implement a web server using system calls to get a better feel for how everything works.
I'm looking for feedback on idiomatic go especially error handling and using ...
2
votes
0answers
84 views
Batch file that checks for wifi connection - reconnects if no internet
There is a remote Windows PC that has access to "landline" unmetered WiFi and there is a Verizon 4G LTE MiFi (metered WiFi) as backup. This script checks to see if the PC is connected to any WiFi, ...
2
votes
0answers
52 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 ...
2
votes
0answers
477 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 ...
2
votes
0answers
1k views
Folder sharing with python sockets
I am just getting started with python. I wanted to make a folder transfer tool to get familiar with python sockets.
...
2
votes
0answers
3k views
Sending ACK/NACK for packets
The code is working perfectly. I'm little bit sure this is a packet what I am sending from client to server in streams. Is this packet? Am I sending in a right way?
Another thing is that I am sending ...
2
votes
0answers
5k views
Blocking TCP Client with Threads vs. Non-Blocking TCP Client with Unitys Update
I'm not sure if this is the right subsite of stackexchange because it's not only about code review but a bit about design eihter.
I'm currently developing a network application.
I need to connect a (...
2
votes
0answers
302 views
Comparing three packet routing algorithms via simulation in Java
Inspired by my question
Simulating a random packet routing algorithm and printing packet statistics in Java
I decided to implement two more packet routing algorithms:
one that computes all the ...
2
votes
0answers
3k views
Multi Server Architecture: ASIO C++
I am working on an application where the user will have flexibility to create and destroy a server instance at any port he/she wishes. User can create multi servers operating simultaneously - each ...
2
votes
0answers
67 views
“Transparently” converting the output to an e-mail message?
I recently wanted to write a regression testing script that produces a report that looks like this:
...
1
vote
0answers
358 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 ...
1
vote
0answers
45 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
0answers
54 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 ...
1
vote
0answers
88 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 ...
1
vote
0answers
237 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 ...
1
vote
0answers
48 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 ...
1
vote
0answers
143 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 ...
1
vote
0answers
994 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 ...
1
vote
0answers
253 views
Thread-safe IDisposable Tcp Connection Manager
I'm trying to implement a thread-safe Connection Manager.
I've split my class in two files, one with TraceMessages and another with the actual implementation.
I'm just going to post the file with the ...
1
vote
0answers
524 views
Samba Access Wrapper V2
Follow up on this post.
I created a Python module to access Samba shares some time ago, using Mike Teos' SMB module as some kind of a base to it. It is mostly a wrapper, but as I said, I wrote it ...