|
-
Feb 20th, 2007, 06:37 AM
#1
Thread Starter
Hyperactive Member
message
Hi
I develop an windows application using vb.net and sql server
I want to send the message to another user who are login
to the application. I can access the Ip address of every
user.
Can any body guide how to send the messge to another user.
thanks
asm
-
Feb 20th, 2007, 12:45 PM
#2
Re: message
You would want to use TCP Sockets. Try a search as there is allot of info already on the forums for it.
System.Net.System.Net.Sockets
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 20th, 2007, 03:52 PM
#3
Hyperactive Member
Re: message
i'm about to check that out too because i had a question along the same lines. but that would allow you to send instant messages?
-
Feb 20th, 2007, 04:15 PM
#4
Re: message
instant messages, you mean like IM applications? Yeah you can do that.
-
Feb 20th, 2007, 04:38 PM
#5
Re: message
Whatever you send via the socket is only delayed by the network speed/location. So its just about instant, yes.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 20th, 2007, 05:00 PM
#6
Hyperactive Member
Re: message
what i'm trying to understand is this part...
say i have 4 computers and i want to set up a chat server type application instead of an instant messanger... do i have to set the listen and send protocals on the program?
do i need a server or is tcp a direct connection between two instances of the running program?
-
Feb 20th, 2007, 05:13 PM
#7
Re: message
No, for that setup you would need one instance running on one workstation and it would request a connection to some other workstation. Each instance would be listening and sending. Basically a peer to peer workgroup. You can set up a client/server scenerio where one dedicated workstation will always be sending and receiving directing traffic to those that are communicating wth each other vs each communicating directly with each other. Either way they all will need to send and receive or Listen and transmit.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 20th, 2007, 05:17 PM
#8
Addicted Member
Re: message
3 alternatives:
1- Each client tries to connect aother clients and this is too hard...
2- User will give the command to connect a client (only messaging with 1 client sametime )
3- The Best thing is to have a server. Every client connects to server and send their messages as strings. For example: Mes|User1|Nickname|Hi how are you?
Server will send this to all clients ( even to sender ) Every client will get it and split it with split function. And write it to a textbox, listbox or whatever.
I suggest you to use 3rd one. You can do it easily and manage everything like setting passwords, taking log, saving messaging etc...
-
Feb 20th, 2007, 07:28 PM
#9
Hyperactive Member
Re: message
i'm interested in what you said about directly talking to each other, sort of like an instant messenger. how would i go about setting that up?
is there code avaliable on the internet that would allow me to do that so i don't have to type from scratch?
would it be possible or logical to put it in the background worker?
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
|
Click Here to Expand Forum to Full Width
|