R Sriram

Greenhorn
+ Follow
since Jun 11, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by R Sriram

yeah. Thanks very much Ernest. I will look into it.
14 years ago
Paul,
Thanks.
I would like to know where to look for the native methods implementations. Do I need to look at the OS's socket implementation part?
14 years ago
I have just now started working on a Java USB library. I looked at the JSR80 for the interface specification. But, I am not clear yet. My concern below:
1 - Since the library intends to handle all the device management(device enumeration/send/receive) on its own - do I use JNI wrappers to delegate the call to underlying kernel? If so, can you provide some pointers? I tried to lookup how "Sockets" are implemented, but, I could not narrow it down to a level where the native methods are implemented. I'm Sure, I am missing something here.

Thanks,
Sriram
14 years ago
Jeanne,
Alright. Let me look at the 'record/playback' thing.
Thanks a lot.
14 years ago
Jeanne,
Yes the moves are deterministic. The game is 'bantumi'. The players will have a limited set of options from which they need to choose a move.In fact, unlike a chess game, the possibilities are more limited. Does this answer your question?
14 years ago
Hello All,
I have written a web-based(specifically using servlets/jsp) two player game. I would like to do a load test to see how it performs and uncover a lot of issues .
Are there any load test tools which can simulate a number of concurrent pair of players playing a game? I am aware of a few tools which can httprequests and can do record and playback kinda thing,but, I am not sure if there can be any for this purpose. Please do let me know if any tool can be used in this direction or any other suggestions on how this can be achieved.

Thanks much,
Sriram
14 years ago
Well Paul - you made a point. And, there are even legit sites which respond only to IPs of some specific geographic location and things like that. So, was wondering what would comprehensively conclude the fact that URL exists.Right now, I have just stuck to the idea of checking the status code for HTTP(S) and reading the stream for FTP. All those URLs which I am unable to conclude would be retried at some point of time. Just wondering, what Google employs for its crawling??
And Ulf, yeah I was able to test that as well.There were some false negatives.
Hello Ulf,
Thank you for your response. I did look at the code before. I was just wondering if it was a comprehensive enough procedure to confirm the ftp sites' existence.???
Hello all,
I have a set of URLs and I need to check if each one exists, before I go ahead to do some further processing. So, I have been trying to use "URLConnection". For any HTTP urls it becomes easy to identify with the response status codes but where as for an URL responding to FTP, I am unable to exactly identify the URL's availability. I see that there is a sun.net.www.protocol.ftp package available, but I do not see any method retrieving me status. I tried checking the header map returned by the URLConnection but it does not seem to return anything for FTP sites. Any help in this regard would be of immense use, Thanks in advance
Ulf,
I have edited my first post to answer your question.
Thanks a lot. I just found out that I was doing a very small mistake.
I was compiling from a directory which was one level above the exact replica in the classes directory structure as well.
If you see my post(previous) I was trying to compile from WEB-INF and then using the below command
javac -d classes src\com\game\web\mainServlet.java

Instead, the correct way would be to complie from WEB-INF\src\ directory and the command below
javac -d ..\classes com\game\web\mainServlet.java since the italicized one is the actual package structure which the compiler will try to replicate inside the directory specified.

Hope I am correct.
Thanks a tonne for the interest shown.
15 years ago
Hello,

I have organized my code into packages, but , When I try to import a package that I created, the compiler throws a package *** does not exist error.
Pl find below my directory structure.
testwebapp - Level 1
-->WEB-INF - Level 2
------->src - Level 3
----------->com - Level 4
------------------>game - Level 5
-------------------------->web - Level 6
--------------------------------->mainServlet.java - Level 7
-------------------------->model - Level 6
--------------------------------->status.java - Level 7
------->classes - Level 3
----------->com - Level 4
------------------>game - Level 5
-------------------------->web - Level 6
-------------------------->model - Level 6
--------------------------------->status.class - Level 7
I have set the classpath for the servlet-api.jar. From the command prompt, I moved to the WEB-INF directory and then from there when I tried to execute the following command, I get the package not found error
javac -d classes src\com\game\web\mainServlet.java.
More importantly note that I am importing the "status.java" in the "mainServlet.java".
Any help would be very useful.

[ August 03, 2008: Message edited by: R Sriram ]

[ August 03, 2008: Message edited by: R Sriram ]
[ August 03, 2008: Message edited by: R Sriram ]
15 years ago
The Logs do not reflect any error message as such. I even tried to set it up in debug mode, but no exceptions, no warnings but it seems to be dumb. I also found that a default webapp by name "ROOT" was missing for some reason.Could it be the cause?
15 years ago
All,

I have been working with tomcat 5.5. Whenever I start tomcat, I check to see if its Started up ok, by checking the http://localhost:8080/ URL. Today, I found it returning a 400 Error, while all these days it did not show up anything like this. Adding to woes is, when I try to access some webapp in this state it responds for the basic html requests from browser. For any non-html, say for a servlet request, it throws a 404.

All the path details and the ENV stuffs are pretty much correct. Please let me know if any solutions. Crazily, I even tried a system restart, in vain!
15 years ago
Probably reading the book a little more deeper would give you some idea. As far as I have gone through, they have mentioned about getting the session from the Servlet Context. If possible go through the complete book. Happy reading!
15 years ago
Steve, Thanks for your reply. I was just trying to figure if there was something like this(Pushlets)!
Ben, I thought the symbol(at-the-rate) meant the same in all languages. Anyways will try to cut down on those.
15 years ago