Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

Application layer protocol for chat server

Thread view: 
islamelnaggar@gmail.com - 02 Jan 2008 15:50 GMT
Hello java guys

i'm writing chat software ,data send from client to server and server
response to client
so i need to send many data formats such as voice, text based i need
to make protocol between both client and server to do many operation
for example authencate user , get user list ,
whatever so i need way to send data using sockets to send data
will i use bytes packets between both client and server ? or use
anthor way or what

and in case if i'm using bytes stream how can i explode or get text
message  from the header stream how can i design this protocol

thanks
RedGrittyBrick - 02 Jan 2008 16:33 GMT
On Wed, 02 Jan 2008 07:50:02 -0800, islamelnaggar wrote:

> Hello java guys
>
> i'm writing chat software ,data send from client to server and server
> response to client

If you search this newsgroup (Using Google Groups perhaps) you'll find
several regular posters have posted pointers to implementations of chat
programs.

> so i need to send many data formats such as voice, text based i need to
> make protocol between both client and server to do many operation for
[quoted text clipped - 5 lines]
> and in case if i'm using bytes stream how can i explode or get text
> message  from the header stream how can i design this protocol

Why invent a new protocol? I'd have a look at
http://www.irchelp.org/irchelp/rfc/rfc.html
and at least use that as a starting point.
islamelnaggar - 02 Jan 2008 16:39 GMT
On 2 يناير, 08:33, RedGrittyBrick <RedGrittyBr...@SpamWeary.Foo>
wrote:
> On Wed, 02 Jan 2008 07:50:02 -0800, islamelnaggar wrote:
> > Hello java guys
[quoted text clipped - 18 lines]
> Why invent a new protocol? I'd have a look athttp://www.irchelp.org/irchelp/rfc/rfc.html
> and at least use that as a starting point.

thanks for ur help

IS There any anthor solution for my questions
islamelnaggar - 02 Jan 2008 20:02 GMT
> On 2 íäÇíÑ, 08:33, RedGrittyBrick <RedGrittyBr...@SpamWeary.Foo>
> wrote:
[quoted text clipped - 27 lines]
>
> - عرض النص المقتبس -

is there any solutions about this problem?
RedGrittyBrick - 02 Jan 2008 20:38 GMT
>>> On Wed, 02 Jan 2008 07:50:02 -0800, islamelnaggar wrote:
>>>>
[quoted text clipped - 23 lines]
>
> is there any solutions about this problem?

What *specific* problem do you have?
Patricia Shanahan - 02 Jan 2008 20:55 GMT
>> On 2 íäÇíÑ, 08:33, RedGrittyBrick <RedGrittyBr...@SpamWeary.Foo>
>> wrote:
[quoted text clipped - 23 lines]
>
> is there any solutions about this problem?

Well, the quote gives two approaches to solving it, searching for
previously posted sample code and starting from an appropriate RFC.

If neither of those ideas work in your situation, you need to say more
about the problem.

Patricia
Chase Preuninger - 02 Jan 2008 22:56 GMT
I would create a class called Data, and have it store the data as a
byte array, and store a field called data type so the receiving side
can understand the data sent, or u could have a separate socket for
each.
islamelnaggar - 02 Jan 2008 23:37 GMT
thanks for reply
the problem sir  that i want to send over sockets voice data streaming
including  text header
like http protocl when responce holding image or sound file byte so
how can i extract both header info  and sound byte from streaming

thanks

> I would create a class called Data, and have it store the data as a
> byte array, and store a field called data type so the receiving side
> can understand the data sent, or u could have a separate socket for
> each.
islamelnaggar - 03 Jan 2008 13:07 GMT
> thanks for reply
> the problem sir  that i want to send over sockets voice data streaming
[quoted text clipped - 10 lines]
>
> - عرض النص المقتبس -

any solution there about my problem?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.