2022 Developer Survey is open! Take survey.

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
1 vote
0 answers
29 views

Multithreaded tcp server accepting two clients with task factory and graceful shutdown

as an exercise from multithreading and networking I have decided to create my own implementation of TCP server accepting connections from two clients (which is I think a pretty common case e.g. chess ...
user avatar
  • 11
3 votes
0 answers
46 views

boost-asio reverse proxy

I wrote reverse proxy using boost::asio. The idea is to send client's data to two external servers and send back response from one of them. Here is my code: ...
user avatar
4 votes
2 answers
330 views

Bash-based Port scanner (/dev/tcp)

This question is ideal in my case: Ludisposed's python-scapy-tcp-port-scan-of-subnet - At codereview stackexchange But this is not Scapy; nor Python(it might get used in the future though but that is ...
user avatar
4 votes
1 answer
68 views

Online check with retry logic and anti-flapping

I've got a network device that doesn't hold its WiFi connection brilliantly and occasionally drops off the network completely. Although there are dedicated network monitoring tools out there, I ...
user avatar
1 vote
2 answers
110 views

IPAddress Range access

I want to make this code better and easier to read. It works now but I think it can be better. When there is an Inbound request I check to see if that accessKey is setup for IP address Range that will ...
user avatar
5 votes
1 answer
181 views

Task-based TCP socket wrapper class

Recently I've been entertaining the idea of making a small encrypted chat app as a way to learn about UI, encryption and networking in C#. After some research/work, I've produced the below protocol ...
user avatar
1 vote
1 answer
42 views

simple code that tries to establish tcp handshake. Creating tun device | what ever ip packets message comes try sending valid response.checksum&TCP

So I am getting packets from TUN interface and after that processing the packet, and then try to send correct TCP handshake response message. It does handle sequence and ack sequence handling but That ...
user avatar
  • 145
7 votes
2 answers
90 views

Network utility tool

I wrote a little program in C based on some requirements: Ping every IP from a file and check the result Show, by network adapter, ONLY the IP, subnet, default gateway and DNS Check the speed between ...
user avatar
  • 269
3 votes
1 answer
249 views

Creating a Client-Side Prediction and Server Reconciliation

Preface I have been trying to find out "How to make Client-side Prediction and Server Reconciliation" from scratch with an easy-to-understand code in C#. So I decided to make my own ...
user avatar
4 votes
0 answers
67 views

Barebones DNS Client in Rust

I'm starting to learn about networking and as a project I am building a really simple DNS client in Rust. Functionality to start was just to take a command line domain argument and sending a DNS A ...
user avatar
2 votes
0 answers
36 views

Rust program to create mail.tm accounts

I have created a rust program to create https://mail.tm accounts, but I think there are things I could have done better. Are there things I can do to improve performance? Are there any unnecessary ...
user avatar
1 vote
1 answer
127 views

How to continiously read data from a NetworkStream

So I'm currently learning about networking between a client and a server and I decided to try to write my own client and server. I implemented a way of receiving data and it goes as follows.. The ...
user avatar
  • 119
1 vote
1 answer
335 views

Program to continuously check availability of internet connection c#

I have a C# program to check if a hard coded host is available and if not, waits then checks again (this is a loop in form of recursion). How can it be enhanced? ...
user avatar
1 vote
1 answer
43 views

Android APP FTP host profile class implementation

This is a follow-up question for Android APP connect to FTP server in Java. I am attempting to create a tiny FTP host manager with FTPHostProfile class and ...
user avatar
  • 3,302
1 vote
1 answer
116 views

Gather all IP addresses of a host as a vector

I have the following working code to get IPv4/v6 addresses from host names: ...
user avatar
4 votes
0 answers
533 views

Android APP connect to FTP server in Java

I am attempting to build an Android APP with the ability to connect specified FTP server in Java. The connection operation has been performed in FTPconnection class ...
user avatar
  • 3,302
2 votes
2 answers
204 views

Getting metadata from MusicBrainz service

I've written a program which does the following things: calls third-party utility to get mp3 file fingerprint asks MusicBrainz IDs from AcoustID service asks metadata from MusicBrainz for each ID I'...
user avatar
2 votes
1 answer
57 views

MAC address-based presence detection

This code integrates with dweet and freeboard to produce a dashboard display of which occupants of a house are probably at home, based on the presence or absence of their phones' MAC addresses on the ...
user avatar
4 votes
0 answers
102 views

Simple chat server in Python

I'm new to both Python and socket programming and figured setting up a simple chat server would be good practice. In addition to general critiques of the code, I have specific questions: What are the ...
user avatar
4 votes
1 answer
284 views

Boost.Asio Server and RAII

I am trying to implement a network server application in C++ using Boost.Asio. Here are the requirements I am trying to meet: The Application creates only one instance of ...
user avatar
  • 141
1 vote
1 answer
75 views

Networking library for c++ linux

...
user avatar
1 vote
1 answer
203 views

Feedback on send/recv functions for non blocking sockets in client side HTTP library

I'm working with TCP sockets in C, specifically only for client side HTTP(S) requests, and would like to get some feedback on my send and recv code. You can make some assumptions regarding my code, as ...
user avatar
  • 197
4 votes
2 answers
152 views

Simplified Windows' tracert command

I wrote a simplified versions of Windows' tracert command as an exercise and to learn about TTL in packets. It shows the path that your internet traffic will (...
user avatar
1 vote
0 answers
68 views

ARP Spoofer to Set Up MitM and DOS attacks

This code "poisons" the ARP cache of victim computers. Given the IP addresses of hosts A and B, it will trick A into thinking that you're B, and B into thinking that you're A. This means ...
user avatar
4 votes
1 answer
92 views

Assemble network packet on stack for iovec

The recurring problem to assemble a network packet out of payload, sequence number, header, and other misc. information is mostly solved either on the heap (e.g. appending to a ...
user avatar
3 votes
0 answers
206 views

Simple SYN Port Scan Using Scapy

I decided to try writing up a port scanner to develop my understanding of Scapy. Here's a timed example of its use. The first two arguments are the address and range of ports to scan: ...
user avatar
3 votes
2 answers
332 views

Build byte array from multiple different types of data for sending over a network

The following codes purpose is to generate an array of bytes that represents some user defined data. This array of bytes will later be used for sending over a network. ...
user avatar
  • 133
4 votes
0 answers
407 views

Clear-net browsing with Lynx over Tor

This project is designed to enable clear-net browsing over the Tor network with the Lynx web-browser. Currently everything seems to be functioning as intended, however, it would be most appreciated if ...
user avatar
  • 976
9 votes
3 answers
749 views

Parse string into a struct

I'm writing a C application for the Networking course at the University. Basically it's a UDP server that can receive two commands: GET key SET key value That are ...
user avatar
4 votes
2 answers
471 views

Implementation of portscanner for a host

I have tried to check whether the ports of a host from port 0 to port 1023 is open or not. Could someone please review this code and provide feedback. ...
user avatar
  • 297
2 votes
3 answers
166 views

I want to take away WebService call from UIViewController

I am using Moya to make network calls in Swift. In my ViewController I am calling the WebService and creating a model from response. ...
user avatar
  • 156
0 votes
1 answer
109 views

A common class for Client and Server [closed]

I have written this code to use TcpClient both from a client program and a server program. Can you review this source code? Kindly, take a close look at ...
user avatar
4 votes
0 answers
48 views

python network test application

I am working to a python application for some operational test on a Arista brand Network (more info here: https://gitlab.com/networkAutomation/pyateos) I am the only one doing coding in my team so I ...
user avatar
2 votes
1 answer
92 views

Serializable and extensible API implementing the Command Design Pattern

I am currently trying to implement an extensible way to create commands that can be sent to some type of executor. In my case, there would be two of them (server and client). As I posted here, I had a ...
user avatar
2 votes
1 answer
100 views

Asynchronous TCP network server with a packet system

So I'm writing a game emulator and would like some advice after finishing the networking. It is designed to accept multiple connections, and process messages from all of them. Here is just a brief ...
user avatar
  • 21
1 vote
1 answer
47 views

Java implementing task on another thread with javascript-like promise resolve-reject

Background: I have a TCP online multiplayer game server, which the player requests to log-in. However, the game server does not handle the authentication part of the login process, instead, it uses ...
user avatar
2 votes
2 answers
322 views

ICMP ping all hosts in a range

I'm creating my own little toolbox for pinging IP interfaces (for the test, only in localhost). In the future I'm thinking of piping the output to a text file. But I'd like to focus on improving the ...
user avatar
  • 153
2 votes
0 answers
19 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 ...
user avatar
3 votes
1 answer
135 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 ...
user avatar
3 votes
0 answers
47 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 ...
user avatar
3 votes
1 answer
48 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 ...
user avatar
  • 169
5 votes
1 answer
2k 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 ...
user avatar
  • 103
2 votes
2 answers
2k 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 ...
user avatar
  • 33
4 votes
1 answer
68 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 ...
user avatar
  • 103
6 votes
1 answer
223 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 ...
user avatar
  • 103
3 votes
1 answer
80 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 ...
user avatar
  • 131
6 votes
1 answer
141 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 ...
user avatar
  • 289
5 votes
1 answer
537 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: ...
user avatar
3 votes
1 answer
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). ...
user avatar
  • 173
2 votes
1 answer
145 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 ...
user avatar

1
2 3 4 5
7