Questions tagged [socketasynceventargs]

The SocketAsyncEventArgs class of the .Net framework is part of a set of enhancements to the System.Net.Sockets.Socket class that provide an alternative asynchronous pattern that can be used by specialized high-performance socket applications.

The SocketAsyncEventArgs class of is part of a set of enhancements to the System.Net.Sockets.Socket class that provide an alternative asynchronous pattern that can be used by specialized high-performance socket applications.

The main feature of these enhancements is the avoidance of the repeated allocation and synchronization of objects during high-volume asynchronous socket I/O.

54 questions
0
votes
1 answer

C# SocketAsyncEventArgs Issue on Windows Server 2003

I haven't been able to find much on this topic, but recently I've been implementing a socket server using the SocketAsyncEventArgs objects. I followed the example from: Code Project Example I modified the data handling classes to fit my needs, and…
Chris Fischer
  • 161
  • 10
0
votes
1 answer

How to do async udp networking right?

As many others here on SO I'm trying to create a networking library. The requirements basically look like this: work asynchronously and get ready for real-time applications (I have FPS games in mind) use UDP and set up a thin protocol layer on top…
HaMster
  • 533
  • 1
  • 6
  • 17
0
votes
1 answer

Sockets Queue Issue

hello all i have this issue , and i am stuck with it so any help will be greatly appreciated i have to build a socket chat (client Server) module and i have done almost 80% of the work but now i am stuck , Scenario is that i have a server app and…
Adils Adils
  • 241
  • 1
  • 12
0
votes
1 answer

Why does my TCP connection seem to lose packets in Server side?

I am now writing a tiny framework based on SocketAsyncEventArgs , this class is created based on IOCP , which is much more efficient than APM mode. but here, I got some problems when running test. here is the server code: using System; using…
CharlieShi
  • 888
  • 3
  • 17
  • 43
0
votes
1 answer

Why e.AcceptSocket.ReceiveAsync alway be true

I used SocketAsyncEventArgs to build a tiny Socket Server side. but encountering some problems, when I accepted the client socket, then I tried to use e.AcceptSocket.ReceiveAsync to receive client side info, but I don't know why it always show True…
CharlieShi
  • 888
  • 3
  • 17
  • 43
0
votes
1 answer

receving large file using Windows Phone socket

I am working on sendig file from desktop application to windows phone application using socket. I have developed desktop socket server app and windows phone app (socket client), both are working well with file less than 1MB means i can trasfer file…
0
votes
1 answer

UDP empty buffer ReceiveAsync

I used SocketClient.cs from this thread and very similar from msdn. Can somebody tell me why buffer is empty after packets are received? I have host aplication on windows 8, and then i send from Phone packet with some kind of information. Then host…
Shepherd
  • 33
  • 1
  • 5
0
votes
0 answers

Client send RST after 3way handshake when server listen on 80, change a port it is ok

I write a customized HTTP server based on SocketAsyncEventArgs (C#) instead of commercial software. When the server is listening on Port 8080/12345... it is ok. But only on Port 80 it appears like this when the browser launching a connection with…
0
votes
4 answers

How to get the full message and not just a part of it via asynchronous connection

I've implemented this C# client which communicate with asynchronous connection to another server I've created in Java. This is the client: public class NetworkTransaction { private GenericRequest request; private const string serverName =…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
1 2 3
4