TWSocket.Proto

From Overbyte
Revision as of 20:37, 1 July 2010 by Markus.humm (talk | contribs) (→‎Best practices)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Main page -> ICS component reference -> TWSocket -> Proto

Definition

property Proto: String;

Description

Proto defines the protocol to be used by the socket. The following protocols are available:

  • TCP - a connection oriented protocol with automatic retransmission of lost packets (at least to a certein degree)
  • UDP - a fast and connectionless protocol but without retransmission of lost packets and packets may be dropped if network load is high. The overhead is much less than with TCP so it is suited for real time audio/video transmission
  • RAW - socket without overlaying (UDP/TCP) protocol. Warning: using RAW sockets requires administrator privileges in Windows 7 (exception: ping which is also based on raw sockets internally)

Example

Best practices

  • Avoid using RAW sockets where possible, as they require administrator privileges in newer Windows versions

How to