Welcome Guest Search | Active Topics | Members | Log In | Register

سؤال في سورس شات Options
mnm
Posted: Monday, February 15, 2010 1:59:43 PM
Rank: Newbie
Groups: Member

Joined: 2/15/2010
Posts: 1
Points: 3
Location: gfdgfg
السلام عليكم

استاذ فادي

كان عندي سؤالين في مشروعك في هذا الرابط
http://www.socketcoder.com/ArticleFile.aspx?index=2&ArticleID=65

اول سؤال انا خليت البيانات تعرض في مسج بوكس لكن عندما ارسل مثلا جملة تحوي 40 حرف لا تعرض مرة واحده بل تجزأ على مرتين يعني اقصى حد تقريبا 25 حرف في المرة الواحدة فيريت تساعدني في حل هذا


اما السؤال ثاني في المشروع الاخر الذي يرسل الصورة انا فكرت ادمج الاثنين مع بعض بحيث يرسل نص وصورة ولكن السؤال كيف اعرف البرنامج متى يحول البايات المستقبلة الى صورة ومتى الى نص؟؟

وشكرا لكApplause  
Fadi Abdelqader
Posted: Monday, February 15, 2010 11:16:43 PM

Rank: Administration
Groups: Administration

Joined: 4/9/2008
Posts: 80
Points: 17
Location: SocketCoder.Com
Hello mnm,

for your first question you should increase the buffer size (the Bytes array for the sender and receiver) so you can send more then 40 characters for each message...

for your second question you should send the image on a port and the text on another different port for example send the image on port 5050 and the text on port 5060 ...

good luck





Visit our blog http://socketcoder.blogspot.com
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.033 seconds.