PC Review


Reply
Thread Tools Rate Thread

Re: Cannot receive data across socket connection by .NET app

 
 
Mike Blake-Knox
Guest
Posts: n/a
 
      4th Sep 2005
In article <00D67DC4-93ED-4668-8210-(E-Mail Removed)>, Subu Anantharam
wrote:
> I have a .NET app that connects to a third-party server on a socket and sends
> data. This works with a test server on the local network, but does not work
> across the frame connection to the third-party server. They see a connection,
> but never see any data coming across.
>

Have you tried capturing the data with something like Ethereal to see what's
actually being sent? It's quite common for TCP "messages" to be delivered in
pieces in a WAN environment. That often causes problems in the application code
dealing with the socket.

Why aren't you using the .NET framework networking classes?

Hope this helps.

Mike

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3VidSBBbmFudGhhcmFt?=
Guest
Posts: n/a
 
      6th Sep 2005
Ethereal shows the data going out. I have done this using System.Net.Sockets.
When I use the .NET classes, the third-party server sees a connection, but no
data. From a pure Win32 app, they see the data as well.
Ethereal shows the connection being made and an ack from the server. Then
the data goes, but never gets acknowledged. So there is a TCP retransmission.
From the server side, they see the connection, but never see any data coming
through.

Thanks
Subu

Mike Blake-Knox" wrote:

> Have you tried capturing the data with something like Ethereal to see what's
> actually being sent? It's quite common for TCP "messages" to be delivered in
> pieces in a WAN environment. That often causes problems in the application code
> dealing with the socket.
>
> Why aren't you using the .NET framework networking classes?
>
> Hope this helps.
>
> Mike
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to receive data from .NET socket into VB6 winsock ? cadriansyah@gmail.com Microsoft VB .NET 2 8th Sep 2006 08:17 AM
Cannot receive data sent across socket connection by .NET app =?Utf-8?B?U3VidSBBbmFudGhhcmFt?= Microsoft C# .NET 1 6th Sep 2005 04:27 PM
Socket.Receive Issue - not returning all data TacoGod Microsoft VB .NET 3 18th Mar 2005 03:50 PM
strange problems with Socket.Send/Socket.Receive Amadej Microsoft C# .NET 1 9th Aug 2004 01:01 PM
Send/Receive XML Data as Byte[] through socket between java,C# pei_world Microsoft C# .NET 0 21st Mar 2004 07:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 PM.