New Bie to Java I/O

Posted on 2004-11-09
Last Modified: 2010-03-31
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,
Question by:ashok3sep
    LVL 35

    Expert Comment

    LVL 86

    Accepted Solution

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

    Yes, use a DataOutputStream.
    LVL 35

    Expert Comment

    LVL 15

    Expert Comment

    ps: 'newbie' is one word :-)
    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now