-
Sending Data Over TCP/IP
I am trying to connect to a chat server ( rediff ) So I monitored the packets sent by rediffbol and saved a dump of it. I am trying to emulate those packets and send them from my application. But the tcp dump consists of several null characters like ( 8A 00 00 00 00 00 00 47 61...) I can not send it as string as the string gets terminated at the null . If i try to send it as chars then the connection is terminated when it reaches null. I tried making an object which will hold the data and tried to send that object By ObjectOutputStream But it does not work , instead some weird data is sent . the hex dump looks as the following :-
8A 00 00 00 00 00 00 00 00 00 00 00 0B 00 00 00
47 61 74 65 6B 65 65 70 65 72 32 0F 00 00 00 47
65 74 4C 6F 67 69 6E 53 65 72 76 65 72 73 5C 00
00 00 18 00 00 00 52 65 64 69 66 66 20 42 6F 6C
38 2E 30 20 20 62 75 69 6C 64 20 32 37 35 03 00
00 00 0A 00 00 00 52 42 4F 4C 2F 31 2E 32 2E 35
17 00 00 00 52 42 4F 4C 2F 31 2E 32 2E 35 2B 48
54 54 50 5F 43 4F 4E 4E 45 43 54 0F 00 00 00 52
42 4F 4C 2F 31 2E 32 2E 35 2B 48 54 54 50
What should be my approach ?
rediffbol - the rediff chat client connects to 203.199.83.62:1863 dispatch server. I need to send that data to the server to let it refer the client to an available notification server...Please help..
Similar Threads
-
Replies: 0
Last Post: 03-01-2003, 08:17 AM
-
By Oneness in forum ASP.NET
Replies: 0
Last Post: 07-07-2002, 09:31 AM
-
By Kathleen Dollard in forum .NET
Replies: 14
Last Post: 05-03-2002, 12:10 AM
-
By Peter Prager (Canam Software) in forum vb.announcements
Replies: 0
Last Post: 08-15-2001, 10:48 AM
-
By Tim Frost in forum xml.announcements
Replies: 0
Last Post: 04-02-2001, 10:53 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks