[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

New Bie to Java I/O

Hai ,

i am quite new to this Java I/O technology .

I have a socket connection to a server and i now need to send some commands following some protocol rules to the server .

i also have to receive the datas from the server.

the commands i send has some strings ,integers and bytes and finally the checksum of the datas.

is it possible for me to send all the datatypes i need to send .

I get a response from the server if i send the commands correctly .

is it possible for me to write all the datatypes to a output stream of the server

if so what are the possibilites!!!!!!!!!!!!!!!

please help me out of this solution.

With regards,
Ashok.G
0
ashok3sep
Asked:
ashok3sep
  • 2
  • 2
1 Solution
 
girionisCommented:
0
 
CEHJCommented:
>>s it possible for me to write all the datatypes to a output stream of the server

Yes, use a DataOutputStream.

http://java.sun.com/j2se/1.5.0/docs/api/java/io/DataOutputStream.html
0
 
girionisCommented:
0
 
JakobACommented:
ps: 'newbie' is one word :-)
0
 
CEHJCommented:
8-)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now