Networking is associated with creating and managing networks as well as adding network connectivity to a (set of) programs.
-5
votes
0answers
15 views
Reroute from one IP to another on windows [on hold]
There is this customer that asked me to put the DB my software uses on a local machine instead of on the cloud like other customers. This was a long time ago, he is back at my hometown.
He recently ...
3
votes
0answers
70 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 ...
4
votes
4answers
28 views
Nagios check to see if a certain IP appears in a trace route
I needed a test to know which firewall in out HA environment was currently active. We have a webFilter connected to our "primary" so if the firewall fails over the webfilter is taking out of path and ...
1
vote
0answers
50 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
1answer
76 views
Implementation of an asynchronous UDP server Listener
I have written this code in C# and have tested this code to ensure it works well. Any other suggestions for this code would be appreciated as I have a number of users who are sending data on this port....
4
votes
0answers
35 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 ...
4
votes
3answers
92 views
Simple wrapper for member function pointers with known signature
I always wanted to know how to pass member functions as arguments, and then I stumbled across templates that could automatically deduce types, and so I rejoiced! This is used in a Publisher-Subscriber ...
4
votes
1answer
64 views
Providing a simple test server for protocol testing
For an outsourced job (implementation of a network client) I will provide a simple server for protocol-testing. This is the code.
Do you consider this code readable/ comprehensible?
...
3
votes
2answers
37 views
Python 'wrapper' around `dig` for easier TSIG signing of queries
I wrote this Python script as a utility script for me. It's something that could be achieved in a simple shell script or alias, but it wasn't 'verbose' enough for me in that format, or customizable.
...
3
votes
0answers
115 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 (...
8
votes
2answers
341 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 made.
...
2
votes
0answers
161 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 ...
3
votes
1answer
187 views
Boost::Asio server
This is my first time trying to do anything proper in Boost::Asio, so I would love if someone could look at it and tell me if it makes sense. It's based on examples ...
1
vote
1answer
372 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 sites HTML. However, I'm getting ...
4
votes
1answer
146 views
Base activity for handling network state changes in Android
I had the need in one of my activies to handle displaying a message to the user when the network disconnected, and then reload the data for a RecyclerView adapter ...
7
votes
1answer
149 views
Array view adaptor class for static polymorphism over network header parsing
Some context: I have some existing code to populate network header structs from istreams. A motivating excerpt:
...
4
votes
2answers
63 views
Bash script for setting up a LAN to WLAN router
I wrote a bash script for the Raspberry Pi 3 (Raspbian) which has the main task of setting up a LAN to WLAN router. In addition it makes some things nicer for the intended users who have Windows ...
3
votes
1answer
135 views
Client/Server, Asynchronous ping-pong exchange
I'm mainly wondering about whether or not I have used the (TAP) async/await pattern correctly. I get a bunch of these warnings, "Because this call is not awaited, execution of the current method ...
2
votes
1answer
151 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 ...
6
votes
2answers
314 views
Internet Speed Calculator
This program calculates up and downspeed of a given connection for as long as it is running.
...
2
votes
2answers
78 views
Network App - Reading, Writing, Synchronization
I'm writing a tiny networking library for learning purposes and personal use and I'm not sure if my approach to handling reading and writing exceptions and synchronization is correct. Feel free to ...
7
votes
1answer
161 views
Robust websocket server for use by a game running on node
This code is a server for websocket connections, it handles the low level stuff and delegates incoming messages to handler objects. I wanted performance to win in any trade off against maintenance ...
8
votes
1answer
81 views
TCPListener server to discover clients on a network
I am currently writing a program to sync files (music, photos, etc) from my PC to an Android device. In order to do this, I have 2 application: one that is running on my PC, and one that shall be ...
10
votes
3answers
254 views
Structure to ByteArray Extension
I have a need to turn various structures into byte arrays to be sent over serial port to another machine. I created generic extensions to turn any structure into a byte array and from a byte array ...
3
votes
1answer
86 views
C++ getaddrinfo()/addrinfo wrapper (rewrite)
As suggested by @Dannnno on my original post, I am posting my partially rewritten getaddrinfo() (and now addrinfo) wrapper for ...
6
votes
2answers
136 views
C++ getaddrinfo() wrapper
EDIT: New version can be found here: C++ getaddrinfo()/addrinfo wrapper (rewrite)
I'm a C++ novice, but an experienced Python and C programmer. I decided to code a C++ wrapper around ...
3
votes
0answers
74 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 ...
4
votes
1answer
74 views
Buffer for TCP data
For an assignment (not school), I was supposed to make a "web browser" using Scapy.
While storing the response, I initially thought of
...
4
votes
2answers
80 views
Simulating a random packet routing algorithm and printing packet statistics in Java
I have this short program for simulating a random packet routing algorithm:
Packet.java
...
8
votes
1answer
119 views
Wireless Rickroll using Arduino
This is a script I made for the ESP8266 that uses the Wi-Fi chip and creates a new Access Point every 5 seconds in order to display a message on WiFi lists on nearby devices that looks like this:
The ...
4
votes
0answers
450 views
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
2answers
188 views
Python 3 NetScanner Daemon
I’m pretty new to programming and python in particular. This is a simple ICMP/TCP scanner that dumps output to a terminal and/or csv file. My goal was to make a daemon that could do simple scanning ...
1
vote
1answer
201 views
TicTacToe Telnet server in Python
The code below works. The timings are as close as I can get to the system not packing out.
Basically telnet to a server to play tic-tac-toe. Automated it. Bottom left is 1, middle left is 2, middle ...
3
votes
0answers
62 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 ...
1
vote
1answer
46 views
Store and output hard-coded relationships among hosts
The following code has begun to smell, but I have not yet decided with what to replace it, other than, obviously, a database.
I made a very unsatisfactory workaround for my attempt to make ...
1
vote
2answers
121 views
NetBuffer - buffer specialized for socket read / write
This class is for fast and small footprint buffering made specially for network I/O. It is similar to so-called circular buffers, but is not circular.
...
4
votes
0answers
254 views
ICMP ping program in Go
I've just written a ping application in Go. I'm proud of the logic, but I want some help to refactor it. The program has too much code in main, and pulling ...
5
votes
2answers
109 views
Port pinger command line tool
Checking if some port is up on the network is a very common task when working with remote services. A common way to check is using telnet, but I have two practical ...
1
vote
0answers
60 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 ...
5
votes
1answer
317 views
Game Networking between 2 players
I'm making a game and I want to establish a network connection between 2 players through a server(so the players are clients).
So far all I have is:
...
5
votes
1answer
35 views
Fetch data from co-processor on network in background
My code communicates with a Raspberry Pi (with a static IP address) running on a network. The client sends a signal to the Pi, and the Pi sends back a double (encoded as a string) with the angle ...
1
vote
1answer
349 views
Python implementation of Netcat, new design
I've made a simple netcat in Python and would appreciate any advice/opinions of how I've implemented it.
test.py:
...
0
votes
1answer
67 views
3
votes
1answer
217 views
Python implementation of netcat
I'm trying to write a simple python script that acts like the nc program (netcat). I've got it working on OSX (the client that is) by testing against a netcat server, but I'm unsure about the way I've ...
9
votes
1answer
140 views
Powershell Script for setting DHCP reservation description & host value
I'm new to Powershell scripting and trying to write a script that will go through printer queues on a print server, get the print queue's port address, then compare the print queues port address to ...
4
votes
2answers
94 views
Terminal Chat Room
Summary
I have written a pair of Perl scripts that form a UDP chat room allowing users to send messages over the internet with RSA encryption, making the messages imune to MITM attacks. The scripts ...
3
votes
1answer
2k views
Execute commands over Telnet, logging to a file
I have made some code that will login to a device and send all your additional commands. It also logs the commands and the returned values to a file on the local system.
Hope somebody can tell me if ...
3
votes
1answer
77 views
Minimal, Low-level Telnet API
I've started Python some days ago and wrote a small Telnet implementation according to RFC 854 and RFC 5198. It is pretty low-level and sending messages directly isn't even supported. The highest ...
2
votes
2answers
78 views
Linux C Port Knock Implementation
Compile with: gcc -std=gnu11 -o "portknock" "portknock.c" -lpcap
I did this as a learning experience, and it actually ended up being something useful. I made a ...
1
vote
1answer
131 views
Server client for distributed system
This is the code I am using for a distributed system. The code will be used to allow the server to send parts of a (really big) document which will be processed by the connected clients. Please tell ...