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

2
votes
0answers
13 views

Is this good way to detect socket disconnect in .net

First off, I know there are other solutions and practices but I'm referring to MS proposed code from .NET documentation. It goes like this: client.Connect(anEndPoint); bool blockingState = ...
2
votes
0answers
73 views

Proper cleanup in multithreaded client/server code

For a university project I'm trying to build a system that has a general architecture of: Client app <=====> Client library < - - > Server library <=====> Server app I'm trying to make the ...
0
votes
2answers
207 views

C# Console Chat Server - Async/Await, TcpClient/TcpListener, NetworkStream (async)

Just looking for feedback on correctness of my understanding of async/await. Curious about the Task.Run inside of the StartReceive() method. Resharper (or maybe just the compiler) warns against ...
2
votes
4answers
190 views

if-elseif chain. Is there a better pattern?

I'm working on a TCP Server using .NET and the following code is my first attempt to process the received data (from the socket) to create a packet to deliver. Basically, the packet has a header (7 ...
0
votes
1answer
75 views

Stuck with Multi-Client Chat Application

I'm trying to make a MultiClient Chat Application in which the chat is implemented in the client window. I've tried server and client code for the same. I've got two problems: A. I believe the code ...
1
vote
1answer
103 views

Multi-threaded socket client for Scrolls

https://github.com/david-torres/ScrollsSocketClient from Crypto.Cipher import PKCS1_v1_5 from Crypto.PublicKey import RSA from base64 import b64encode from threading import Thread from Queue import ...
0
votes
0answers
99 views

Transmitting/Sending big packet safely using TcpClient/Socket

I am writing a TCP based client that need to send and receive data. I have used the Asynchronous Programming Model (APM) provided for Socket class by the .NET Framework. After being connected to the ...
2
votes
0answers
182 views

Reusing thread and UdpClient for sending and receiving on same port

The working and functional code below is a simplification of a real test application I've written. It acts as a client which asynchronously sends UDP data from a local endpoint and listens for an ...
2
votes
2answers
86 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 ...
0
votes
0answers
87 views

Critique my RTCPeerConnection signaling library

I created a library/npm module to handle the signaling process for RTCPeerConnection. There is still a good bit of work that needs done (error handling, dealing with users disconnecting during the ...
3
votes
2answers
1k views

TCP async socket server client communication feedback and review

I develop my first asyn tcp socket server and client program in c# and would like to review the first parts of it. I like to get some information’s about smelly code that I missed and what I could ...
1
vote
0answers
43 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 ...