Changes

Jump to navigation Jump to search
669 bytes added ,  22:14, 13 April 2020
no edit summary
Line 224: Line 224:     
==== SetSocketDescriptor ====
 
==== SetSocketDescriptor ====
Takes an input s32, returns an output s32.
+
Takes an input s32 sockfd, returns an output s32 sockfd.
 +
 
 +
The input sockfd is used with [[Sockets_services#DuplicateSocket|DuplicateSocket]], with the output sockfd from that being written into state. If the field which would be used for the input u64 is zero however, it instead uses the input sockfd directly and returns -1 for the sockfd. An error is thrown if DuplicateSocket fails. When DuplicateSocket is successful, the input sockfd is returned as the output sockfd, however if [[#OptionType|DoNotCloseSocket]] is set it will instead return -1 for the sockfd.
 +
 
 +
Immediately prior to closing the [[#ISslConnection]] object, sdknso will close the sockfd which was returned by this cmd if it is not negative.
    
==== SetHostName ====
 
==== SetHostName ====

Navigation menu