mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
sock: pass protocol to sockets
This commit is contained in:
@@ -1973,7 +1973,7 @@ static socketops_t socketops = {
|
||||
.getopt = tcp_getopt
|
||||
};
|
||||
|
||||
socket_t *tcp_createsocket() {
|
||||
socket_t *tcp_createsocket(int protocol) {
|
||||
tcpsocket_t *socket = alloc(sizeof(tcpsocket_t));
|
||||
if (socket == NULL)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user