Chat Client Disconnect Button And Username Check

Aug 24, 2010

I am working on a code for a chat client/server and I have it all working, I can connect and chat locally and global. The problem I am having is that when someone just hits the X in the corner to exit it crashes my server as well as the fact that if someone wants to they can make their username the same as someone elses.

[Code]...

View 5 Replies


ADVERTISEMENT

VS 2008 Chat Server/client - After The Client Clicks Disconnect Or Closes By Task Manager, Looses Connection

Aug 18, 2009

Im using the code from [URL] as a starter, most of the code is the same. the chat system works fine but on the client a added a disconnect button "clientSocket.Close()" and as soon as i click that i get errors, on the client, this is the code...

Private Sub getMessage()
For infiniteCounter = 1 To 2

[CODE]...

And this line...

serverStream.Read(inStream, 0, buffSize)
gives me "Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall."

Now im talking the server, after the client clicks disconnect or closes by task manager, looses connection, etc the server crashes and gives me.

View 5 Replies

VS 2010 TCP Chat Server Closes Socket On Client DisConnect?

Jun 24, 2010

I am working on a chat client and server, and so far it works well, but when I close the client, the server throws an exception because it continues to try to do processes on the disconnected client. I have tried adding clientSocket.Close() in various places throughout the client and server with no luck. Does someone know how to add the disconnect code to either the server or client with this code?Server:

Imports System.Net.Sockets
Imports System.Text
Module Module1

[code].....

View 5 Replies

Disconnect Button For My IM Client?

Aug 27, 2010

I am currently working on a messenger client that connects to a server then back to the clients for full chat room support.I have it operational however when you close the client before connecting to server it closes normal, if you close the client after you have connected to the server then the client dissapears but it is still running in processes. To make it worse if you close the process it then kills the server.What I need is a disconect button code so it will stop crashing it.Here is my code Client:

Imports System.Net.Sockets
Imports System.Text
Public Class Form1[code]......

View 4 Replies

VB2008 - Press Enter Instead Of Clicking Send Button In Chat Client

May 31, 2009

How can I make it to where instead of clicking the send button every time I want to enter something in my chat client, I can just hit enter?

View 10 Replies

Enter Right Username And Password Then Check Right Radio Button

May 16, 2009

So far i have a normal login system but want to add 3 radio buttons.you have to enter the right username and password then check the right radio button..

View 5 Replies

Disconnect From A Server With My Client?

May 22, 2010

ok i got this from online source the only problem i found with it is it will not disconnect from the server on a regual basis, now i did some mods on it but nutting to change the way it works i am using vb2008 the server side i have no problem with it. here is the code for the client:

[code]...

i just can't get it to disconnect on a regular basis only maybe 50/50

View 1 Replies

C# - TcpListener: Detect A Client Disconnect?

Jul 29, 2009

How can I detect when a client disconnects from the TcpListener ?

Each of my clients is handled in a separate thread.

View 1 Replies

Remove Client From Listview Via Disconnect?

Apr 10, 2010

I'm trying to make a chat room that when the user connects hes added to a listview. Im having trouble on how would i remove that client when the user disconnects.

I understand that you can do ListView1.Item.RemoveAt(Sender) but that would not work because RemoveAt only accepts integers.

View 3 Replies

Server Detect Client Disconnect?

Dec 23, 2011

Searched quite a bit and am having trouble finding how to have the server catch the client has disconnected. When the server detects the disconmnect it goes bonkers. Would like to Try and Catch ex so I could gracefully handle it.

View 2 Replies

VS 2008 Turn Winsock Chat System Into A Multi-client Chat System?

Mar 25, 2011

i have made a client and server chat system in VB 2008 with winsock,it's a one to one chat and works perfect fine, but do anyone know how to turn it into a multi-client chat system? Code in below: Here is the code for the server:

[Code]...

View 3 Replies

Chat Client To Client Without Server Just Use IP Address For It?

Apr 19, 2012

Chat Client to Client Without Server Just Use IP Address For it?

View 1 Replies

FTP Chat - Can't Use The Same Username?

Jan 10, 2012

I'm making a basic FTP chat for me and my friend, how would I make it so the people can't use the same username? I don't know how to use databases..

[Code]....

View 1 Replies

2010 - Chat Program - LogIn - Read File For Username And Password?

Nov 22, 2010

1) I have a chat Program.

2) To access the Chat Program one has to put in ones Username and password in a Login Form.

3) TextBox1 = Username TextBox2 = Password

4) One clicks the "Log In" button.

5) HERE is the problem. I do not know how to check if the specific username and the password are correct. I have a file called "Users.dat". In there every valid Username(marked with a *) and it's Password(marked with a #) is contained e.g.*Username#Password.

I want my "Log In" program to check if the Username matches one of the usernames and if the username is found in the file, if the password provided is the same as the one standing behind the Username in the file.

