Sign in to follow this  
Followers 0
twelo

TCPRecv & UDPRecv Limit

6 posts in this topic

i searched the forum before asking

i found someone told in one post for TCPRecv, it is around 17512

i did not found max char limit for UDPRecv

please clear the maximum limit of TCPRecv & UDPRecv (which will support at least windows 2000 & above all os)

Share this post


Link to post
Share on other sites



What have you tried by yourself so far, where is your code and did you read the help file about TCPRecv and UDPRecv?

Which limit would you like to be raised exactly?

Which version of AutoIt are you running?


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

i m helping my friend to make a chat program like this

http://www.autoitscript.com/forum/index.php?showtopic=107263&st=0&p=756535&hl=chat&fromsearch=1&#entry756535

above is a TCP example, myself not yet started coding because i want max chars transfer so i want to know

tcp or udp max char limits then i will choose TCP or UDP chat.

Yes i read the help file about TCPRecv and UDPRecv

I want to raise the send receive limit of UDPSend/UDPRecv or TCPSend/TCPRecv

Using autoit 3.3.2.0 but final program will compile with the latest release

Share this post


Link to post
Share on other sites

Version 3.3.2.0 is obsolete, upgrade now.

Then asking to raise "the" limit means you've hit a limit. Which was?


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

#include <GUIConstantsEx.au3>

;your IP
$Ip = "127.0.0.1"
$Port = 3000

;the other IP
$Ip2 = "127.0.0.1"
$Port2 = 3000

TCPStartUp ()
$Server = TCPListen($Ip,$Port,1)

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Chat", 625, 445, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 56, 16, 505, 265)
$Input1 = GUICtrlCreateInput("", 64, 336, 401, 21)
$Button1 = GUICtrlCreateButton("Send", 488, 336, 97, 25, 0)
$Button2 = GUICtrlCreateButton("X", 592, 0, 25, 17, 0)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            $Client2 = TCPConnect ($Ip2,$Port2)
            TCPSend ($Client2, GUICtrlRead($Input1))
            ControlClick ("","",$Edit1)
            Send("-> " & GUICtrlRead($Input1),1)
            Send(" {Enter}",0)
        Case $Button2
            Exit
    EndSwitch
    
        $Client = TCPAccept($Server)
    If $Client >= 0 Then
        Do
            $Message = TCPRecv($Client,2048)
        Until $Message <> ""
        ControlClick ("","",$Edit1)
        Send("-> " & $Message,1)
        Send(" {Enter}",0)
    EndIf
WEnd

i want to send large amount of texts so i have to know the upper limit of TCPRecv & UDPRecv

like TCPRecv($Client,2048) <- here is 2048

Share this post


Link to post
Share on other sites

This parameter is expecting an AutoIt Integer that you're free to choose. See the upper (positive) limit for that type in the help file. Isn't that "limit" enough for you that you ask it to be removed?


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0