aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes hi some one help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "hi some one help " Watch "hi some one help " New topic
Author

hi some one help

nikitha kakani
Greenhorn

Joined: Dec 15, 2007
Posts: 25
Hi,
I need to send message hi to server .I am using TCP/IP test server .Can anyone help me out ,whenever i send request the port is closed message is not displayed.

JCE: Please UseCodeTags
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

Is your server expecting text or a Java String object? Using an Object Output Stream will serialize a Java String Object.
You should probably take a few moments and run through the Java Socket Tutorial and the Java IO Tutorial. A solid base in those two features is essential for working with sockets.


[How To Ask Questions On JavaRanch]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "hi some one help" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hi some one help