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
0answers
9 views

Socket Connection to a server

This is code from my android client which communicates over wifi to a small server program (not coded in java). This is my first time playing around with sockets, so I'm sure there are lots of little ...
1
vote
2answers
34 views

Program to let any user run a command

I have a script which can only be run by one specific user on a system. I need to let all users on the system have access to run that script and see the output. But there must never be more than one ...
1
vote
1answer
22 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 ...
5
votes
1answer
59 views
+50

Command line IRC client

I made this IRC client ages ago in Python, and thought I'd revisit it for Python 3.5 (I'd like to play with asyncio). Before I start, I'd like to have an overall design review about this. Known ...
1
vote
1answer
13 views

Socket.ReadPacketASync

I'm working with TCP Sockets and I've build a simple packet struct that turns it into a datagram protocol. I've created a class which returns "promise" Tasks for Packets. Packets are very simple, they ...
1
vote
2answers
23 views

Find available ports on localhost

I'm writing code to find the available ports on 127.0.0.1. I'd like it to be faster, but it's functional now. Here's my code: ...
7
votes
1answer
62 views

Server-side of a chat application

I have written a server-side and the client-side of a chat application. I would like to improve it and I am unsure about my server construct and have absolutely no idea if there is a better way to do ...
0
votes
1answer
38 views

Server / client desynchronisation of messages [closed]

I'm trying to build a game where a client gets to play against a server in a game of Tic Tac Toe. I've built the game and followed a somehow structured design of how the game is supposed to happen, ...
1
vote
0answers
24 views

ByteBuffer Performance with Java NIO2 AsynchronousChannelGroup.withFixedThreadPool

I have a socket which will be receiving more than 100 TPS, so I need the reading to be as fast as possible. In this socket, I read the info I need to build a String and check if it matches a regex. I ...
2
votes
2answers
78 views

Simple TCP client-server solution

I have implemented a simple client-server solution using Java sockets and useful classes from java.util.concurrent. The communication protocol is rather simple: ...
2
votes
0answers
42 views

N Processing connect to a single process: Socket Programming

The idea of my program is to use pthreads, semaphores, posix shared memory, and sockets to create an environment where N processes (that we will refer to as the children) can connect to a single ...
1
vote
1answer
67 views

ISO8583 encoding data fields