6) If both the Username and Password are valid, the Chat Programs shows up.

View 4 Replies

Create A 2-way Client Chat App?

Mar 24, 2011

im a bit humiliated on searching the net with a step by step instruction on how to create a vb.net form app that can communicate to other computers using tcplistener/tcpclient.

View 11 Replies

.net Multi Chat Client/server?

Oct 19, 2009

I have been searching for days and months on youtube,google and everywhere else about how to create a Multi user chat system, where everybody can talk to each other all at once. Some people say Winsock is the way to go and others say TCP/IP is the way to go. I have little to no experience in either one of them. So if somebody can give me a really great turtioal or show me the guide lines on how to create a server and a client I would highly appreacite it. I am using Visual Basic 2008 express.

View 3 Replies

Client-server Chat Application

Jan 15, 2012

I made one client-server chat application using vb.net. I want to know how can i change the form/icon color when a client sends a message and vice versa.

for eg: like in yahoo messenger or msn messenger,etc, How i user knows when he receives an message.

View 1 Replies

Communications :: Server / Client Chat?

Aug 18, 2010

I have been searching far and wide for knowledge regarding how to make a server program with a client program.Think like Msn ( Messenger ) You have the client and you send a message which is then send through the client to the server, and then to some other client (a friend might be ).I want to make a semilar program where ill make the server and the client myself, i just need a hint or two to get started.

View 1 Replies

Create A Chat Client For Vb2008?

Mar 22, 2010

create a chat client for vb2008.The user logs in from a form, And they are taken to the main form with all the features. From their I want them to already be logged into the chat. The chat will get the username from the config.ini file. Since multiple people will be using this, I will be hosting the server part of the chat on a windows 2008 server.

View 2 Replies

How To Use In A Server To Client Chat Room

Mar 6, 2009

I have been looking for a really detailed tut on how to use in a server to client chat room. I looked on google but they just post the script which helps alittle but I need a lot of detail to make a working chatroom.

View 2 Replies

Making Button Connect / Disconnect To / From A VPN Connection

Jan 13, 2010

I have a VPN connection set up on my computer. I am trying to make a button in my VB.NET program to connect/disconnect to/from the VPN connection. I have tried making a shortcut to the VPN on my desktop and calling it with the Shell method but I get an error saying file not found. I have also added the shortcut extension ".lnk" and still have the same error.

[Code]...

View 2 Replies

Build A Chat/IM Client For An Office Network?

Jan 26, 2011

If I decide to build this, this would probably be my first "large" project i've ever done myself.What I am looking to build is a very simple Chat/IM client to use for the users in our office network. It would just call us their Windows logon name and use that to IM and the like. I'm talking a very simple client, with a list of names of people who are logged into the network, and option to IM them and an option to do a multiple user chat. It doesn't have to be visually stunning.

View 1 Replies

System.Net.Sockets Namespace - Use For A Chat Client?

May 31, 2009

How would I use this for a chat client? I'm not sure where to even start and the internet is helping me find much about it.

View 4 Replies

VS 2005 Creating Client-server Chat?

Jan 22, 2012

I have google it but I couldn't find the answers. So basically I want to make a Client-Server chat. I just want to creating each server for the clients to entered the chat room with each different server, e.g: client 1 and client 2 entered chat server 1 (just a name of a room), client 3 and client 4 entered chat server 2 and so on. How I can do that?

View 5 Replies

VS 2008 Make My Own Chat Client But Cant Find Any TUT'S

Jul 10, 2009

i want to make my own Chat Client but i cant find any TUT'S i can only find them in vb6 so if anyone can point me to a tut.

View 2 Replies

VS 2010 Chat Client Colorized Text?

Jun 18, 2011

Ok, got a simple chat client working. Added code to the ~client~ so that when it receives certain codes it will change the color of the text..

[code]...

It takes away all { codes like it should, but doesn't quite colorize correctly.

View 2 Replies

VS 2008 Making Button Connect/disconnect To/from A VPN Connection?

Jan 13, 2010

I have a VPN connection set up on my computer.I am trying to make a button in my VB.NET program to connect/disconnect to/from the VPN connection.

I have tried making a shortcut to the VPN on my desktop and calling it with the Shell method but I get an error saying file not found.

View 3 Replies

.net TCP Chat Client Set User Text Font Color?

Sep 18, 2009

i have wrote a chat app and have it so it sends text to a rich text box my question is

how would i set it so a user can set there font color and when they talk it shows in that color to all other users but the nick name is in a diffrent color from the text

View 11 Replies

Client/Server Chat Application ..Works Only On Same Network?

Mar 14, 2010

I have a client/server chat application which I made . My question is how do I make the application work not only Locally but On any other network. I tried putting my IP in the part of creation of the client socket .

View 2 Replies

Create UDP Multicast Client And Server Chat Application?

Mar 23, 2003

UDP multicast client and server chat application.

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved