Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Maximale Buffergröße (https://www.delphipraxis.net/39168-maximale-buffergroesse.html)

SleepyMaster 29. Jan 2005 18:03


Maximale Buffergröße
 
Hi ihrs...

mal eine kurze Frage:
wie viele Bytes darf der mit WinSock.send zu verschickende Buffer maximal groß sein?

Vielen Dank
SleepyMaster

Muetze1 29. Jan 2005 18:58

Re: Maximale Buffergröße
 
Moin!

Ein Blick in die MSDN WinSocket/send() brachte folgendes zu Tage:

Zitat:

Zitat von MSDN zu WinSocket send()
The send function is used to write outgoing data on a connected socket. For message-oriented sockets, care must be taken not to exceed the maximum packet size of the underlying provider, which can be obtained by using getsockopt to retrieve the value of socket option SO_MAX_MSG_SIZE. If the data is too long to pass atomically through the underlying protocol, the error WSAEMSGSIZE is returned, and no data is transmitted.

MfG
Muetze1

SleepyMaster 29. Jan 2005 21:26

Re: Maximale Buffergröße
 
Ahhh... ok.

Vielen Dank...


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:52 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz