Package com.barchart.udt
Class OptionUDT<T>
java.lang.Object
com.barchart.udt.OptionUDT<T>
The Enum OptionUDT.
provide 2 names: 1) UDT original and 2) human-readble
keep code values in sync with udt.h - UDT::UDTOpt; enum starts with index 0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intstatic final OptionUDT<FactoryUDT> custom congestion control algorithm, class factorycurrent available epoll events, seeEpollUDT.Opt.codeFlight flag size (window size), bytesprivate final OptionUDT.Formatreuse an existing port or create a one.rendezvous connection mode, enabled/disabledif receiving is blocking, true/falseif sending is blocking., true/falseprotected static final org.slf4j.Loggermaximum bandwidth (bytes per second) that the connection can use.the Maximum Transfer Unit., bytesprivate StringUDT receiving buffer size limit, bytesmaximum buffer in sending queue.current available receiving buffer capacity, read only, bytesrecv() timeout.current consumed sending buffer utilization, read only, bytessend() timeout.current socket status code, seeStatusUDT.getCode(), read onlyUDP receiving buffer size limit, bytesUDP sending buffer size limit, byteswaiting for unsent data when closing.private final Class<?> UDP receiving buffer size.UDP sending buffer size.static final OptionUDT<FactoryUDT> custom congestion control algorithmcurrent available events associated with the socketFlight flag size (window size).waiting for unsent data when closing.maximum bandwidth (bytes per second) that the connection can use.the Maximum Transfer Unit.UDT receiving buffer size.size of data available for recvif receiving is blocking.recv() timeout.rendezvous connection mode.reuse an existing port or create a one.maximum buffer in sending queue.size of data in the sending bufferif sending is blocking.send() timeout.current socket state, see UDTSTATUS, read only -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOptionUDT(int code, Class<T> klaz, OptionUDT.Format format) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendSnapshot(SocketUDT socketUDT, StringBuilder text) intcode()format()name()protected static <T> OptionUDT<T> NEW(int code, Class<T> klaz, OptionUDT.Format format) Class<?> type()
-
Field Details
-
UDT_MSS
the Maximum Transfer Unit. -
Maximum_Transfer_Unit
the Maximum Transfer Unit., bytes -
UDT_SNDSYN
if sending is blocking. -
Is_Send_Synchronous
if sending is blocking., true/false -
UDT_RCVSYN
if receiving is blocking. -
Is_Receive_Synchronous
if receiving is blocking, true/false -
UDT_CC
custom congestion control algorithm -
Custom_Congestion_Control
custom congestion control algorithm, class factory -
UDT_FC
Flight flag size (window size). -
Flight_Window_Size
Flight flag size (window size), bytes -
UDT_SNDBUF
maximum buffer in sending queue. -
Protocol_Send_Buffer_Size
maximum buffer in sending queue. -
UDT_RCVBUF
UDT receiving buffer size. -
Protocol_Receive_Buffer_Size
UDT receiving buffer size limit, bytes -
UDT_LINGER
waiting for unsent data when closing. -
Time_To_Linger_On_Close
waiting for unsent data when closing. true/false and timeout, seconds -
UDP_SNDBUF
UDP sending buffer size. -
System_Send_Buffer_Size
UDP sending buffer size limit, bytes -
UDP_RCVBUF
UDP receiving buffer size. -
System_Receive_Buffer_Size
UDP receiving buffer size limit, bytes -
UDT_RENDEZVOUS
rendezvous connection mode. -
Is_Randezvous_Connect_Enabled
rendezvous connection mode, enabled/disabled -
UDT_SNDTIMEO
send() timeout. -
Send_Timeout
send() timeout. milliseconds -
UDT_RCVTIMEO
recv() timeout. -
Receive_Timeout
recv() timeout. milliseconds -
UDT_REUSEADDR
reuse an existing port or create a one. -
Is_Address_Reuse_Enabled
reuse an existing port or create a one. true/false -
UDT_MAXBW
maximum bandwidth (bytes per second) that the connection can use. -
Maximum_Bandwidth
maximum bandwidth (bytes per second) that the connection can use. -
UDT_STATE
current socket state, see UDTSTATUS, read only -
Status_Code
current socket status code, seeStatusUDT.getCode(), read only -
UDT_EVENT
current available events associated with the socket -
Epoll_Event_Mask
current available epoll events, seeEpollUDT.Opt.code -
UDT_SNDDATA
size of data in the sending buffer -
Send_Buffer_Consumed
current consumed sending buffer utilization, read only, bytes -
UDT_RCVDATA
size of data available for recv -
Receive_Buffer_Available
current available receiving buffer capacity, read only, bytes -
log
protected static final org.slf4j.Logger log -
values
-
code
private final int code -
type
-
format
-
name
-
-
Constructor Details
-
OptionUDT
-
-
Method Details
-
NEW
-
appendSnapshot
-
code
public int code() -
type
-
format
-
name
-