I just want to confirm that my ISO8583 format is correct. Example: For the data field 35, the length of the data is 36, so I put 36 before the 4842. Then all the data is inserted in a string (...
-1
votes
1answer
60 views

Server listening for program sockets

Essentially I have a server that will be listening for sockets in other programs seeking a connection: ...
1
vote
1answer
31 views

Handling incoming socket data

Below I have some code that I use to handle incoming socket data, this is not full thing but its the part I am worried about, is there any way to improve this? ...
3
votes
1answer
49 views

Simple socket manager

I just wondered if someone could review this socket class for me. ...
1
vote
1answer
105 views

Python TCP echo server

The below code is a simple TCP echo server. The folks using it claim "it is going down every now and again". Any thoughts on how this could be improved would be really appreciated, particularly if ...
2
votes
1answer
54 views

node.js game CPU usage

My friend and I are making a node.js game, and we have been testing CPU. After profiling, it was determined that this process called zlib is sucking most of the CPU/RAM. 3 clients connected to a game ...
2
votes
1answer
54 views

POP3 message downloader using state machine processor

This simple program uses a socket class I wrote, class socket, to retrieve a users pop3 emails and print to stdout. I would like feedback on the socket class and the code to download the pop3 emails. ...
2
votes
1answer
95 views

TCP server with user accounts, connection threading, and groups/permissions

This is a TCP server I am currently working on. It is accessed through telnet (I know it isn't secure, its just a project for uni). The server is programmed in Python 3. I am currently trying to ...
4
votes
1answer
107 views

Winsock GET and POST Functions

This works fine so far, but I am looking for some advice as to how to better write this. My goal is to learn and incorporate current/latest C++ practices, and become a better programmer overall. ...
5
votes
2answers
79 views

Scanning for open ports

I made what started out as a web browser but now is a scanner for open ports. I wanted to know if you think this is a realistic or a unreliable tool for port testing. I found some open ports on my ...
5
votes
1answer
1k views

Multithreaded client server socket

I have created this library mostly for a learning experience with sockets and threading. For this review, focus on socket/threading. Let me know if I properly implemented both. If you want to comment ...
13
votes
1answer
224 views

TCP Socket Wrapper

I'm trying to build a simple server software for training purpose, most likely a IRC server, but I'm not there yet. I'm currently implementing a TCP socket class, to ease the use of the C socket API. ...
1
vote
1answer
403 views

Non-blocking Unix domain socket

I've developed quickly two kinds of socket use: the first with blocking mode and the second with non-blocking mode. The sockets are Unix domain sockets. My problem is that the kernel consume a huge ...
4
votes
0answers
87 views

Simple Echo Server

I wrote this echo server in Haskell as a way to introduced myself to programming with sockets in Haskell and generally practice Haskell. The echo server has a simple purpose: accept connections from a ...
3
votes
2answers
95 views

Assessment of client-server program source code

Can you assess source code of my client-server program? I would like to get an advice about design, code security etc. Thank you very much. The program does the following: Show files in ...
6
votes
2answers
186 views

Multithreaded Network Server

I would like the following code reviewed: I am trying to create a local server which listens indefinitely and provides the latest information. The server runs another while loop which fetches ...
11
votes
2answers
81 views

Raw Text TCP Client v3

After studying and considering the reviews for this code, I began working on the code, and came up with this. It has much better error and disconnect detection, and it also resolves addresses: ...
14
votes
5answers
815 views

Raw Text TCP Client

Yesterday I posted a request for a code review. After reviewing the code and the reviews, and after some sleep, I decided I can do better. In fact I logged on with the intent of deleting the question ...
10
votes
4answers
106 views

Impromptu TCP sender/receiver

Every once in a while I need to get some random computer thing done; so I write something to do it for me. This is one of those. It needed to be able to send text to, and receive text from, a server - ...
7
votes
1answer
113 views

Python Socket Receiver

I put this together and am having some doubts to the number of connections I can make. I also doubt if I can brute force the server to serve up connections and then hang. Please take a look and tell ...
4
votes
3answers
84 views

Fetching filesystem directory listings on a server

I developed a server which takes a directory name then lists files in it and sends this list to a client. And I want that server to work with Telnet. It works but I have some questions on how I can ...
2
votes
1answer
109 views

Using C++11 move semantics to implement state pattern

I'm implementing a C++ layer on top of the sockets api of the OS (i.e. man 7 socket)1. Tcp sockets go through various states. Using the RAII principle leads to distinguishing the states: ...
5
votes
1answer
266 views

Java NIO Server Scaling

I wrote a Java NIO Echo Server and want to maximize the number of connections to the server. The problem is that when I try to connect more than 10k clients the clients get their connections refused: ...
7
votes
1answer
507 views

C Socket API Call with Swift

I have a small function in Objective-C which uses the C Socket API to check if the device has an active internet connection: ...
-2
votes
1answer
155 views

Multi client chat application

I want this code to be reviewed, please. chatServer.java ...
7
votes
2answers
609 views

TCP socket retry mechanism

I am writing a C++ client application which will send some data to server and wait for its response. Now the protocol is to wait for a specific timeout and then retry for specific times. If all goes ...
1
vote
1answer
512 views

Receiving all data comes from web in system.net.socket

I listen on a port via multi thread async socket. That port receives requests over XDomainRequest. I received the complete data each time till now but I don't trust this code because it may not work ...
1
vote
1answer
131 views

Erlang parallel server using sockets

The task was to build a simple parallel server in erlang that prints what it receives through a socket and alerts when the socket is closed. ...
-3
votes
2answers
380 views

Socket server class [closed]

I am trying to build a high performance socket server and this is what I have come up with so far. Can anyone please review my code and see if I can make any improvements on it? ...
7
votes
1answer
273 views

Simple C Port Scanner

I have been writing a Simple Port scanner in C, once I got it to work I decided I wanted to make it faster because it takes a very long time for it to get done with scanning all of the ports.Is there ...
2
votes
1answer
211 views

Listening for several connections in an async method

Is there a better way to structure a method that returns a task that queues several inbound socket connections? ...
1
vote
0answers
36 views

NodeJS socket for handling errors

It's the first time managing Mongoose by socket.io and I'm wondering if this could be a good way: ...
2
votes
1answer
65 views

My Own ThreadPool implementation

I tried to make a Server using Java with a Thread Pool. Any review is welcome: ...
4
votes
1answer
142 views

Multi-Threaded Java Server

As practice I wanted to write a Socket in Java: ...
3
votes
1answer
245 views

Adding new sockets and sessions

I am currently writing a TcpListener class where it begins a new socket and adds a new Session. I have classes called ...
3
votes
1answer
370 views

2 way communication Python socket

I'm trying to create a 2 way communication socket in python. The socket will listen for connections from the client until it gets the data formatted in string like this: 'PHONENUMBER|STATUS'. I will ...
4
votes
1answer
4k views

Creating a TCP Listener and receiving data

I am very new to network programming and I'm thinking I have probably misconstrued the creation of an appropriate TCP listener. The code I have below works perfectly, but I have a feeling it's a "hack ...
2
votes
1answer
133 views

HTTP client similar to cURL

I'm writing my own HTTP client, kinda like cURL. (I already know I'm reinventing the wheel, this is more or less getting an inside look of HTTP 1.x before 2 becomes a thing.) So far pages download ...
1
vote
0answers
338 views

Server socket implementation with Python asyncio

I want a socket server implementation with the Python asyncio library. I have this code but I don't know if it's correct. I want to implement SSL, too. I used code from the documentation example and ...