Programming associated with creating and managing networks as well as adding network connectivity to a (set of) programs.
11
votes
0answers
480 views
Async network programming using Reactive Extensions [migrated]
After doing some (more-or-less) "low-level" async socket programming years ago (in an Event-based Asynchronous Pattern (EAP) fashion) and recently moving "up" to a TcpListener (Asynchronous ...
1
vote
0answers
59 views
Python urllib proxy access function - Coverage of possible proxy scenarios
Several of my Python 2.7 programs need to access server tasks via our server apache instance.
The 'client' programs will run on Windows in various environments. They may be run on systems that do not ...
0
votes
1answer
78 views
TV guide program and client server with sockets
I am fairly new to Python coding, although I have been coding on and off for 30ish years. I am sure I am writing Python with too much influence from the other languages, such as REXX, VB, and some ...
3
votes
1answer
206 views
Object-oriented Linux networking library
I needed to perform network communications in my Linux C++ project. I thought that it was a good idea to operate on a higher level of abstraction than raw system calls. Also I love OO design. So I'm ...
1
vote
1answer
227 views
Qt QNetworkReply network reply timeout helper
Since Qt still does not support to set timeouts on QNetworkRequest objects I wrote this little wrapper class.
/**
Usage:
new QReplyTimeout(yourReply, msec);
When the timeout is reached the given ...
3
votes
1answer
125 views
Basic network utilisation display
I've got the following code to monitor the network usage on a network interface. I'm mainly looking for feedback on the design, but if you see any code improvements please let me know! This is also ...
1
vote
1answer
1k views
Receiving data from a network stream in c#
So was my first attempt at some network programming.
I basically have a couple clients built with c#, using System.Net.Sockets TCP connections connecting to a node server backend (first project in ...
2
votes
2answers
152 views
How is this for a “Hello World” of socket programming?
I was trying out the Beej's guide to socket Programming and wrote this. Is there anything that I am obviously doing wrong? Any potential for buffer overflows? Segmentation faults? Any possible errors ...
3
votes
1answer
184 views
lightweight packet sniffer review
This is a simple packet sniffer that turns on LEDs when there's network activity. It works by picking up filters in a configuration file and listen for activity in those filters. When there's a ...
5
votes
2answers
379 views
Better way to code download speed calcuation
I'm writing a program that downloads stuff from the internet. While the program is working fine, I want to get one critical part reviewed. I use System.Diagnostics.StopWatch object to measure the time ...
1
vote
0answers
71 views
Communication with GARMIN throught WEB (Java Socket Programming Code Review)
I am developing a WEB based GPS system and one of its functionallity is to be able to send messages and routes to GARMIN devices.
I have never been using sockets before and for some (obvious) reason ...
0
votes
0answers
81 views
Haskell network connection graceful handler
Just trying to work out some simple graceful connection handling code in Haskell to get my head around some of the IO/Networking/Threading stuff, some tips where I'm doing things poorly would be ...
2
votes
1answer
810 views
Get metadata from an Icecast radio stream
I am new to Python and not very familiar with advanced Python data structures.
I have written a function to receive data from a socket in Python and perform string manipulations on it. The basic ...
4
votes
1answer
4k views
C# Async Socket Server with Events
I have written the following code, I am quite new to C# and Sockets, so perhaps I have made some big mistakes that only more experienced eyes can detect. This is to be used in a Windows Mobile 6.1 ...
6
votes
2answers
15k views
C# Implementing a good TCP Socket Server
public partial class ServerForm : Form
{
#region Fields
private bool isServerRunning = false;
private const int CLIENT_LIMIT = 10;
private TcpListener listener;
#endregion
...
4
votes
1answer
830 views
C++ Code Review - Simple Socket class hierarchy
Lately I've been answering a few socket related questions on an other forum, they usually tended to be things like "how do i send a text file" or "how do i send a number" and I was a bit annoyed with ...
1
vote
2answers
138 views
Style and Best Practices for C99 Packetization Functions
I just spent some time putting together a simple protocol and implementation for packetizing byte streams (on GitHub here). The project is aimed at embedded systems that need a very lightweight way to ...
7
votes
4answers
463 views
Alternate form of BufferedInputStream
I was having a problem with the TCP/IP socket communications in a web app where the server that the app was talking to would occasionally send bursts of data that would overflow the low level stream ...
3
votes
1answer
12k views
Two-way communication in TCP: server-client implementation
I have written some code to establish a client and server. I have managed to get a one way communication from client to server. I have added the code below. Can someone please have a look and see it ...
1
vote
2answers
438 views
How to access a servlet in Tomcat Contanier using Java
I have a servlet deployed in a Tomcat Servlet Container in this link, http://localhost:9764/example/servlets/servlet/HelloWorldExample. I want to send a HTTP request to that servlet using Java. Just I ...
3
votes
4answers
1k views
FTP Download Function
This is an function that downloads a single file from an FTP server and saves it to disk
This is my first time doing anything with FTP, please let me know if i have missed anything.
public void ...
1
vote
1answer
1k views
Review UDP hole punching client/server [closed]
If anyone has the time and inclination to review a little UDP hole-punching code at http://basyl.co.uk/code/punch/, I would be grateful.
The code works in general, but there is a small issue ...
4
votes
1answer
478 views
Simple TCP client - memory issues
Does this snippet take too much memory? How can I let the connection opened with the function connectTo outside the forever loop?
import Control.Concurrent
import Network
import System.IO
import ...
4
votes
0answers
1k views
C# SocketAsyncEventArgs send and receive
I been working on getting the SocketAsyncEventArgs to work the way I want it to work. Now I was wondering is this going to work how it should work?
/// <summary>
/// The settings to use with ...
3
votes
2answers
5k views
Is this implementation of an Asynchronous TCP/UDP Server correct
I am trying to implement a TCP/UDP server so all I have to do is something like this:
var server = new Server(Type.UDP, "127.0.0.1", 8888);
server.OnDataRecieved += Datahandler;
server.Start();
I ...
1
vote
1answer
345 views
Multicast Socket Configuration for Pub/Sub
I have a set of components that each need to both publish and receive messages using a multicast channel. In production, any one machine could host two or more of these components with 12 or more ...