Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodTelnetDLX
- Methods
- Properties
- Authentication
- AutoSize
- BackColor
- BackLog
- BindIP
- BindPort
- Blocking
- BorderVisible
- Certificate
- CharEncoding
- Column
- Columns
- ColWidth
- Command
- ContextMenu
- CursorHeight
- DataOut
- DataReady
- Enabled
- ErrorText
- ExitSignal
- ExitStatus
- Font
- ForeColor
- HandleSysKeys
- Hostname
- hWnd
- KeepAlives
- Language
- LastError
- LocalCertBag
- Login
- MousePointer
- MouseWheel
- MyHostname
- MyIP
- Notification
- Password
- Picture
- Port
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RecordMode
- RemoteIdentification
- Row
- RowHeight
- Rows
- ScrollBars
- ScrollX
- ScrollY
- SecureMethod
- SelectedText
- ShowCursor
- Socket
- SpecialKeyFocus
- State
- StateText
- StripANSI
- StripColors
- TabStop
- TelnetOption
- TerminalEmulation
- TerminalType
- Text
- Timeout
- TranslateSpecial
- UseIPv6
- Version
- Events
- IwodTelnetNotify
- wodTelnetDLX
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Receive method
Receives data from server.
Type
VariantSyntax
- Basic
object.Receive ([Count], [Type])
The Receive(object,Count,Type) syntax has these parts:
The Receive(object,Count,Type) syntax has these parts:
object | An expression evaluating to an object of type wodTelnetDLX |
Count | Optional. A Variant value. Total number of bytes you want to receive. |
Type | Optional. A Variant value. Determines type of data you want to receive. |
Remarks
Receive method is used to get data received from server, and store it to your program. It can be used only after Received event is fired (in blocking mode it can be used at any time). Received event will provide information about total number of bytes received and waiting to be read by your program. You can use that value for Count parameter.Type parameter should be vbString (8) which means that returned type will be string, or else it should be vbByte (17) or vbArray (8192) which means returned data should be byte array. Depending on your choice, you should store it to appropriate variable.
If no parameters are specified, Receive method will returned everything received from server, as string type data.
In blocking mode, Receive method will block until specified amount of data arrives, or until Timeout expires. If timeout expires, you will get an error, but you will still be able to send new data to the server because connection will not be terminated.