websocket function

  • Function Name Description

  • socket_accept () accepts a Socket connection

  • socket_bind () the socket bound to an IP address and port

  • socket_clear_error () to clear the wrong socket or the last error code

  • socket_close () to close a socket resource

  • socket_connect () starts a socket connection

  • socket_create_listen () to open a socket to listen on the specified port

  • socket_create_pair () produces a pair of socket no difference in an array

  • socket_create () generates a socket, a data structure is generated corresponding to the socket

  • socket_get_option () Gets socket options

  • socket_getpeername () Gets similar remote host ip address

  • socket_getsockname () Gets the local socket ip address

  • socket_iovec_add () to add a new vector to a dispersion / aggregation array

  • socket_iovec_alloc () This function creates a read and write can transmit and receive data structures iovec

  • socket_iovec_delete () to delete an allocated iovec

  • socket_iovec_fetch () returns the specified data resources iovec

  • socket_iovec_free () to release a resource iovec

  • socket_iovec_set () sets a new value of the data iovec

  • socket_last_error () Gets the current socket of the last error code

  • socket_listen () to listen for connections of all of the specified socket

  • () Reads the specified data length socket_read

  • socket_readv () read from the dispersion / polymeric array over the data

  • socket_recv () from the socket in the end of the data into the cache

  • socket_recvfrom () accepts data from the specified socket, if this is not specified, the default socket

  • socket_recvmsg () to accept messages from inside iovec

  • socket_select () multiplexer

  • socket_send () This function sends data to the connected socket

  • socket_sendmsg () sends a message to the socket

  • socket_sendto () message to a specified address socket

  • socket_set_block () in the block mode is set in the socket

  • socket_set_nonblock () socket disposed in the non-block mode

  • socket_set_option () to set socket options

  • socket_shutdown () function allows you to turn off read, write, or specified socket

  • socket_strerror () returns the specified error number of comprehensive error

  • socket_write () to write data to the socket buffer

  • socket_writev () to write data to the dispersion / polymeric arrays

 

Guess you like

Origin www.cnblogs.com/super-ldc/p/11105999.html