|
|
you know.. you can edit your messages after posting them. you don't have to reply to them...
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
i want to develop a small instant messenger without using the client /server model
============================================================================================
sorry :have to say that i'm begining with visual c++ and winsock more(network programming) comming from delphi
============================================================================================
so people advise me to use the p2p model i just wana know.
1°)
Without a server is it possible ????
2°)
If yes how can you know if your friends are connected if they have a non static "IP"!!!!! ??????????????
3°)
how programming 2 aplications that can communicate without a server with winsocks is it possible ?????
just give an idaer not the project or a tutorial , it's as you can if you can
if you think that you can't , that means that you can : if you understand this there youn can
|
|
|
|
|
smallcoder wrote:
i'm begining with visual c++ and winsock
Although you wanna do p2p it's better to learn the basics and do a client/server version of the messenger first. The stuff you learn will be directly usable in the P2P version.
smallcoder wrote:
Without a server is it possible
Yes. Otherwise how would gnutella work?
Most gnutella clients connect at startup to server which then gives them a list of nodes to connect to. Another method for discovering peers is to send broadcast packets. This will only work on a lan however.
smallcoder wrote:
how programming 2 aplications that can communicate without a server with winsocks
The client/server model is just a paradigm. In a P2P application a client is both client and server (thus you should have a thread to accept() connections) and also a client of other nodes in the p2p network.
bibamus, edamus, cras moriemur [eat, drink, for tomorrow we die]
|
|
|
|
|
i explain you my problem!!
i'm in an computer school and i got a project to do!this is my second year!!
so i choose to do a network application !!!
description :
An instant messenger software with some other stuff , like
sending mail using smptp ,sharing mails using pop3 and upload/download possibilty and ftp possibility!!!developed with vc++6.0
If i do all this stuff in one it's because my teatcher oblige me otherwise i would just do tthe instant message only!!
so for all this stuff i decide to use winsocks for instant message,wininet for ftp and upload/download !!!
But my part in this project is coding the instant messenger the rest is for my friend!!!!
the problem is that to put my stufff on the net on witch service will i put my serveur to mange all the client over the web!!! i don't know if some service are free for letting me doing this so that's why i would like to do a p2p !!!!
but if you have another idaer for me i'm ok
|
|
|
|
|
If this is a project for your teacher to see than there is no need to put it on a server on the web. You can run the server on the same machine as the client for testing/demo purposes.
bibamus, edamus, cras moriemur [eat, drink, for tomorrow we die]
|
|
|
|
|
ok your right ! so just another question : i want to know how it's possible to perform or code the stufff to permit a client to see that his friends are connected to the net!!!
people tell me that in aol or msm they use your e-mails address to see if your online .....
so imagine that you give the stuff . if i code it like this how will i show it to my teacher?????
it would be impossible!!!
there for, the only solution would be doing it with ip????????directly
|
|
|
|
|
Not at all. They don't check by sending an email to see if you're online. Most people have a dial-up connection so their ip changes. How would it work if it was ip-based?
IMs work by giving each user a GUID. Plz note that AOL and MSM are not P2P but client-server. When u create a buddy the client will tell the server that a particular GUID is a buddy. Only GUIDs are passed, not emails.
Having buddies in a P2P IM system is harder because you don't have a central server to do the book-keeping. The only way i can see it of working in an IP-agnostic manner would be for the IM to send a search message with your friends GUID. Each client at install time creates a GUID using the win32 api. This means that no central server is required as collisions are (nearly) garuanteed to not happen. Using a P2P based IM creates some issues. Y dont u wanna use a central server?
It's only people who wanna share mp3s who need P2P
bibamus, edamus, cras moriemur [eat, drink, for tomorrow we die]
|
|
|
|
|
ok !!!
as you you make it more clear for me i understand that that it was better to use a client/server model!!!
but can you be more clear about the GUID and buddy !!!i don't know what it is
So you could just tell me where or how can i get more information obout that!!!!
|
|
|
|
|
give me the bases and i would build you the house
thanks
|
|
|
|
|
GUID = globally unique identifier - used to uniquely identify a connected user.
I suggest going to freshmeat.net and searching for IMs there. You can download the source-code and get an idea. IIRC Codeproject also has source code for IM. I thinks it's for Sonork.
HTH
bibamus, edamus, cras moriemur [eat, drink, for tomorrow we die]
|
|
|
|
|
thanks a lot but the buddy
|
|
|
|
|
you say you create a buddy never see this terms maybe because i'm french
|
|
|
|
|
|
They are all Indian fonts in XP.
|
|
|
|
|
Rama Krishna wrote:
They are all Indian fonts in XP
LOL
Do you know how I can filter them out? I am working on a custom font thingie [.NET] but this font problem is annoying me.
These 5 fonts dont render at all [they just show up in some random font and MeasureItem totally fails on them.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Nishant S wrote:
These 5 fonts dont render at all [they just show up in some random font and MeasureItem totally fails on them.
I get them rendered correctly in .NET in my balloon help. Even Nnamdi gets that correct in his Font combo.
|
|
|
|
|
Rama Krishna wrote:
I get them rendered correctly in .NET in my balloon help
Huh? They show up in the actualy indian font?
I am using Graphics.DrawString and it shows up as Arial but bigger, really bigger
Rama Krishna wrote:
Even Nnamdi gets that correct in his Font combo
Actually no. He is not chking for font height. Thus they dont expand, that's all. Even in his thing they show up as Arial.
p.s. How did you see that? You are on sonork too?
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
|
I thought that you were not able to measure the height.
Anyway looks like GDI+ doesnot have anymeans to do that. You can use PInvoke to find whether a font i strue type or not.
|
|
|
|
|
Rama Krishna wrote:
You can use PInvoke to find whether a font i strue type or not.
You mean use EnumFonts and the callback etc... ?
Damn! All that work just to figure out whether a font is true type!!!
This .NET thingie is sure incomplete!!!
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
try chaning the charset or language or whatever
- Roman -
|
|
|
|
|
Nishant S wrote:
raavi
Did someone call?
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I don't know much about fonts, but it sounds to me like either they aren't installed correctly, or you're trying to use characters that don't exist for that font (i.e. english characters for indian fonts). Try using the Character Map utility to determine which characters are actually implemented, and then use those.
---
Shog9
If I could sleep forever, I could forget about everything...
|
|
|
|
|
Shog9 wrote:
don't know much about fonts, but it sounds to me like either they aren't installed correctly, or you're trying to use characters that don't exist for that font (i.e. english characters for indian fonts). Try using the Character Map utility to determine which characters are actually implemented, and then use those.
VOILA!!! That's it. You've hit it right in the middle of the eye ShoggyBoy!!
w00t!!
Shog, remember that quote I made about you being a genius. I forgot the URL and my bandwidth prevents me from using it. Can you please repeat that for me, so I can just say it aloud a few times here.
Man, it's all that salmon he eats!!!
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|