Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

sunil sahoo

Greenhorn
+ Follow
since May 08, 2009
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 sunil sahoo

Hi I have cretaed an RPM for my java application it works fine. Now I want to know how to set linux desktop icon in that rpm. Means if the user will install the application then an icon will be displayed in its desktop and also in start menu. If i click on that icon then my java application will start. Can any one please guide me.

Whether i need to do anything in my .spec file or i need to do any thing in .desktop file.

Any detail and easy description.


Thanks
Sunil Kumar Sahoo
10 years ago
Hi,
Please guide me to create my own spec file to build rpm.

Thanks
Sunil Kumar Sahoo
10 years ago
Hi I have created a java application and created its jar. now i want to build rpm package for that application by using which other people can install my application.
My java application depends on some extenal jar file.
I am unable to know how to create RPM package for my java application



Thanks
Sunil Kumar Sahoo
10 years ago
Hi I have created a java application and created its jar. now i want to build rpm package for that application by using which other people can install my application.
My java application depends on some extenal jar file.
I am unable to know how to create RPM package for my java application



Thanks
Sunil Kumar Sahoo
Hi In single threaded socket channel programming.
If my selector is busy in reading or writing the data then socket connection takes more time means accepting a new socket takes more time.
I want to handle accepting client in 1 thread and read/write operations in another thread.
So How Can I achieve this
Hi As per our discussion I have changed my whole code into simple socket. There is no NIO now.
Means now it is on stream.
Both server and client work on socket only.

Here also I faced the same problem I can read and write a string of maximum 20,000 characters but i want to read and write more data without using filereader writer.

Thanks
Sunil

Hi,
I mean that I can not read the whole data only I can read a part of data while C, C++ people can get the whole data.
So how to read the data using TCP socket in JAVA if the data is so long
Thanks
Sunil
Hi Venki,
I think you have first check for each operating system and then you have to run operating system specific commands to get the used ports
example
Below is the command to find out used ports for linux
netstat -tulnap
Hi Venki,
If you want to connect to any free port then just do the following.

Socket socket = new Socket("localhost",0);

In port, you have to insert as port number
Hi I have implemented socket channel for client server application.
That program works fine when i am sending data of 10000 characters but when I am sending data of more than 50000 characters, then that program did not work fine.
For sending data I am using
String message = "my own data"+"\n"
ByteBuffer buf = ByteBuffer.wrap(message.getBytes());
SocketChannel.write(buf);

And for recieving tha data I am using
BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
br.readLine();

My server is in socket channel and client is simple socket.


Thanks
Sunil
sunil.sahoo@artificialmachines.com