SSLSocketImpl.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_net_ssl_provider_SSLSocketImpl__
  3. #define __gnu_javax_net_ssl_provider_SSLSocketImpl__
  4. #pragma interface
  5. #include <javax/net/ssl/SSLSocket.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace classpath
  12. {
  13. namespace debug
  14. {
  15. class SystemLogger;
  16. }
  17. }
  18. namespace javax
  19. {
  20. namespace net
  21. {
  22. namespace ssl
  23. {
  24. namespace provider
  25. {
  26. class SSLContextImpl;
  27. class SSLEngineImpl;
  28. class SSLSocketImpl;
  29. }
  30. }
  31. }
  32. }
  33. }
  34. namespace java
  35. {
  36. namespace net
  37. {
  38. class InetAddress;
  39. class Socket;
  40. class SocketAddress;
  41. }
  42. namespace nio
  43. {
  44. namespace channels
  45. {
  46. class SocketChannel;
  47. }
  48. }
  49. }
  50. namespace javax
  51. {
  52. namespace net
  53. {
  54. namespace ssl
  55. {
  56. class HandshakeCompletedListener;
  57. class SSLSession;
  58. }
  59. }
  60. }
  61. }
  62. class gnu::javax::net::ssl::provider::SSLSocketImpl : public ::javax::net::ssl::SSLSocket
  63. {
  64. public:
  65. SSLSocketImpl(::gnu::javax::net::ssl::provider::SSLContextImpl *, ::java::lang::String *, jint);
  66. SSLSocketImpl(::gnu::javax::net::ssl::provider::SSLContextImpl *, ::java::lang::String *, jint, ::java::net::Socket *, jboolean);
  67. virtual void addHandshakeCompletedListener(::javax::net::ssl::HandshakeCompletedListener *);
  68. virtual jboolean getEnableSessionCreation();
  69. virtual JArray< ::java::lang::String * > * getEnabledCipherSuites();
  70. virtual JArray< ::java::lang::String * > * getEnabledProtocols();
  71. virtual jboolean getNeedClientAuth();
  72. virtual ::javax::net::ssl::SSLSession * getSession();
  73. virtual JArray< ::java::lang::String * > * getSupportedCipherSuites();
  74. virtual JArray< ::java::lang::String * > * getSupportedProtocols();
  75. virtual jboolean getUseClientMode();
  76. virtual jboolean getWantClientAuth();
  77. virtual void removeHandshakeCompletedListener(::javax::net::ssl::HandshakeCompletedListener *);
  78. virtual void setEnableSessionCreation(jboolean);
  79. virtual void setEnabledCipherSuites(JArray< ::java::lang::String * > *);
  80. virtual void setEnabledProtocols(JArray< ::java::lang::String * > *);
  81. virtual void setNeedClientAuth(jboolean);
  82. virtual void setUseClientMode(jboolean);
  83. virtual void setWantClientAuth(jboolean);
  84. virtual void startHandshake();
  85. public: // actually package-private
  86. virtual void doHandshake();
  87. public:
  88. virtual void bind(::java::net::SocketAddress *);
  89. virtual void connect(::java::net::SocketAddress *);
  90. virtual void connect(::java::net::SocketAddress *, jint);
  91. virtual ::java::net::InetAddress * getInetAddress();
  92. virtual ::java::net::InetAddress * getLocalAddress();
  93. virtual jint getPort();
  94. virtual jint getLocalPort();
  95. virtual ::java::net::SocketAddress * getRemoteSocketAddress();
  96. virtual ::java::net::SocketAddress * getLocalSocketAddress();
  97. virtual ::java::nio::channels::SocketChannel * getChannel();
  98. virtual ::java::io::InputStream * getInputStream();
  99. virtual ::java::io::OutputStream * getOutputStream();
  100. virtual void setTcpNoDelay(jboolean);
  101. virtual jboolean getTcpNoDelay();
  102. virtual void setSoLinger(jboolean, jint);
  103. virtual jint getSoLinger();
  104. virtual void sendUrgentData(jint);
  105. virtual void setOOBInline(jboolean);
  106. virtual jboolean getOOBInline();
  107. virtual void setSoTimeout(jint);
  108. virtual jint getSoTimeout();
  109. virtual void setSendBufferSize(jint);
  110. virtual jint getSendBufferSize();
  111. virtual void setReceiveBufferSize(jint);
  112. virtual jint getReceiveBufferSize();
  113. virtual void setKeepAlive(jboolean);
  114. virtual jboolean getKeepAlive();
  115. virtual void setTrafficClass(jint);
  116. virtual jint getTrafficClass();
  117. virtual void setReuseAddress(jboolean);
  118. virtual jboolean getReuseAddress();
  119. virtual void close();
  120. virtual void shutdownInput();
  121. virtual void shutdownOutput();
  122. virtual jboolean isConnected();
  123. virtual jboolean isBound();
  124. virtual jboolean isClosed();
  125. virtual jboolean isInputShutdown();
  126. virtual jboolean isOutputShutdown();
  127. public: // actually package-private
  128. static ::java::net::Socket * access$0(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
  129. static ::java::io::OutputStream * access$1(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
  130. static jboolean access$2(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
  131. static ::gnu::javax::net::ssl::provider::SSLEngineImpl * access$3(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
  132. static ::java::io::IOException * access$4(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
  133. static ::java::io::InputStream * access$5(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
  134. static void access$6(::gnu::javax::net::ssl::provider::SSLSocketImpl *, ::java::io::IOException *);
  135. static JArray< jint > * $SWITCH_TABLE$javax$net$ssl$SSLEngineResult$HandshakeStatus();
  136. private:
  137. static ::gnu::classpath::debug::SystemLogger * logger;
  138. ::gnu::javax::net::ssl::provider::SSLEngineImpl * __attribute__((aligned(__alignof__( ::javax::net::ssl::SSLSocket)))) engine;
  139. ::java::util::Set * listeners;
  140. ::java::net::Socket * underlyingSocket;
  141. jboolean isHandshaking;
  142. ::java::io::IOException * handshakeException;
  143. jboolean initialHandshakeDone;
  144. jboolean autoClose;
  145. public: // actually package-private
  146. static jboolean $assertionsDisabled;
  147. private:
  148. static JArray< jint > * $SWITCH_TABLE$javax$net$ssl$SSLEngineResult$HandshakeStatus__;
  149. public:
  150. static ::java::lang::Class class$;
  151. };
  152. #endif // __gnu_javax_net_ssl_provider_SSLSocketImpl__