Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / imd / imdsocket.h
index 3cf846dbd70888581b356b87ba916c4de2222c37..fdf1b46efca640312fa75a58a84d5be2d9e5bd11 100644 (file)
@@ -69,7 +69,7 @@ int imdsock_winsockinit();
  *
  * \returns  The IMD socket if successful. Otherwise prints an error message and returns NULL.
  */
-IMDSocket *imdsock_create();
+IMDSocketimdsock_create();
 
 //! Portability wrapper around sleep function
 void imd_sleep(unsigned int seconds);
@@ -86,7 +86,7 @@ void imd_sleep(unsigned int seconds);
  *
  * \returns 0 if successful.
  */
-int imdsock_bind(IMDSocket *sock, int port);
+int imdsock_bind(IMDSocketsock, int port);
 
 
 /*! \brief Set socket to listening state.
@@ -98,7 +98,7 @@ int imdsock_bind(IMDSocket *sock, int port);
  * \returns 0 if successful.
  *
  */
-int imd_sock_listen(IMDSocket *sock);
+int imd_sock_listen(IMDSocketsock);
 
 
 /*! \brief Accept incoming connection and redirect to client socket.
@@ -109,7 +109,7 @@ int imd_sock_listen(IMDSocket *sock);
  *
  * \returns IMD socket if successful, NULL otherwise.
  */
-IMDSocket *imdsock_accept(IMDSocket *sock);
+IMDSocket* imdsock_accept(IMDSocket* sock);
 
 
 /*! \brief Get the port number used for IMD connection.
@@ -121,7 +121,7 @@ IMDSocket *imdsock_accept(IMDSocket *sock);
  *
  * \returns 0 if successful, an error code otherwise.
  */
-int imdsock_getport(IMDSocket *sock, int *port);
+int imdsock_getport(IMDSocket* sock, int* port);
 
 //! Portability wrapper around system htonl function.
 int imd_htonl(int src);
@@ -139,7 +139,7 @@ int imd_ntohl(int src);
  *
  * \returns The number of bytes written, or -1.
  */
-int imdsock_write(IMDSocket *sock, const char *buffer, int length);
+int imdsock_write(IMDSocket* sock, const char* buffer, int length);
 
 
 /*! \brief  Read from socket.
@@ -150,7 +150,7 @@ int imdsock_write(IMDSocket *sock, const char *buffer, int length);
  *
  * \returns The number of bytes read, or -1 for errors.
  */
-int imdsock_read(IMDSocket *sock, char *buffer, int length);
+int imdsock_read(IMDSocket* sock, char* buffer, int length);
 
 
 /*! \brief Shutdown the socket.
@@ -158,7 +158,7 @@ int imdsock_read(IMDSocket *sock, char *buffer, int length);
  * \param sock      The IMD socket.
  *
  */
-void imdsock_shutdown(IMDSocket *sock);
+void imdsock_shutdown(IMDSocketsock);
 
 
 /*! \brief Close the socket and free the sock struct memory.
@@ -169,7 +169,7 @@ void imdsock_shutdown(IMDSocket *sock);
  *
  * \returns 1 on success, or 0 if unsuccessful.
  */
-int imdsock_destroy(IMDSocket *sock);
+int imdsock_destroy(IMDSocketsock);
 
 
 /*! \brief Try to read from the socket.
@@ -182,7 +182,7 @@ int imdsock_destroy(IMDSocket *sock);
  * \param timeoutusec  Time out microseconds
  *
  */
-int imdsock_tryread(IMDSocket *sock, int timeoutsec, int timeoutusec);
+int imdsock_tryread(IMDSocketsock, int timeoutsec, int timeoutusec);
 
 } // namespace gmx