An endpoint of a bidirectional inter-process communication flow. This often refers to a process flow over a network connection, but by no means is limited to such.

learn more… | top users | synonyms

1
vote
1answer
60 views

IP Scanner via python sockets

Please review my code for scanning active IP address . Please Suggest improvements ... ...
2
votes
0answers
43 views

TCP async client with connection lost detection and autoreconnecting [migrated]

Here is my many-years many times modified code for TCP asynchronous client. It is able to detect connection loss (thanks to using keep alive values). But now, I need to reconnect it to server ...
1
vote
0answers
44 views

WiFi peer-to-peer chat [closed]

I am currently trying to develop a WiFi peer-to-peer chat application. But I am a beginner in both Android and Java socket programming. After struggling a lot I figured out how to start the coding, so ...
6
votes
0answers
93 views

Protocol implementation, TCP, sending images through sockets (sockets, python)

I would like to ask about your opinion about my code. The idea is simple: I designed my own protocol, where client asks server about the image, and the server sends the image, following the below ...
9
votes
1answer
68 views

Implementing my own network protocol using TCP, sending images through sockets (sockets, python)

I would like to ask about your opinion about my code. The idea is simple: I designed my own protocol, where client asks server about the image, and the server sends the image, following the below ...
1
vote
1answer
74 views

Player Packet System

I have recently coded a system where an instance of class Player is created for each connected socket, once the player class has been created, in its constructor the Socket that connected starts ...
19
votes
2answers
1k views

Simple and effective port checker in C++

Intro A couple of weeks ago I finished a Python implementation of a multithreaded port checker and I wasn't quite happy with the result I've got (speed). I needed it to be faster, so I've built ...
14
votes
2answers
1k views

Python bot to answer mathematical questions for a remote server

The MSP Tech Club puts on an annual CTF, available here. I've worked on a solution but was wondering if there's a better way to write it or if I have any particular bad habits showing themselves? The ...
5
votes
1answer
99 views

C multithreaded chat client and server

I've written a TCP chat application for the command line that supports multithreading. I'm wondering whether I'm using best practices for socket programming, what other types of functionality would ...
4
votes
1answer
34 views

Let's check that domain port

Intro This simple script will allow me to check for a specific opened port on a list of domains that I own. Instead of manually doing this check, I found Python a pretty good idea for such a task. ...
2
votes
0answers
33 views

Class which encapsulates related socket streams

I have a class which encapsulates stream related objects, and I have provided the method API for doing basic manipulation on the stream read/write/close, but is this a good approach? The only benefit ...
2
votes
1answer
59 views

Receiving messages from TCP socket and processing them

I would like someone to look at my class for reading messages from a network socket. In short, the whole app should behave like a regular ping command with some additional functionalities. The point ...
3
votes
1answer
48 views
1
vote
4answers
173 views

Socket client in C using threads

I'm working on socket programming in C. I have no problem with usage the threads. This all works fine but I'm new in this area. I wrote this code in client.c but is there any misused code or something ...
2
votes
1answer
89 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
37 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 ...
3
votes
1answer
152 views

Simple TCP Listener class

This is my first winsock TCP listener ever written. I can use it for a small framework. tcp_listener.h: ...
3
votes
0answers
32 views

msysGit to Unix sockets

I wrote this small script to help porting msysGit sockets to WSL ("Bash for Windows"). I'm not a big Python programmer so any feedback would be well appreciated. By the way, I made it a public Gist ...
1
vote
1answer
38 views

Reading socket stream to parse XML, queue messages, run system cmd in thread

I've had great experience in the past getting feedback from uDev and python, but I'm dreading this attempt at C++. I have a little background in C - but absolutely none in C++ - so this code is ...
4
votes
1answer
54 views

Simple file server for GET requests

I recently made this simple server in C for Linux systems and was wanting to get another set of eyes on it for a review of the design. I am new to socket programming and used a textbook from school to ...
3
votes
1answer
238 views

TCP socket server using OpenSSL

I've written this basic TCP socket server that uses SSL. This is my first experience with sockets in C++. The client is a Qt desktop application. Code overview: Receive incoming connection. Check if ...
0
votes
1answer
139 views

Simple PacketHandler class

I can recently coded an emulation system and in this project I have a PacketHandler for each player connected to a socket server, and each player receives packets (data) from the client application. ...
3
votes
1answer
100 views

Penetration testing in an unsuitable environment

