Hi Dw. I'm developing a Client Server application. At the moment I can connect the two and send data. The main aim is to make a server as a core control. The server only perform actions according to each client request, so the client can request to connect to let say "@Bob" where in my database on the first time "@Bob" initialized a connection with a server he registered a username "@Bob" and the server will capture the IP address of "@Bob" as well as the username "@Bob" and registered it on a database so that when let say "@John" …

Member Avatar
Member Avatar
+0 forum 14

Okay so i'm trying to make a chat application using sockets, and i want them both to be able to write and read simultaneously. So i did some research and found that I/O multiplexing like select() will fix this problem. But I still have one problem. After I compile it and run it, one of the two programs doesn't receive the message 'till after one responds. So for example, the server sends a message to the client right? Then the client won't see the message until AFTER the client responds. Below you can find an example of this as well …

Member Avatar
Member Avatar
+0 forum 2

I am going to build a desktop software with client-server facility.What are the things i need to do for client-server? 1.Should i make 2 different version of the software?One with database for the server and one for client without database. 2.Or should i have some options in one software inside the code?Like when to install the user will choose client/server option and then the required part will be installed? Which is the best way?Can anyone give some step by step idea? Thanks.

Member Avatar
Member Avatar
+0 forum 10

why do i get this error?

Member Avatar
Member Avatar
+0 forum 1

Hii everybody I was building RPC based server-client application I have a struct called event contains int type long int time I have a function in a server that `return (*event)` event * log_1_svc(event *argp, struct svc_req *rqstp) { static event* result; result = (struct event*)malloc (3 * sizeof (struct event)); while (i <3) { result[i].type_id = i; result[i].time = i; i++; } return &result } what I want is to receive results at client using this pointer here is the code at client's site: log_prog_1(char *host,int client_type,int type_id,long int time) { event *result_1; result_1 = log_1(&log_1_arg, clnt); // this …

Member Avatar
Member Avatar
+0 forum 5

i have the server and client system. my problem is how the server enable to retrieve the client's bandwidth usage. i have the codes for bandwidth, but i am not sure how to do it because i confuse what extra codes should add in my client public partial class and the bandwidth class. As in my server program, i had created the windows forms labels for displaying the client bandwidth, and also do not know what should be added in the server code. Please help, thank you. here is the bandwidth class in my client side: [CODE] class Bandwidth_Speed { …

Member Avatar
Member Avatar
+0 forum 1

