<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Java wolfssl Connect]]></title>
		<link>https://www.wolfssl.com/forums/topic791-java-wolfssl-connect.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic791.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Java wolfssl Connect.]]></description>
		<lastBuildDate>Mon, 09 May 2016 21:06:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Java wolfssl Connect]]></title>
			<link>https://www.wolfssl.com/forums/post2492.html#p2492</link>
			<description><![CDATA[<p>Hi cfarrin,</p><p>Can you try calling setFd() after you create the wolfSSL session with WolfSSLSession()?</p><p>Thanks,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Mon, 09 May 2016 21:06:39 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2492.html#p2492</guid>
		</item>
		<item>
			<title><![CDATA[Java wolfssl Connect]]></title>
			<link>https://www.wolfssl.com/forums/post2489.html#p2489</link>
			<description><![CDATA[<p>I am trying to get a simple java connection.&nbsp; However I am unable to establish the connection.&nbsp; &nbsp;I think I am missing a step.</p><p>I have set up the CTX on the client side.&nbsp; &nbsp;On the server I can connect via C++.</p><p>My code look like this:</p><p>String SrvAddr_main;<br />String SrvPort_main;</p><p>SrvAddr_main = &quot;192.168.1.7&quot;;</p><p>SrvPort_main = &quot;3535&quot;;</p><p>sock = new Socket(SrvAddr_main, Integer.parseInt( SrvPort_main ));&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> outstream = new DataOutputStream(sock.getOutputStream());<br /> instream = new DataInputStream(sock.getInputStream());</p><p> SSL_main.setFd(sock);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> SSL_main&nbsp; = new WolfSSLSession( Ctx );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />int ret = SSL_main.connect();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />String msg = &quot;Hello&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />ret = SSL_main.write(msg.getBytes(), msg.length());</p><p>I do not get any errors but the message never gets to server.&nbsp; I am thinking I need to use the instream, outstream for something?</p><p>Thank you</p>]]></description>
			<author><![CDATA[null@example.com (cfarrin)]]></author>
			<pubDate>Sat, 07 May 2016 00:55:43 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2489.html#p2489</guid>
		</item>
	</channel>
</rss>
