mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8217461: (ch) Add Net.available to return the number of bytes in the socket input buffer
Reviewed-by: clanger, michaelm
This commit is contained in:
parent
aa5637f24e
commit
755872aa82
8 changed files with 52 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -180,6 +180,9 @@ int NET_IsZeroAddr(jbyte* caddr);
|
|||
* platform-specific pre/post processing of the arguments and/or results.
|
||||
*/
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
NET_SocketAvailable(int fd, int *pbytes);
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
NET_GetSockOpt(int fd, int level, int opt, void *result, int *len);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue