hi!!!
Can any one tell me what may be the posiible reasons of getting
java.net.Socket .SocketExceptio n:Socket Closed
at java.net.PlainS ocketImpl.setOp tion
at java.net.Socket .setKeepAlive
the socket to which I have connected is open .
socket.isConnec ted()-----------true
socket.setKeepA live(true)-----------throws the above...
User Profile
Collapse
-
hi
yah got it!!!..thanks a lot!! -
And what about the
"%d",val+1 part???..Why theres no contribution?Leave a comment:
-
printf related...
hi!!!
Please help me out as to what would be the output of the following code and whats the reason for it????
What will be the output of the following program :
int main()
{
int val=10;
printf("%d",val +1,"%d",val--);
return(0);
} -
Https connection
hi!!!
can anyone tell me how do I connect my Java application to an Https ???? -
I wrote the above two linwes...
The string resp_str is displayed and the length of the file is also obtained...
but nothing gets written into the file....
Also u said about closing the file..that I m not doing as I dont knoe how to close the file....Leave a comment:
-
Simple but not working????
hii everyone!!!
Heres a code for writing a string stored in resp_str to a file in thge path specified but I dont get the required string in the output file...I just get an empty file....
pls help me..as to why it is happening...the res no error which I get!!!
Regards Punit
[code=java]
File output=new File("D:\\Punit \\Output.txt");
boolean a=output.exists ();
System.out.prin tln("the... -
thanks for ur reply!!!!
which class in the API should I use???...Leave a comment:
-
Https connection???
hi everyone!!!
Heres a code to link to an Https site and read the contents of it.But i get an ClassCastExcept ion...Pls help me out as to whyI m getting this error and ..how can it be rectified....
URL aURL;
char ch;
Security.addPro vider(new com.sun.net.ssl .internal.ssl.P rovider());
System.setPrope rty("java.proto col.handler.pkg s","com.sun.net .ssl.internal.w ww.protocol");
... -
Https connection
hello everyone!!!
Heres a code to open a link to an https site and read its contents...
but it gives an exception...Cla ssCastException
[code=c]
URL aURL;
char ch;
Security.addPro vider(new com.sun.net.ssl .internal.ssl.P rovider());
System.setPrope rty("java.proto col.handler.pkg s","com.sun.net .ssl.internal.w ww.protocol");
aURL = new URL(null,defaul tURL, new com.sun.net.ssl .internal.www.p rotocol.https.H andler());...
No activity results to display
Show More
Leave a comment: