Announcement

Collapse
No announcement yet.

Sockets in Java

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sockets in Java

    Anyone have any knowledge of this? I'm having trouble writing an echo server/client program(s).

    I'm pretty sure what I have is correct, but for some reason I am getting a weird error (its claiming one of my objects, the Socket, doesn't exist. And no, its not out of scope.). Two different errors in fact. For the Client it doesn't see the Socket object and for the Server it doesn't see the getOutputStream() method, but it sees the Socket.

    I could use some help.
    stodi no na ka cenba

    #2
    Re: Sockets in Java

    I'll put some java in your socket











    ...this is why I got a C in comp sci

    Comment


      #3
      Re: Sockets in Java



      Where's ttc when you need 'em?
      stodi no na ka cenba

      Comment


        #4
        Re: Sockets in Java

        I got it to work, no thanks to you guys

        stodi no na ka cenba

        Comment


          #5
          Re: Sockets in Java

          He should be on in a day or two. I am sure not too many people know that extensive knowledge about Java.

          Comment


            #6
            Re: Sockets in Java

            Some people work for a living , I guess more specifically not in my home state for the past couple of months.

            As for Sockets, http://java.sun.com/javase/6/docs/api/, or more specifically, http://java.sun.com/javase/6/docs/ap...verSocket.html and http://java.sun.com/javase/6/docs/ap...et/Socket.html. Also this http://java.sun.com/javase/6/docs/te.../overview.html. Java has some pretty extensive documentation, quite possibly the largest central source of documentation of any language. APIs are your friend.

            And more in depth http://java.sun.com/docs/books/tutor...entServer.html.
            Last edited by thetruecoolness; 10-02-2008, 11:32 PM.
            はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
            http://www.thetruecoolness.com/

            5198-2124-7210 Smash

            Comment


              #7
              Re: Sockets in Java

              Originally posted by theStormWeaver View Post
              I got it to work, no thanks to you guys

              Who uses Java?

              "Couch co-op is the only true co-op." Richard of the Cooks.

              Comment


                #8
                Re: Sockets in Java

                Accenture. At my company we don't but given we're a joint venture of Accenture and Microsoft really no surprise there. Java however is the language of choice for most colleges.
                はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
                http://www.thetruecoolness.com/

                5198-2124-7210 Smash

                Comment


                  #9
                  Re: Sockets in Java

                  It ended up being that I had confused my ServerSockets and my Sockets and their constructors and such business.

                  I had been using the API Index/Library thing the whole time, my code was kinda cluttered, but that was because I was trying to take the Client and Server programs from a setup that had a client request the Date from a Server, and it got all jumbled.
                  stodi no na ka cenba

                  Comment

                  Working...
                  X