So_sndbuf
So_sndbuf
So_sndbuf
So_sndbuf
So_sndbuf
So_sndbuf So_sndbuf So_sndbuf So_sndbuf So_sndbuf So_sndbuf So_sndbuf So_sndbuf
So_sndbuf So_sndbuf
So_sndbuf
Go Back  Xtreme Visual Basic Talk > > > So_sndbuf


Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2011, 09:48 PM
WFreeman WFreeman is offline
Newcomer
 
Join Date: Aug 2011
Posts: 3
Default So_sndbuf ?!!


Hi guys

I used Function

Dim lngBuffer As Long, lResult As Long

lngBuffer = 65535 ' MY receive buffer size

lResult = setsockopt(Winsock1.SocketHandle, SOL_SOCKET, SO_SNDBUF, lngBuffer, 4)


This well works

Question:

How do I use more Buffer, such as 200K 300K And more ?

such as

Dim lngBuffer As Long, lResult As Long

lngBuffer = 200000 ' MY receive buffer size

lResult = setsockopt(Winsock1.SocketHandle, SOL_SOCKET, SO_SNDBUF, lngBuffer, 4)


when I use 200K I got 65535

Last edited by WFreeman; 08-30-2011 at 09:53 PM.
Reply With Quote
  #2  
Old 08-31-2011, 04:32 AM
dilettante's Avatar
dilettanteSo_sndbuf dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,520
Default

I have no clue what you hope to achieve.

The socket buffers are non-paged pool memory, so increasing them beyond the default 8KB requires a compelling case. The 64KB limit is there for a reason. The Winsock control adds buffering in front of that, making an increase in socket buffer space almost pointless anyway.


If you are experiencing performance problems the first place to start is your application logic. Almost nobody requests larger buffers.
Reply With Quote
  #3  
Old 08-31-2011, 05:54 AM
WFreeman WFreeman is offline
Newcomer
 
Join Date: Aug 2011
Posts: 3
Default

Thanks a response
I have a 300K JPG images I want to send it
I just want to know
Can I send more than 64 k in one package? or No and if yes how

thank you
Reply With Quote
  #4  
Old 08-31-2011, 06:14 AM
dilettante's Avatar
dilettanteSo_sndbuf dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,520
Default

Yes, just send it.
Reply With Quote
  #5  
Old 09-03-2011, 07:16 AM
WFreeman WFreeman is offline
Newcomer
 
Join Date: Aug 2011
Posts: 3
Default

Thank you
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
So_sndbuf
So_sndbuf
So_sndbuf So_sndbuf
So_sndbuf
So_sndbuf
So_sndbuf So_sndbuf So_sndbuf So_sndbuf So_sndbuf So_sndbuf So_sndbuf
So_sndbuf
So_sndbuf
 
So_sndbuf
So_sndbuf
 
-->