some internal reorganization of getsockopt()/setsockopt() handling. TCP is now able to fully use the application requested sender/receiver buffer sizes for improved performance.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20764 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -36,6 +36,10 @@ struct net_protocol_module_info {
|
||||
status_t (*accept)(net_protocol *self, struct net_socket **_acceptedSocket);
|
||||
status_t (*control)(net_protocol *self, int level, int option, void *value,
|
||||
size_t *_length);
|
||||
status_t (*getsockopt)(net_protocol *self, int level, int option,
|
||||
void *value, int *_length);
|
||||
status_t (*setsockopt)(net_protocol *self, int level, int option,
|
||||
const void *value, int length);
|
||||
|
||||
status_t (*bind)(net_protocol *self, struct sockaddr *address);
|
||||
status_t (*unbind)(net_protocol *self, struct sockaddr *address);
|
||||
|
||||
@@ -59,6 +59,11 @@ struct net_socket_module_info {
|
||||
status_t (*receive_data)(net_socket *socket, size_t length, uint32 flags,
|
||||
net_buffer **_buffer);
|
||||
|
||||
status_t (*get_option)(net_socket *socket, int option, void *value,
|
||||
int *_length);
|
||||
status_t (*set_option)(net_socket *socket, int option,
|
||||
const void *value, int length);
|
||||
|
||||
status_t (*get_next_stat)(uint32 *cookie, int family, struct net_stat *stat);
|
||||
|
||||
// connections
|
||||
|
||||
Reference in New Issue
Block a user