Questions tagged [networking]

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

Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

Non-blocking TCP and UDP in Unity3D Game Engine

I would like constructive criticism of a networking plugin I've written for Unity 3D. The use-case of the code is for people in "creative coding," where simple TCP and UDP messages are used for ...
3
votes
1answer
61 views

Small socket based packet Library

I'm currently writing a python script which needs some simple networking. After some playing around with sockets, this emerged, but as this is my first foray into sockets I'd really like a second ...
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 ...
3
votes
1answer
42 views

Token Bucket context manager for rate limiting async calls

I've written a class that implements something akin to the token bucket algorithm so that I may rate limit aysnc HTTP requests made from my application. The code works but I'm still not sure if it ...
6
votes
1answer
127 views

Java objects for a network sniffer program

I'm working on a network sniffer program, whose structure uses 3 main classes: Frame Class - One per monitored frame, holds reference to all the other sub frames Parse Class - Holds the hex value of ...
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
1answer
41 views

Network programming - asynchronous, single-threaded, nickname-only chat server

I am starting to learn network programming. I have implemented a very simple chat server based upon TCP, where the users only need to provide username. The assumption is that the server makes use of ...
2
votes
1answer
96 views

Script to get available IP automatically

Recently I made a script to get available IP automatically. I was woundering if anyone can give me tips on how to make this code look better, preferably in a class and OOP. I'm gonna show the code to ...
5
votes
2answers
206 views

CloudFlare Dynamic DNS Update Script in Python 3

I have a computer that roams, but needs to have an FQDN attached to it for certain reasons such as email system integrations or testing email via a testing SMTP server that requires valid FQDNs and ...
5
votes
1answer
78 views

Streaming Messages to multiple Clients

I wrote a server-client application in Python where the server sends a never-ending stream of messages to connecting clients. I was in need for such an architecture since I want to retrieve and ...
2
votes
2answers
128 views

Simple subnet calculator and parser

I have started to learn Java for the past 20 days with no prior coding/comp science experience. My brother gave me an idea to make a subnet calc/ping tool to enhance my knowledge and mentored through ...
7
votes
1answer
997 views

Log probe requests of WiFi devices

I developed a program that collects probe requests from WiFi devices. It already works but I think that a programmer can improve it. ...
4
votes
1answer
50 views

Send / receive wrapper for System.Net.Sockets - follow-up

I recently posted a question about improving thread and socket safety in my NetworkEndpoint class. previous post I have implemented the changes suggested in the answer I got there. When I asked for a ...
6
votes
1answer
98 views

Send / receive wrapper for System.Net.Sockets

The following NetworkEndpoint class serves as a simple send / receive interface for either side of a network connection (client or server) when provided with a ...
2
votes
1answer
90 views

C# Async/Await networking server

I made a simple async networking server and I'd like to get some input on the code, whether things can be done better and whether the code is stable (able to hold more than 1000 connections without ...
7
votes
1answer
248 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-...
22
votes
1answer
17k views

UDP Network server/client for gaming using boost.asio

I've designed those classes for use in a multiplayer game with possibly very high number of clients for one server. Is this implementation good, or is there something obvious I overlooked or something ...
5
votes
1answer
67 views

Enum for handling network request errors in Swift

I'm working on a new API written in Swift 5 and I wanted to play with the new Result. I wanted to know what you guys think about this syntax: ...
3
votes
1answer
79 views

API for multiple printer attributes [closed]

I have network printers which have different attributes (e.g. supported network protocols, languages, status, print modes). ...
10
votes
2answers
7k views

Simple IRC Bot in C#

This was a simple IRC bot I threw together a long time ago, found recently, and was curious as to if there were any kind of significant improvements that could be made. ...
8
votes
1answer
803 views

TCP client and server API

I made a server and client API for TCP connection. It is intended to shorten the work you need to do to prepare the server and client. It's separated into 3 projects - ...
7
votes
1answer
316 views

Python scanner for the first free port in a range

I have a distributed application (YARN), which runs a WebApp. This application use a default port to start (8008), before I start I need to check if port is in use. A container may run in the same ...
1
vote
1answer
42 views

Page download with reattempts in Scala

I wrote the following code to deal with possible network problems. ...
2
votes
0answers
83 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
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 ...
4
votes
0answers
244 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 ...
3
votes
1answer
2k views

Desktop sharing project

I've been developing a small screen sharing project for the last months, it's a desktop application, pct protocol based. I'm going to show the logic and the code and I hope to get reviews. I would ...
5
votes
1answer
3k views

A simple NAT library

I've created a simple NAT library, with four essential functions: Find the UNPN device (the router in my case). Get the external IP address. Add a port forwarding entry. Delete a port forwarding ...
4
votes
1answer
174 views

Looping through multiple regex efficiently

I'm writing a program that adds all network interfaces with multiple parameters to a list. I have written the following code, which should work out of the box on any Linux system with Python and ...
1
vote
1answer
186 views

C++ game server

I'm writing a server for an MMO game using boost::asio. I would like to know, are there any design or other issues in my code? And what should I improve in it? Thanks in advance. BaseServer.h: ...
5
votes
2answers
3k views

Add and enable/disable Windows Firewall rules with Python

I have this following module using for adding and enabling/disabling Windows Firewall rules using Python. I currently use subprocess.call to execute the ...
2
votes
1answer
73 views

Java League of Legends ping checker

I'm still a freshman and this one of my first projects I made using Java and Swing. The program is a simple League of Legends multi-threaded ping checker that pings the server 10 times to get an ...
2
votes
1answer
169 views

PyCat: a netcat implementation in Python3.x v2

This is a follow up question from this question Intro netcat is an all-round tool used with many applicable features My last try felt a bit rushed, and should've improved before posting here. But ...
7
votes
2answers
158 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
75 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 ...
1
vote
0answers
357 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 ...
14
votes
1answer
4k 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 ...
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
2answers
149 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 ...
1
vote
0answers
44 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
1k 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 ...
5
votes
2answers
5k views

Get network interfaces on Linux

I wrote this in order to get a list of network interfaces on Linux. In the past, I have used publicly available methods from, say, ActiveState, which uses ioctl and was annoying to get working under ...
2
votes
4answers
2k 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
53 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 ...
0
votes
2answers
300 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. ...
5
votes
1answer
9k views

Python internet speed testing

I understand there are a few similar tools available for testing speed but that's not what I'm looking for. I'm looking at seeing how long it takes to request a site's HTML. However, I'm getting ...
3
votes
1answer
113 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 ...
3
votes
1answer
213 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 ...
7
votes
2answers
666 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
545 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 ...