Skip to content

Commit

Permalink
ServerSocket: Fix docs layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimensionscape committed May 15, 2024
1 parent f626aa8 commit b99d780
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/openfl/net/ServerSocket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,11 @@ class ServerSocket extends EventDispatcher
match.
@throws RangeError This error occurs when localPort is less than 0 or greater than 65535.
@throws ArgumentError This error occurs when localAddress is not a syntactically well-formed IP address.
@throws IOError When the socket cannot be bound, such as when:
the underlying network socket (IP and port) is already in bound by another object or process.
the application is running under a user account that does not have the privileges necessary to bind to the port. Privilege issues typically occur when attempting to bind to well known ports (localPort < 1024)
this ServerSocket object is already bound. (Call close() before binding to a different socket.)
when localAddress is not a valid local address.
@throws IOError When the socket cannot be bound, such as when:
- the underlying network socket (IP and port) is already in bound by another object or process.
- the application is running under a user account that does not have the privileges necessary to bind to the port. Privilege issues typically occur when attempting to bind to well known ports (localPort < 1024)
- this ServerSocket object is already bound. (Call close() before binding to a different socket.)
- when localAddress is not a valid local address.
**/
public function bind(localPort:Int = 0, localAddress:String = "0.0.0.0"):Void
{
Expand Down Expand Up @@ -206,8 +205,8 @@ class ServerSocket extends EventDispatcher
@throws RangeError There is insufficient data available to read.
@throws IOError This error occurs if the socket is not open or bound.
This error also occurs if the call to listen() fails for any
other reason.
This error also occurs if the call to listen() fails for any
other reason.
**/
public function listen(backlog:Int = 0):Void
{
Expand Down

0 comments on commit b99d780

Please sign in to comment.