mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-19 00:39:46 +00:00
Add UDP support to the NET module
This commit is contained in:
committed by
Paul Bakker
parent
d6b721c7ee
commit
f5a1312eaa
@@ -163,7 +163,7 @@ int main( int argc, char *argv[] )
|
||||
printf( "\n . Waiting for a remote connection" );
|
||||
fflush( stdout );
|
||||
|
||||
if( ( ret = net_bind( &listen_fd, NULL, SERVER_PORT ) ) != 0 )
|
||||
if( ( ret = net_bind( &listen_fd, NULL, SERVER_PORT, NET_PROTO_TCP ) ) != 0 )
|
||||
{
|
||||
printf( " failed\n ! net_bind returned %d\n\n", ret );
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user