< prev index next >

src/java.base/unix/native/libnet/net_util_md.h

Print this page




  84                  struct sockaddr *from, socklen_t *fromlen);
  85 int NET_ReadV(int s, const struct iovec * vector, int count);
  86 int NET_Send(int s, void *msg, int len, unsigned int flags);
  87 int NET_SendTo(int s, const void *msg, int len,  unsigned  int
  88                flags, const struct sockaddr *to, int tolen);
  89 int NET_Connect(int s, struct sockaddr *addr, int addrlen);
  90 int NET_Accept(int s, struct sockaddr *addr, socklen_t *addrlen);
  91 int NET_SocketClose(int s);
  92 int NET_Dup2(int oldfd, int newfd);
  93 int NET_Poll(struct pollfd *ufds, unsigned int nfds, int timeout);
  94 
  95 void NET_ThrowUnknownHostExceptionWithGaiError(JNIEnv *env,
  96                                                const char* hostname,
  97                                                int gai_error);
  98 void NET_ThrowByNameWithLastError(JNIEnv *env, const char *name,
  99                                   const char *defaultDetail);
 100 void NET_SetTrafficClass(SOCKETADDRESS *sa, int trafficClass);
 101 
 102 #ifdef __linux__
 103 int kernelIsV24();

 104 #endif
 105 
 106 #ifdef __solaris__
 107 int net_getParam(char *driver, char *param);
 108 #endif
 109 
 110 #endif /* NET_UTILS_MD_H */


  84                  struct sockaddr *from, socklen_t *fromlen);
  85 int NET_ReadV(int s, const struct iovec * vector, int count);
  86 int NET_Send(int s, void *msg, int len, unsigned int flags);
  87 int NET_SendTo(int s, const void *msg, int len,  unsigned  int
  88                flags, const struct sockaddr *to, int tolen);
  89 int NET_Connect(int s, struct sockaddr *addr, int addrlen);
  90 int NET_Accept(int s, struct sockaddr *addr, socklen_t *addrlen);
  91 int NET_SocketClose(int s);
  92 int NET_Dup2(int oldfd, int newfd);
  93 int NET_Poll(struct pollfd *ufds, unsigned int nfds, int timeout);
  94 
  95 void NET_ThrowUnknownHostExceptionWithGaiError(JNIEnv *env,
  96                                                const char* hostname,
  97                                                int gai_error);
  98 void NET_ThrowByNameWithLastError(JNIEnv *env, const char *name,
  99                                   const char *defaultDetail);
 100 void NET_SetTrafficClass(SOCKETADDRESS *sa, int trafficClass);
 101 
 102 #ifdef __linux__
 103 int kernelIsV24();
 104 int getDefaultIPv6Interface(struct in6_addr *target_addr);
 105 #endif
 106 
 107 #ifdef __solaris__
 108 int net_getParam(char *driver, char *param);
 109 #endif
 110 
 111 #endif /* NET_UTILS_MD_H */
< prev index next >