This file uses the macro feature to create sets of socket options. A single set can be loaded by using the set's outer config as a macro. In this example, the sets are:

A note on naming conventions within the XML file. The property names starting with a lower case letter are required properties that ISMFIX Engine requires. The property names starting with an upper case letter are macro value names and are not required by the engine.


<configs>
    <SocketIORecommendedSize_send>146988</SocketIORecommendedSize_send>
    <SocketIORecommendedSize_read>146988</SocketIORecommendedSize_read>

    <SocketOptions_ImmediateClose>
        <tcp_nodelay>true</tcp_nodelay>
        <so_linger>0</so_linger>
        <receiveBufferRecommendedSize>${SocketIORecommendedSize_read}</receiveBufferRecommendedSize>
        <sendBufferRecommendedSize>${SocketIORecommendedSize_send}</sendBufferRecommendedSize>
    </SocketOptions_ImmediateClose>

    <SocketOptions_GracefullClose>
        <tcp_nodelay>true</tcp_nodelay>
        <so_linger>1000</so_linger>
        <receiveBufferRecommendedSize>${SocketIORecommendedSize_read}</receiveBufferRecommendedSize>
        <sendBufferRecommendedSize>${SocketIORecommendedSize_send}</sendBufferRecommendedSize>
    </SocketOptions_GracefullClose>

</configs>

    
  

parametercurrent valuedescription
tcp_nodelay true Socket's TCP_NODELAY option
so_linger 0 Socket's Linger option
receiveBufferRecommendedSize 15000 Recommendation to socket for receive buffer size. Note: recommended, not actual.
sendBufferRecommendedSize 15000 Recommendation to socket for send buffer size. Note: recommended, not actual.