Difference between revisions of "TWSocket.Proto"

From Overbyte
Jump to navigation Jump to search
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 ==

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

How to