add support for connect with socket buffer size
This commit is contained in:
@@ -43,6 +43,14 @@ int tos_sal_module_connect(const char *ip, const char *port, sal_proto_t proto)
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tos_sal_module_connect_with_size(const char *ip, const char *port, sal_proto_t proto, size_t socket_buffer_size)
|
||||
{
|
||||
if (g_sal_module && g_sal_module->connect_with_size) {
|
||||
return g_sal_module->connect_with_size(ip, port, proto, socket_buffer_size);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tos_sal_module_send(int sock, const void *buf, size_t len)
|
||||
{
|
||||
if (g_sal_module && g_sal_module->send) {
|
||||
|
Reference in New Issue
Block a user