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
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?