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


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

Communications :: Client-server Communication Program - Click On CmdListen In The Server Form And CmdConnect In The Client Form

Jul 23, 2008

The problem I have is: When I click on cmdListen in the server form and cmdConnect in the client form,both programs won't respond and they crash for some reason I don't know.

Client source code:

Code:

Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[CODE]...

Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[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

VS 2008 Multi-User Chat Program (Server & Client) With Main Server?

Aug 10, 2009

Multi-User Chat Program (Server & Client) with Main Server?

View 1 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

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

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

C# - Handling Client/server Communications Over TCP?

May 25, 2011

I'm setting up a basic TCP client/server system and I'm wondering how the back-and-forth communication should ideally work. In my specific situation, the client will have to submit login credentials, and make specific requests from the server (the server interacts with a remote database).Here is what I would THINK to do.. and I'm just looking from input from other devs.

SERVER: Wait for new connections
CLIENT: Connects to server
CLIENT: Once connected, send login credentials with an instruction code.

[code]....

And another scenario.. let's say the client wants to request a log of what's happened on the server recently (the text of a console application window).

CLIENT: Send request message to server for recent log
i.e. $REQ$,105
SERVER: If instruction = $REQ$ and request id = 105, get window text and send to client
i.e. $DATA$,105,<data here>
CLIENT: If instruction = $DATA$ and data id = 105, parse data and display to user

The data being requested could be plain text, or a .net datatable translated into XML, etc. It could be a variety of things.

View 1 Replies

VS 2010 Server/Client Communications?

Jul 19, 2011

I have started to learn how to use the TcpListener class to create a server/client chat facility, But im having some issues as to how to perform this at the moment i have the following code for the server.

Dim counter As Integer
serverSocket.Start()
ListBox1.Items.Add("Server Started!")
counter = 0
While (True)

[Code]...

Client Accepted (I understand would most likely need a new thread for each client who is accepted, Once accepted , Return to the main loop to check for more clients.) No Client Connecting I understand that this may have to be done in a thread but ive not looked into using a seperate thread for this to infinitely run.

View 1 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

Making Voice Chat (client/server)on .net2008?

Mar 6, 2010

making voice chat (client/server)on vb.net2008

View 6 Replies

Tcp/ip Client Server Lan Chat Using Visual Studio 2005?

Mar 11, 2010

i have wanted to create a TCP/IP Lan chat program in visual studio 2005. i have already created an interface for it but no codes yet. Attached are images of the client and the server.

View 3 Replies

VS 2008 : Making A Chat Client And Server With Winsock?

Feb 10, 2010

Make a Chat Server and Client using winsock:I want to have a Login forum and Be able to ban user and Give them ranks I would like it to Use INI files.

View 2 Replies

Communications :: Multi Client - Single Server ?

Mar 21, 2010

Developing an application that will serve as an application server (Similar to 'Run Advertised Program' that is present in Windows Server). The downside to using Microsofts current system is that it a) requires Windows Server and b) Works only with systems setup in a proper Domain. I have a number of systems in my house and I'm fed up of downloading from the net or setting up network drives etc etc. I've tried using the code in a similar topic posted a few threads down, but it obviously doesn't support multiple client connections.

View 9 Replies

Communications :: Track Entities Id's From Client To Server?

Apr 17, 2012

Well first off let me say I am not sure if this should be in network or game programing but I think network programing is more relevant.

Anyway

I am creating my first game that runs over a network and so far everything is working. I have a server program, the clients can connect and see each other flying around. (weeeee)

However I have hit a wall when trying to make them shoot. The most easy way I can think to do this, is to have the client tell the server �hay i need a bullet pointing at x angle moving at y speed� the server then spawns a bullet entity then sends a spawn entity packet to all the clients. The main problem I see with this, is that the clients gun will have a delay based on latency.(funValue -= 1000)

The only other way I can think to do this, is to have some fake bullets spawn on the client but when the client gets the spawn bullet packet from the server, I am not sure how to keep track of what fake bullets to delete.

View 1 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

Communications :: Bare Bones Client & Server Apps?

Mar 31, 2010

After three days research, I'm having trouble finding a simple sample app that will work as a server and wait for an ethernet connection request. When it gets one, it should complete the connection, then wait for another connection request.

View 1 Replies

Combobox Unhandled Exception - Make A Basic Winsock Chat Server And Client?

May 31, 2009

I want to make a basic winsock chat server and client, and I just need to know the basics, like.How do you determine where to send the data?How do you determine where to receive data from?How to actually send and receive the data?I just don't want to read from a website that has a lot of extra information. I just want to start off with the basics so I can actually learn.

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

VS 2010 Receiving Chat From A Java Chat Server?

Aug 20, 2011

So, in another related post, i got the chat to send to a java server, cool.Now, it's a matter of sending it back to VB.on the server side of things, (in java), I am using the following

JAVA
public static void sendback(String what2send) throws IOException {
ObjectOutputStream oos = new ObjectOutputStream(mySocket.getOutputStream());

[code]....

View 7 Replies

VS 2008 TCP Server / Client - Client To Send The Server 4 Numbers - Depending On The User's Choice

May 9, 2009

how to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])

View 9 Replies

VS 2010 : Send Data From Client To Server (encrypted) And The String Sent From The Client Is Not The Same As Received From The Server?

Jun 27, 2011

Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.

Client:

Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)

[code]....

View 4 Replies

Client-Server-Client Multithreading - Instant Message Another Client

Jun 21, 2010

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.

[Code]...

View 2 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

Create Client-server App, In Which Client Can View Files On Server?

Nov 15, 2011

basically i just want client to say "C: emp" ENTER

then, server must reply with all its files in c: emp

View 1 Replies

Communications :: Chat Program - Debug LAN Messenger - Computer Actively Refused The Connection On IP/Port" And Then Crashes

Jan 17, 2009

I have a simple chat program i have made, it works but with a few errors.

1st if it can't find the physical pc it is trying to connect to it crashes.

2nd if it finds the physical server but not the program (server) running it says "the computer actively refused the connection on IP/Port" and then crashes.

Code for connect button:

IP = txtboxip.Text
Port = txtboxport.Text

[CODE].....................

View 11 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







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