|
I managed to get to the box - here is the code : Public Sub SendData(ByVal data As String) Try Dim BeginTime As DateTime = Now Dim writer As New IO.StreamWriter(Client.GetStream) Dim FilePath as String = InitLoadProperties.TodaysDate + "_timer.txt" LogIT(" Begin SendData: [" + data.Substring(20, 20) + "] ", FilePath) writer.Write(data) writer.Flush() LogIT(" End SendData - Time Difference: " + DateDiff(DateInterval.Second, BeginTime, Now).ToString + " Seconds", FilePath) Catch ex As Exception HandleException(ex) End Try End Sub Thanks! Rick DuVall Systems Manager Dealer's Auto Auction of Okc 1028 S. Portland Oklahoma City, OK 73108 (405) 947-2886 rick@xxxxxxxxxx -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Walden H. Leverich Sent: Thursday, May 04, 2006 2:20 PM To: Midrange Systems Technical Discussion Subject: RE: tcp/ip socket slowdown Rick, What's the .NET code look like (can you post the snippet). Are you using raw Socket objects, or a TcpClient on top of that? Also, does the timer really start right before you do the send() or does it include the time to build the string to send? When I hear about long run times and strings I always think that someone might need to use a StringBuilder where they have a string since strings are immutable. -Walden -- Walden H Leverich III Tech Software (516) 627-3800 x3051 WaldenL@xxxxxxxxxxxxxxx http://www.TechSoftInc.com Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.