General :: One Server Many Client Chat Program Using Sockets

Aug 1, 2011

I am trying to write a chat program with sockets as part of my project. I made a socket server, using fork ,I tried to connect it with different clients.Each client will send messages to others through server.So server has a shared memory storing every clients username and client id. But the problem facing is first client is able to sent messages to every other client formed after that.But second client onwards it is not able to sent message to previously connected ones. Server is not able to write on those client id's.

View 4 Replies


ADVERTISEMENT

Programming :: Creating 2 Sockets In Client / Server?

Jun 9, 2010

I have a problem creating my second socket in client file. the program was running well but when I try to add another socket to connect to the same server, I got a problem connecting to the first socket! it doesn't make sense. the original code was:

sockfd[i] = socket(AF_INET, SOCK_STREAM, 0);
if(sockfd[i] < 0) error("(MAIN) - Error openning socket 1");
port_num[i] = portno;
bzero((char*) &serv_addr[i], sizeof(serv_addr[i]));

[Code].....

View 1 Replies View Related

Programming :: Closing Multiple Client Sockets In Server ?

Nov 30, 2010

I have written a server application which has select for both incoming new client connection requests and incoming data from client. I am able to process incoming connection requests and client data.

For example, server has 8 clients connected to it. If client 3 disconnects from server, how will server come to know this client has disconnected and to close its client socket fd gracefully? Does server's select get data on that client socket fd as 'close' data or any error code in recv() function that notifies server to close this client socket fd? Also if client disconnects abruptly without sending close request to server, how should server handle this? Does server get "EPIPE" error?

View 1 Replies View Related

Programming :: Chat Socket Between Client And Server

Mar 17, 2011

I want to built a Chat Program (based on Socket connection) between client and server. I use the GTK+ &GLADE graphic tool. Can you send me the code for this program or any material to learn. Also, I want to know how to show the input to text view (in GTK+&Glade).

View 3 Replies View Related

Programming :: Connect Multiple Sockets From A Single Client To A Single Server And Keep Them Open?

Oct 13, 2010

I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?

View 1 Replies View Related

General :: File Transfer Program In C Using FTP Client And FTP Server?

Jun 8, 2010

i am new in tcp/ip.i want to write a program using c for file transfer where FTP client and FTP server will be used.and also this program should work for ipv4 as well as ipv6.and muiltple client can be connect simultaneously.i dont know how to start program.should i use shell script or socket programming for file transfer?can we use FTP client and FTP server in socket programming?

View 2 Replies View Related

General :: Switch Default Chat Client In Ubuntu 10.04?

Jul 19, 2010

I have been using ubuntu for almost a week. and i am impressed on how it seems to fulfills most of my computer needs better than windows. when i click the new message indicator (the envelope), and click chat, by default it opens empathy. personally i prefer pidgin, and i would like to make it open pidgin instead of empathy when i press chat. it currently shows pidgin in the list anyway but i want it to appear as chat.

View 1 Replies View Related

Programming :: C/C++ - Program Detecting New Sockets

Jul 25, 2010

I need to create a C/C++ program in Linux that succeeds in detecting how many tcp-sockets and what tcp-sockets are created by the other processes in the system in a particular time interval (e.g., the interval time this application is running in). Then, I'd need to get some information like local/remote port number and local/remote ip address of each of these sockets.

View 8 Replies View Related

Networking :: Bad: Two Sockets Of Different Ports In A Single Program?

Mar 4, 2011

I am trying to make a file proxy server...that is any request of file a client makes goes to the proxy server...it checks it in cache if not there then asks main server for the file. to act as a server for client and as client for server...how to do it in a single program. I tried with 2sockets with different ports one for client-proxy server and one for proxyserver-main server.But it does not workAm i doing something wrong or is there any other method

View 2 Replies View Related

Server :: Set Up A Program Or Application Online To Be Used From A Client Computer?

Apr 20, 2010

Is there a way I can install a windows program to webspace and run it from a linux client computer? To specify, I'm a student at the University of Minnesota. I have access to linux machines running Ubuntu, however, the space allocated to us is too small for the program I would like to run on these computers. I do have webspace I can use though. The thing I'd like to be running on the linux computers is a windows application requiring installation. So is there a way to put/install/(whatever else it might be called) this program onto my webspace and be able to run it from the linux computers? I know it's probably unlikely, but maybe?

View 4 Replies View Related

Programming :: Connection Refused In Client Server Program

Oct 23, 2010

I wrote a simple client server socket program in C.

View 1 Replies View Related

Ubuntu :: How To Install Pidgin Chat Client

Apr 4, 2010

how can i install pidgin chat client on ubuntu

View 1 Replies View Related

OpenSUSE :: Empathy Chat Client - Got Some Errors That Need Addressing!?

Sep 9, 2010

I've got a problem occurring with my openSUSE 11.3 // GNOME Empathy Chat Client. When I try to connect to my Facebook account, my client tells me that I have a Network Error. Last time I used the client at home, it worked perfectly fine, but when I'm at work it doesn't.

Now, you guys may say that my work's network may have ports blocked, or the firewall is blocking its use in some way, but I find that hard to believe. My reasoning? I am able to connect to my Facebook account thru Empathy at work on my previous Ubuntu 10.04 system with no problems. I have also been connected to the same chat accounts this whole week on my openSUSE 11.3 // KDE 4.4 Kopete chat client.My Empathy connects to my Skype with no problem also. So, do any of you have any ideas that could possibly solve my issue? I love being connected to my Facebook chat at work because I don't see anyone nearly as often, and it's a great way for me to keep in touch with them.

View 2 Replies View Related

Software :: Create Server Program That Will Stream Contents Of File To Any Client

Apr 26, 2011

I need help to do a program that emulates the following shell command line:"sort </etc/passwd | less".Using a socket in a connection-oriented setup.First the contents of the file /etc/password are being fed into the sort program. The sort program is then sorting the contents of the file and sending it to another programm called less. Less is paging the results so that you can see one page of the results at a time.I know that i can solve the problem this way:

1. Create a server program that will stream the contents of a file to any client that connects to it
2. Create a client application that will connect to the server and download the contents of the file. The program should then sort the file. After sorting the file the client should connect to the "less" program and send the sorted results
3. Create a server program that will listen for connections and download whatever is sent to it. It will then display that data one page at a time.

View 1 Replies View Related

Ubuntu :: Broke Chat Client - Reset Any Empathy Settings?

May 6, 2010

1. My status selection has disappeared from the contacts menu (See #1 on picture). This lead me to a desperate search on how to delete/reset any config files for empathy. Tried to complete-remove and then reinstall it. This though didn't remove the settings or repair the glitch but instead led me to my second problem.

2. After reinstallation, this redundant little notification icon appeared (See #2 on picture). Cute... now how do i get rid of it? how to reset any empathy settings (problem one would at least solve then... I would presumably think?

View 1 Replies View Related

Ubuntu :: Loopback Sound To Wine Chat Client 'stereomix'

May 31, 2010

I'v spent 3 days in google hell I'v learned alot but still cannot find a solution to my problem. I'm trying to use for a lack of terms 'Stereo Mix' I have Paltalk Messenger installed under Wine 1.01 everything works fine, including my mic I want to loop my sound from rhythmbox and play it in IM/Chats One of the Best resources I have found was Ubuntu 9.04 Sound Solutions Forum Topic

Every package is installed from the link above and I am able to record from rhythmbox using Gnome Sound Recorder but I am unable to send the sound to Paltalk. I'v also ran into a few resources that talk about creating a virtual sound card and then looping the sound back but I was unable to find a good clean howto I'm using Ubuntu 9.04 32Bit I upgraded all the pulse audio tools and now when I key on mic I can click my recording tab see my wine app and switch the stream over

View 2 Replies View Related

Ubuntu Networking :: Unable To Check Email & Use Chat Client?

Aug 16, 2010

Just installed Ubuntu 10.04 on my Acer laptop last night. I wasn't able to surf the net at first but after searching these forums, managed to get it right (changed setting in firefox). I was able to use update manager and the software program ok (downloading and installing). I am using a adsl via wifi. Networked pcs and my NAS/samba work fine
My current problem is that while I can surf the net and download updates etc, I can't seem to get email and chat working, it just gives a timeout error for some reason.

View 5 Replies View Related

Programming :: Chat Program In C

Aug 17, 2010

Am new to this community and this is my first post. am doing a project where i have to develop a wireless ad hoc routing protocol. I have just begun working on the project. I did not know where to start, so started off with a simple chat program using TCP and thought of making the modifications to it later on. But I do have a prob even i running that!

Am not getting the messages in a synchronized manner. The prog is running fine, but the messages that i type from the server are not reaching the client at all, and at times some garbage values are getting printed(When the strcmp()fn returns 1, "connection terminated" gets printed timely in both the sides. this is the oly situation where i do not get garbage values.) am using VC++ 6.0 here.I have been breaking my head for the past 3-4 days for this simple issue. any response to this would be of great help.

View 14 Replies View Related

Ubuntu :: Chat / IM Client That Has Email-actions And Auto-login (Trillian-like)?

Jun 30, 2011

I've been using Trillian under Windoz, for one reason only - the email message-handling is amazing. Here are the features that impressed me the most with Trillian:

Check multiple email accounts + notifications (but that exists in many other clients)
Preview subject line + message body teaser (this exists to some extent in Adium)
Preview the above not only upon email-check, but in the client window itself or as tooltips when hovering over email-account name Email ACTIONS - right-clicking on individual messages, can perform common tasks (archive, delete, view, mark as read).

The actions available change for different protocols AUTO LOGIN-when double-clicking the account a browser window will open and automatically log me into the account That last feature is the most important one - at the moment, Pidgin/Adium/Empathy just send me to the email-account's homepage. I have (too) many email accounts, and having to enter login details to each is a pain. With Trillian, I could d-click an account, see my inbox, logout and then d-click another account - and be logged into that one... easy peasy.

Now, this is not a commercial for Trillian... really not. I just haven't found any other client that can do these things, nor have I found plugins for Empathy/Pidgin that enable this. I've been using Pidgin for now, cos it doesn't give any trouble with Skype integration (already tried the skype4empathyandpidgin, didn't work out) and has nice (not amazing) integration to the messaging menu.

View 3 Replies View Related

General :: How To Install A CHAT SERVER

Sep 29, 2010

Does somebody here have a knowledge on how to install and configure an open chat server system? I'm using CentOS ver5.3.

View 3 Replies View Related

Ubuntu :: Program To Use To Chat And View Webcams On Yahoo

Aug 3, 2010

I have it installed on a HP mini 1010NR It worked great once I got help to figure out how to make my wifi work. Now I am trying to find the best program to use to chat and view webcams on yahoo I used gyache at first but got sick of it gliching and booting me telling me people were online when they were not. So I tried Kopete and like it but cant get the webcam to work every thing works just fine I cant send invites and cant receive images. At first I was getting an error message telling me to go to a nonexistent site for help. Now it just tells me No "webcam image received" and just strait up does not send invites. I am trying to get this to work or be directed to a better program that meets my needs and how to set it up.

View 2 Replies View Related

Ubuntu :: Seeking Information On Cross Chat Program.

Dec 6, 2010

Can anyone tell me of a simple chat program that I can install on both Windows and Linux? I need it more for the local intranet than the internet. I wish to chat with window users in my network? Also please forgive me if this is the wrong forum for this question.

View 7 Replies View Related

Software :: Best Chat Program For Linux Desktops In Call Centre?

Dec 2, 2010

A friend of mine is setting up infrastructure for a new call centre and they are using Ubuntu Linux on staff desktops. They need a chat program that will only work on the local network, and they want to allow staff to only access a browser, the chat client and spreadsheet software.

(a) What chat program can they use, and

(b) How can one disactivate most of the programs running on the desktop? Is uninstalling via synaptic/ Ubuntu Software Centre overkill?

View 7 Replies View Related

General :: Chat Application - Use The Juggernaut Plugin - Internal Server Error

Sep 23, 2010

I want write a 2-way chat application in the my website, and i have to use the juggernaut plugin. but a recieved an error that " internal server error"

View 1 Replies View Related

General :: Activate Firewall From Server - Account Users Cant Login To Chat Room

Mar 10, 2011

I have a visichat site and 1and1 server.

i am having a problem of my firewall.

when i activate firewall from my server account users cant login to chat room. the error occured " Connection To Server Failed".

will anybody let me know how can i fix this problem so that i can active my firewall and also users can login.

View 2 Replies View Related

Server :: LDAP Server Vs Client / Export Server's Home Directory To The Client?

Jun 11, 2011

I configured openLdap in RHEL5 on virtual achines,everything is working fine, I created a user called ldapuser,in LDAP server and i created a home directory for ldapuser in my LDAP client, now i can able to login to the both Server and client with ldapuser account....

Now here what am expecting is i want to export my server's home directory to the client, i dont want to create home directories manually in the client machine, i googled about that, and it can be done through autofs.....

what need to be done on the client and server side.

View 6 Replies View Related

Programming :: How To Use Sockets To Display GUI At Server End

Aug 27, 2010

I am struggling a little on how to best approach this problem. I have wrote a server program that runs via xinetd, that obviously spits out data at the client end. Fairly straightforward stuff?There is a point in my server code where I need to display an image/gui i.e something that runs on X11 that prompts a user to perform a task on the display connected at the the server side.So far I have written a test program that displays some text at the client end and then launches the browser at the server end. I have also set the following export. Code: export DISPLAY=:0 and then goes on to launch my web browser. Works great when ran locally on the server and when I remotely telnet in to the server and run the code.

However when I try to run the same piece of code as a xinetd service the export seems to have zero affect and the client terminal window displays errors associated with there not being a X11 server running.The code launches fine when I create a socket to serverip:6556 it just the ability to display gui programs to another display that does not seem to be working.

View 5 Replies View Related

Server :: Apache Crash - No Listening Sockets Available

May 23, 2011

Code:
[Sun May 22 04:02:06 2011] [notice] SIGHUP received. Attempting to restart
(98) Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Above message is from /etc/httpd/logs/error_log.1. Saturday morning I reinstall my server. After finish, no error. I can access my HTTP server. Monday morning it has crashed. I don't know what is the meaning about this message.

View 2 Replies View Related

Ubuntu :: Empathy:voice Chat And Video Chat Option Not Highlighting?

Feb 15, 2010

empathy:voice chat and video chat option not highlighting. i am unable to use that facility to talk to my brother who lives abroad..

View 3 Replies View Related

Server :: Unable To Start Apache - No Listening Sockets Available

Apr 29, 2011

I am very new (since yesterday) to Linux also new to web server setup. I have installed all LAMP components, including SSL as described here: [URL]. I have added LISTEN 443 Wanted to restart the apache server -> no success ! stopped it, now doesn't start at all:

Warning msg=>
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:44 no listening sockets available, shutting down . .
Failed

I tested Apache and my PHP earlier and it worked. Now after SSL and FTP installation it doesn't work anymore! Also I am wondering about my server name, it is the set IP of the web server, surly i should change that? Only used link for SSL set-up, used diff links for apache php etc (also have java JRE installed as I will need that later for my app) also have GNOME available, but prefer command line.

View 5 Replies View Related







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