Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TPF
jack2
Commits
efd8eefc
Commit
efd8eefc
authored
Dec 15, 2009
by
unknown
Committed by
Torben Hohn
Jan 13, 2010
Browse files
use big socketbuffers on win32
parent
70596093
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/netjack.c
View file @
efd8eefc
...
...
@@ -582,7 +582,13 @@ netjack_startup( netjack_driver_state_t *netj )
struct
sockaddr_in
address
;
// Now open the socket, and wait for the first packet to arrive...
netj
->
sockfd
=
socket
(
AF_INET
,
SOCK_DGRAM
,
0
);
#ifdef WIN32
u_long
parm
=
1
;
DWORD
bufsize
=
262144
;
//ioctlsocket( netj->sockfd, FIONBIO, &parm );
setsockopt
(
netj
->
sockfd
,
SOL_SOCKET
,
SO_RCVBUF
,
(
char
*
)
&
bufsize
,
sizeof
(
bufsize
)
);
setsockopt
(
netj
->
sockfd
,
SOL_SOCKET
,
SO_SNDBUF
,
(
char
*
)
&
bufsize
,
sizeof
(
bufsize
)
);
if
(
netj
->
sockfd
==
INVALID_SOCKET
)
#else
if
(
netj
->
sockfd
==
-
1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment