@@ -47,7 +47,7 @@ module SF
4747 # An unexpected error happened
4848 Error
4949 end
50- _sf_enum Socket ::Status
50+ Util .extract Socket ::Status
5151 # Special value that tells the system to pick any available port
5252 AnyPort = 0
5353 # Destructor
@@ -87,7 +87,7 @@ module SF
8787 # UDP protocol
8888 Udp
8989 end
90- _sf_enum Socket ::Type
90+ Util .extract Socket ::Type
9191 # Default constructor
9292 #
9393 # This constructor can only be accessed by derived classes.
@@ -436,7 +436,7 @@ module SF
436436 # Text mode using EBCDIC encoding
437437 Ebcdic
438438 end
439- _sf_enum Ftp ::TransferMode
439+ Util .extract Ftp ::TransferMode
440440 # Define a FTP response
441441 class Response
442442 @_ftp_response : VoidCSFML ::Ftp_Response_Buffer
@@ -529,7 +529,7 @@ module SF
529529 # Not part of the FTP standard, generated by SFML when a local file cannot be read or written
530530 InvalidFile = 1003
531531 end
532- _sf_enum Ftp ::Response ::Status
532+ Util .extract Ftp ::Response ::Status
533533 # Default constructor
534534 #
535535 # This constructor is used by the FTP client to build
@@ -1257,7 +1257,7 @@ module SF
12571257 # Request in delete mode, useful for a REST API
12581258 Delete
12591259 end
1260- _sf_enum Http ::Request ::Method
1260+ Util .extract Http ::Request ::Method
12611261 # Default constructor
12621262 #
12631263 # This constructor creates a GET request, with the root
@@ -1392,7 +1392,7 @@ module SF
13921392 # Connection with server failed
13931393 ConnectionFailed = 1001
13941394 end
1395- _sf_enum Http ::Response ::Status
1395+ Util .extract Http ::Response ::Status
13961396 # Default constructor
13971397 #
13981398 # Constructs an empty response.
@@ -2239,9 +2239,11 @@ module SF
22392239 end
22402240 # Unbind the socket from the local port to which it is bound
22412241 #
2242- # The port that the socket was previously using is immediately
2243- # available after this function is called. If the
2244- # socket is not bound to a port, this function has no effect.
2242+ # The port that the socket was previously bound to is immediately
2243+ # made available to the operating system after this function is called.
2244+ # This means that a subsequent call to bind() will be able to re-bind
2245+ # the port if no other process has done so in the mean time.
2246+ # If the socket is not bound to a port, this function has no effect.
22452247 #
22462248 # *See also:* `bind`
22472249 def unbind ()
0 commit comments