diff --git a/include/SDL3_net/SDL_net.h b/include/SDL3_net/SDL_net.h index f377dae..f77fcc2 100644 --- a/include/SDL3_net/SDL_net.h +++ b/include/SDL3_net/SDL_net.h @@ -475,7 +475,7 @@ typedef struct SDLNet_StreamSocket SDLNet_StreamSocket; /**< a TCP socket. Reli * handle that for you. * * \param address the address of the remote server to connect to - * \param the port on the remote server to connect to + * \param port the port on the remote server to connect to * \returns a new SDLNet_StreamSocket, pending connection, or NULL on error; * call SDL_GetError() for details. * @@ -516,7 +516,7 @@ extern DECLSPEC SDLNet_StreamSocket * SDLCALL SDLNet_CreateClient(SDLNet_Address * SDLNet_GetConnectionStatus() from time to time until you get a non-zero * result. * - * \param address The SDLNet_Address object to wait on. + * \param sock The SDLNet_StreamSocket object to wait on. * \param timeout Number of milliseconds to wait for resolution to complete. * -1 to wait indefinitely, 0 to check once without waiting. * \returns 1 if successfully connected, -1 if connection failed, 0 if still @@ -569,8 +569,8 @@ typedef struct SDLNet_Server SDLNet_Server; /**< a listen socket, internally. * you do not have to byteswap it into "network order," as the library will * handle that for you. * - * \param address the _local_ address to listen for connections on, or NULL. - * \param the port on the local address to listen for connections on + * \param addr the _local_ address to listen for connections on, or NULL. + * \param port the port on the local address to listen for connections on * \returns a new SDLNet_StreamSocket, pending connection, or NULL on error; * call SDL_GetError() for details. * @@ -1001,7 +1001,7 @@ typedef struct SDLNet_Datagram * handle that for you. * * \param address the _local_ address to listen for connections on, or NULL. - * \param the port on the local address to listen for connections on, or zero + * \param port the port on the local address to listen for connections on, or zero * for the system to decide. * \returns a new SDLNet_DatagramSocket, or NULL on error; call SDL_GetError() * for details. @@ -1049,6 +1049,8 @@ extern DECLSPEC SDLNet_DatagramSocket * SDLCALL SDLNet_CreateDatagramSocket(SDLN * SDL_DestroyDatagramSocket(). * * \param sock the datagram socket to send data through + * \param address the SDLNet_Address object address. + * \param port the address port. * \param buf a pointer to the data to send as a single packet. * \param buflen the size of the data to send, in bytes. * \returns 0 if data sent or queued for transmission, -1 on failure; call @@ -1098,8 +1100,7 @@ extern DECLSPEC int SDLCALL SDLNet_SendDatagram(SDLNet_DatagramSocket *sock, SDL * SDL_DestroyDatagramSocket(). * * \param sock the datagram socket to send data through - * \param buf a pointer to the data to send as a single packet. - * \param buflen the size of the data to send, in bytes. + * \param dgram a pointer to the datagram packet pointer. * \returns 0 if data sent or queued for transmission, -1 on failure; call * SDL_GetError() for details. *