Difference between revisions of "TWSocket.Proto"

From Overbyte
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
* TCP - a connection oriented protocol with automatic retransmission of lost packets (at least to a certein degree)
 
* 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
 
* 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
+
* 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 ==
 
== Example ==
  
 
== Best practices ==
 
== Best practices ==
 +
* Avoid using RAW sockets where possible, as they require administrator privileges in newer Windows versions
  
 
== How to ==
 
== How to ==

Latest revision as of 20:37, 1 July 2010

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