Re: Is there any MVP in this group,who can solve my problem or have any suggestions.
From: Jim Carlock (anonymous_at_10.10.com)
Date: 02/20/04
- Next message: Jim Carlock: "Re: Run-time error '453'"
- Previous message: scag: "send and exe file parameters"
- In reply to: Amit Srivastava: "Re: Is there any MVP in this group,who can solve my problem or have any suggestions."
- Next in thread: Amit Srivastava: "Re: Is there any MVP in this group,who can solve my problem or have any suggestions."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Feb 2004 14:45:36 -0500
I'm no MVP.
Not yet anyways.
My suggestion would be to create a header type, make it a linked list.
Public Type typUDP_Packet
miIndex As Long
miPrevious As Long
miNext As Long
miSize As Long
sData As String
End Type
If you want real control, set the sData type as a fixed array of bytes.
miIndex is the relative index for reassembly
miPrevious would be the previous packet number in the sequence
miNext would be the next packet in the sequence
miSize could be one of two things, the length of the data if using bytes
or the length of the packet if using variable length strengths.
This provides the following, you can make all your packets under 4K
in size. Anything bigger, tends to be broken up. Makes it easy to
change the constant when you can send 2GB packets. <g>
I've assumed UDP, because it's a lot faster and it leaves it up to the
end users application to ensure the packets are reordered and verified.
You could also put CRC numbers if you want to assume control and
use UDP.
TCP on the other hands establishes a connection, upholds the connection,
is slower, and but has its own guarantees for the transmission of things.
Typically what happens when a UDP packet goes out, if it doesn't reach
it's destination, you'll never know unless you code to ensure the packet
deliveries.
Hope that helps.
-- Jim Carlock http://www.microcosmotalk.com/ Post replies to the newsgroup. "Amit Srivastava" <amit_sri2002@hotmail.com> wrote in message news:OH9E4W99DHA.4020@TK2MSFTNGP09.phx.gbl... HI All, Thanks to all ,for particiapting in my post.That doesn't matter who is going to give me solution for my problem. I specifically wrote MVP,becasue i need quick solution and as well as they are active memebers. Yes,i know MVP is a award for those who invested there valuable time to these groups for helping others like me.I respect to all the MVP's and non-MVPs memebers, those who are helping others,so please don't mind ..........and forgive me if i heart your feelings.. Basically,i already done few things,which are suggested by Bob,But little bit different. I have attached one "Character" for identifying each set of data.Let say "E,0#0#0#0" and so most of time this will be like "E,0#0#0#0E,1#1#1#1E,2#2#2#2...." in my client side .Now i have to split these values for getting all the data in proper manner.This method solved my problem,but isn't effective. My next question is that,how can we transmit real time data without using these techniques.Is there any way,through which can give me wise solution rather that using winsock server and client explicitly. In short i am trying to create stock exchange client type application.Which will show real time data and will run effectivly. Thanks in advance, "Amit Srivastava" <amit_sri2002@hotmail.com> wrote in message news:%23vS4yk69DHA.1388@TK2MSFTNGP09.phx.gbl... > Hi All MVP's, > > I have created one simple server and client through winsock control. > My server is sending real time data to all the connected clients. > Problem is that,server is sending data in specific format in every > miliseconds or in seconds. > when i am getting data in dataarriavl Event,i got so many values same time. > sometimes i got single formated value and sometimes i got lots of values. > > Like "##,abc,##,##" this is my data format which i need to send it to all my > clients in every millisecond.And when i got this in client side i am getting > this like "##,abc,##,####,bdf,##,####,ebc,##,####,vfc,##,##". > > I don't want to use any confirmation for each time,i just want to send data > to client ,without any delay and single formatd value only. > > > Is there any way to flush socket stream,before sending next value? > I hope any expert will give me solution within 5 mins. > > thanks in advance. > > Amit > > >
- Next message: Jim Carlock: "Re: Run-time error '453'"
- Previous message: scag: "send and exe file parameters"
- In reply to: Amit Srivastava: "Re: Is there any MVP in this group,who can solve my problem or have any suggestions."
- Next in thread: Amit Srivastava: "Re: Is there any MVP in this group,who can solve my problem or have any suggestions."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|