]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add func
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Jun 2011 20:42:09 +0000 (15:42 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Jun 2011 20:42:09 +0000 (15:42 -0500)
src/switch_apr.c

index fe7442b57ffb6a2eee301dbddd99cc4d5168aba6..b592fc7c3e414f06735673ec3bf009fdcd67efbb 100644 (file)
@@ -716,6 +716,15 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t *sock, const
        return status;
 }
 
+SWITCH_DECLARE(switch_status_t) switch_socket_send_nonblock(switch_socket_t *sock, const char *buf, switch_size_t *len)
+{
+       if (!sock || !buf || !len) {
+               return SWITCH_STATUS_GENERR;
+       }
+       
+       return apr_socket_send(sock, buf, len);
+}
+
 SWITCH_DECLARE(switch_status_t) switch_socket_sendto(switch_socket_t *sock, switch_sockaddr_t *where, int32_t flags, const char *buf,
                                                                                                         switch_size_t *len)
 {