i want to send a private message to particular client by selecting number in comboBox. but had tried to code it but message still end up receive the message at every clients side that connected to server. i want to send the message using the worker socket object stored in ArrayList, but don't know how to get it correct. Please help. Thank you very much. here is the code i tried, but doesn't work [CODE] void indmsgbtn_Click(object sender, EventArgs e) { try { string msg = richtxtindmsg.Text; msg = "Private Admin Message: " + msg + "\n"; byte[] byData = …

Member Avatar
Member Avatar
+0 forum 3

hello, i have client server program, problem here is that the client program cannot receive message sent from server. the server is working fine, can send and receive, but the client only can send, unable to receive. please help me, thank you very much here is the client code: (richTextBox1 is used to display the received message) [CODE] namespace NBCS_Client { public partial class NBCSuser : Form { delegate void AppendTextCallback(string text); public delegate void UpdateRichEditCallback(string text); public delegate void UpdateClientListCallback(); byte[] m_dataBuffer = new byte[10]; IAsyncResult m_result; public AsyncCallback m_pfnCallBack; public Socket m_clientSocket; string pcname = ""; public NBCSuser() …

Member Avatar
+0 forum 0

hello guys, can you pls tell me now to go ahead with this, basically i just want client to say "C:\temp" ENTER then, server must reply with all its files in c:\temp Is there a way to do this, or may be i am wrong, can u tell me any other way

Member Avatar
Member Avatar
+0 forum 1

i had been trying out the client server program. the client exit or crash by itself when connection establish with server. this error code 10045 being use inside the server code as the socket exception, but why the client still exit automatically? server side code: [CODE] catch (ObjectDisposedException) { System.Diagnostics.Debugger.Log(0, "1", "\nOnDataReceived: Socket has been closed\n"); } catch (SocketException se) { if (se.ErrorCode == 10054) // Error code { string msg = "User no." + socketData.m_clientNumber + " Disconnected" + "\n"; AppendToRichEditControl(msg); // Remove the reference to the worker socket of the closed client // so that this object will …

Member Avatar
+0 forum 0

hello all, i'm a beginner of c#. i need to develop a client server application. how am i suppose to code so that the server can get the ip address of one or more than one clients? Thanks.

Member Avatar
Member Avatar
+0 forum 3

In my project there is an editable grid having three fields 'Quantity-Price-Amount', where a user can change 'Quantity/Price' depending on that 'Amount' field value should change at clientside, so that user can see Final amount for that row before saving. And there is a TextBox which showing Total Amount of all rows, so obviously that textbox value should also be changed. Anybody suggest any idea to do that? Thanks in advance. [CODE] <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" > <Columns> <asp:TemplateField HeaderText="Price" SortExpression="Price"> <ItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Price") %>' OnTextChanged="TextBox_TextChanged" BorderStyle="None"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Quantity" SortExpression="description"> <ItemTemplate> <asp:TextBox ID="TextBox2" runat="server" …

Member Avatar
+0 forum 0

Hi ... i want to send multiple screenshot images from my client to server.. now i already get the screenshot code.. and the only problem i have is that .. i can't send them in my server.. any code will help... Thanks Ahead.. God Bless...

Member Avatar
Member Avatar
+0 forum 2

Hi all, I have code which allows a client console to connect to a server console using .NET Remoting with a shared dll, and then perform some operations. The only problem I'm aving, is that I want the main bulk of the programming logic to be performed on the server itself (within the server class, not the library) - to access the database etc. Eventually the (multiple) Clients and Server application will be on seperate physical machines (for now they are on one). Below is the code I have so far. The server console says "press any key", and the …

Member Avatar
Member Avatar
+0 forum 3

Hi guys, I've been searching for hours now and haven't yet found a good source of C# information for what I need to do. The general gist is this: I have 1 Client app (a simple windows form which gathers data) and 1 Server console app (which holds the business logic) The client needs to send a file (which is a serialized class object called info.sco) to the server and then call a specific server method on that file. Example: User enters data into a form on the client app Client app adds the data to a custom class User …

Member Avatar
Member Avatar
+0 forum 2

file transfer can be easily done with python xmlrpc. it is very simple and spans a very few lines of code.. :) pls [URL="http://1024bitez.blogspot.com/2011/02/simple-ftp-program-with-python-xmlrpc.html"]check this link to see how i done it...[/URL]

Member Avatar
Member Avatar
+0 forum 1

Hello, i've a server and client code in which the error i'm getting is: on deserialization- but when i checked the byte[] length after serialization that i send they are 1550, and then over the tcpclient when i received the byte[] it was 1448 in length... any help or suggestion would be appreciated **CLIENT CODE** [code] static void Main() { Application.Run(new Form2connectclient2library()); } public void cmdConnect_Click(object sender, System.EventArgs e) { try { //****************************TCP NETWORK STREAM******* port = Convert.ToInt32(txtPort.Text); ip = txtIPAddress.Text; myclient = new TcpClient(ip, port); recByte = new byte[myclient.ReceiveBufferSize]; AsyncCallback GetMsgCallback = new AsyncCallback(GetMsg); (myclient.GetStream()).BeginRead(recByte, 0, myclient.ReceiveBufferSize, GetMsgCallback, null); …

Member Avatar
Member Avatar
+0 forum 12

i m creating a Client/Server application in which my server and client can be on the same or on different machines but both are under ISP. [B]My RMI programs[/B]:- -Remote Interface:- [CODE]//Calculator.java public interface Calculator extends java.rmi.Remote { public long add(long a, long b) throws java.rmi.RemoteException; public long sub(long a, long b) throws java.rmi.RemoteException; public long mul(long a, long b) throws java.rmi.RemoteException; public long div(long a, long b) throws java.rmi.RemoteException; } [/CODE] Remote Interface Implementation:- [CODE]//CalculatorImpl.java public class CalculatorImpl extends java.rmi.server.UnicastRemoteObject implements Calculator { public CalculatorImpl() throws java.rmi.RemoteException { super(); } public long add(long a, long b) throws java.rmi.RemoteException { …

Member Avatar
+0 forum 0

Hello everyone , i am trying to create a multi threaded web server, i did the basic part (socket programming ) successfully . Ref: [URL="http://www.daniweb.com/code/snippet217312.html"]http://www.daniweb.com/code/snippet217312.html[/URL] now , the next step , i am trying to establish it by making it multi thread or repetetive polling for client request (yet to decide) The problem i am facing , is i want to create a shared memory pool where the client can access the list of files in the server. Example : There exist a folder named share and there exist some files , in it. Now , if client request to …

Member Avatar
+0 forum 0

The End.