There are good penetration testing tools in the market in which we can perform various activities gather information from the hosts effectively. But those tools are not helpful always like if we are ...
3
votes
0answers
280 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 (...
3
votes
3answers
462 views

Multithreaded Client/ Server communication

This is my first network programming codes writing for a client who has the following requirement: My Server has to run 24*7*365 for multiple clients at the same time (concurrency). Their Client (...
0
votes
0answers
320 views

TCP Server using Winsock IO Completion ports model

I implemented a tcp socket server using the Microsoft IO Completion Port Model, which is basically an asynchronous model where WSAXXX function return immediately and you use a worker thread to handle ...
0
votes
0answers
180 views

Sending an image from a server to a client over a TCP socket

I only have one video stream of 30 FPS to send over a TCP socket and it's sending a lot of data through my router. Everything just lags I can't even display the image. Is there a way to improve my ...
4
votes
1answer
153 views

TCP chat room in Python

I have recently started looking into networking with Python. I saw some tutorials about the socket library so I decided to give a "live chat room" idea a go. It works (on Windows, ...
7
votes
1answer
652 views

Async TCP client/server

I'm working on a simple async TCP client server application, i'd like my network code to be reviewed. I really feel that I'm doing something wrong, especially in receiving code. Interface for client: ...
3
votes
1answer
49 views

C++ Syncronous Poll Wrapper v2

I recently asked for some feedback on my design for a syncronous wrapper around linux sockets and poll Based on the feedback, I created a new (hopefully more idiomatic) design. socket.h ...
3
votes
2answers
249 views

C++ Socket syncronous poll wrapper

Below is a simple C++ abstraction over linux sockets, and a layer of abstraction over a synchronous poll call. The goal was to exploit move semantics to allow the ...
7
votes
3answers
331 views

PlayerConnection class for Gaming Emulator

I have programmed a Gaming Emulator in C# and I have a class to handle all the connection side of things for the player, here we continuously listen for packets (each packet has a ID like a number, ...
2
votes
2answers
50 views

Termbin.com clone (commandline pastebin)

For fun I decided to write a 'real' Haskell program. The intention of the program is that it listens on a socket on a given port for input. The client can send some raw text on it and the server ...
4
votes
1answer
316 views

Custom Python 'Server Status Checker'

I've written a home-grown solution for checking the status of my servers. This is both an exercise for me in learning further about Python, but it's also critical to status-checking critical things ...
1
vote
1answer
300 views

TCP client library using Winsock WSAEventSelect in C++ - Take 2

This is my second take on creating a tcp client C++ class. The class declaration is general but the implementation is Windows only at this stage and uses the Microsoft Winsock WSAEventSelect model. ...
3
votes
1answer
281 views

TCP server implementation in .NET

I wrote a couple programs in the past that use VB6's Winsock to achieve TCP communications, but still I'm kinda new to socket programming in .NET. I needed the same functionality of the Winsock to ...
4
votes
1answer
38 views

SOXXY: a daemon stated IRC client project

This script is basically a proxy service; except it doesn't require an active client connection. In fact it expects the client connection to connect before, and disconnect after every transaction. ...
3
votes
1answer
205 views

TCP client library using Winsock WSAEventSelect in C++

One way to write a client which uses a specific protocol, eg http like in this case, is to create a base class with the basic socket handling functionality with virtual functions which can be ...
0
votes
2answers
94 views

C++ Socket Part-4

In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing. Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version4 First Article: ...
5
votes
2answers
98 views

C++ Socket Part-3

In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing. Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version3 First Article: ...
1
vote
1answer
83 views

C++ Socket Part-2

In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing. Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version2 First Article: ...
4
votes
4answers
682 views

C Socket Part-1

In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing. Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version1 First Article: ...
3
votes
1answer
74 views

A socket server that receives strings and prints them

Summary: Is my server handling every error and corner case possible? If not, what did I miss? Details I'm trying to write the most basic socket server I can, so I can learn TCP and the pitfalls of ...
2
votes
1answer
483 views

Protocol to parse packets

I coded this simple protocol but I'm sure that it can be better, this is the process: Reads incoming data Waits until payload size can be read Reads the full message Checks if there are mixed ...
3
votes
0answers
118 views

Event-driven UDP listener wrapper

I wrote this wrapper around the UdpClient,using events for new datagrams: ...
0
votes
0answers
282 views

Multithreaded client socket

This is my first time working with networks and multithreading in C, and would like to know how to make improvements. I wanted to make a client program that handles reading and writing to the server ...
3
votes
1answer
584 views

Chat server implemented using Java NIO

I am learning Java's NIO and as an exercise, I have implemented a simple chat server. I would like to ask if I am using NIO's features in the correct way. ...
-1
votes
1answer
381 views

async tcp server using async/await

Here is an async Tcp server using async/await I have written. I would be very appreciate if anyone can help to improve my code. Thank you! ...
3
votes
2answers
175 views

C++ Version of a Client/Server application

Starting to write an article about Socket Programing. So I need a simple C++ version of a client/server app. So here it is for review (Also on github) A linked question is the C version Makefile <...
4
votes
1answer
141 views

C Version of a Client/Server application

Starting to write an article about Socket Programing. So I need a simple C version of a client/server app. So here it is for review (Also on github) A linked question is the C++ version MakeFile <...