-
Dec 12th, 2011, 01:03 PM
#81
Lively Member
Re: VB - How to send a file using the Winsock control
So it means increasing the packet size won't increase the upload/download speed?
I have one more problem please,
you implemented stuff like speed, time remaining and bytes sent for sender side, but not in the receiver side which i can't figure out.
Can you please help me with this. Thanks Again
Here is the code from the sender side
Code:
Private Sub tmrCalcSpeed_Timer()
Static PrevSent As Long
Dim BSentPerSec As Long, DataSent As Long, DataLen As Long
Dim SecondsLeft As Single
If iFileNum > 0 Then
DataSent = Loc(iFileNum)
DataLen = LOF(iFileNum)
BSentPerSec = DataSent - PrevSent
PrevSent = DataSent
SecondsLeft = (CSng(DataLen) - CSng(DataSent)) / CSng(BSentPerSec)
Else
PrevSent = 0
End If
lblSendSpeed.Caption = Format(DataSent / 1024#, "###,###,##0.00") & " KBytes Sent, " & _
Format(CDbl(BSentPerSec) / 1024#, "#0.00") & " Kb/Sec, " & _
"Time left: " & Format(SecondsLeft \ 3600, "00") & ":" & Format(SecondsLeft \ 60, "00") & ":" & Format(SecondsLeft Mod 60, "00")
End Sub
How i can change it to work with the receiver side?
-
Feb 25th, 2012, 01:57 AM
#82
New Member
Re: VB - How to send a file using the Winsock control
If many person send a similar file we see Error word in the program .
How can correct this action?
Thanks.
-
Feb 27th, 2012, 12:12 AM
#83
New Member
Re: VB - How to send a file using the Winsock control
hai all can anybody suggest me to "how to get the data in packet by packet format instead of whole stream " plz i hav to submit project soon
-
Mar 13th, 2012, 11:27 PM
#84
New Member
Re: VB - How to send a file using the Winsock control
hai sir this ramu i hav to read the data at winsock reciever BYTE by BYTE instead of STREAM of data(packet by packet) for that i m using "binary read write mode" but it is not working after sometime it showing the error "DIVISION BY ZERO" problem please help me sir..............
-
Oct 7th, 2014, 02:54 AM
#85
New Member
Re: VB - How to send a file using the Winsock control
Originally Posted by leon100243
why....?
Please help me~
I am trying to achieve a similar application.I am not able to find the codes related to this.Will you be able to help me.Thank you
-
Jan 10th, 2015, 02:54 PM
#86
Member
Re: VB - How to send a file using the Winsock control
thanks for your project
but, i have a question, can i know how much data has been passed in winsock? (in MB or kb)??
thanks b4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|