169 Topics
| |
Hello! I'm planning to make an online program, actually it would only be a login system with GUI and a chat window after login. The client program would recieve some data from the server (like names, ages, etc). I don't want to use C++ for sockets, I want to use … | |
Hi All, I am new in programming, and currently learning from some samples. From a[URL="http://www.c-sharpcorner.com/uploadfile/sthangaraju/tcpclientserverst11182005014316am/tcpclientserverst.aspx"] page[/URL], I tried to implement a TCP client server with the following page in WPF (visual studio 2008) [CODE]using System; using System.Text; using System.Net; using System.Net.Sockets; public class serv { public static void Main() { … | |
So I have to connect to a server on a specific port but all I have to identify the server is its name, e.g. "students.ce.sinclair.edu" in a char*. How can I get the ip address to assign to a sockaddr_in? [CODE]struct sockaddr_in server; memset($server, 0, sizeof(server)); server.sin_family = AF_INET; //server.sin_addr.s_addr … | |
| Hey, before everything, sorry about my english, i will do my best I'm really new at this, i just want to know where i should start learning about security, control of ports, control the sockets already initialized for other program, viruses, spywares, hack, nukes, etc.. I'm just asking for sources(i … |
A most basic TCT connection is established with the code below: [CODE]// Initialization IPEndPoint m_IpEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.71"), 5000); Socket m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); NetworkStream m_Stream = new NetworkStream(m_Socket); // Read/write operations m_Stream.Write(System.Text.Encoding.ASCII.GetBytes("Hello world!"), 0, 12); byte[] read_buffer = new byte[4096]; m_Stream.Read(read_buffer, 0, 4096); // Closing open resources … | |
I need a good book to learn CAsyncSocket and Csocket. I want to explain in greater detail the functions and the author is an expert in the field. What do you recommend? thanks | |
Hello everybody! I've wrote a very simple echo server, based on a book about LInux socket programming example and it works just fine. My only problem is that i want to use select() function to handle several connections at one time. I've read lots of reference concerning that function and … | |
Hello! I started to create my own tiny 'framework' mainly built on the socket and the thread module. I haven't been doing too much thread programming before. My problem is that when I try server.waitForConnections(2), at the second connection, it says [code] Unhandled exception in thread started by Error in … | |
I would like to know how to loop a connection or close an existing connection. heres the code i have to connect [CODE]Imports System.Net.Sockets Public Class Form1 Dim clientSocket As New System.Net.Sockets.TcpClient() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try clientSocket.Connect("ServerIp Goes Here", Server port … | |
Hi, Im having a problem with some socket programming and im hoping someone here can help me. basically im trying to bind a listener to a port. I have used some source code i obtained from the net, however the code was a few years old and contained the obsolete … | |
Sockets are one of the most popular means of network communication and they follow client-server architecture. I have created two programs, one to run on a client computer and the other on the server computer. In my program I am showing how using a sockets client program can communicate to … | |
Hello, I built a chat application that uses sockets and TCP/IP protocol. The client is an applet. The problem is I cannot connect the applet client with the desktop server application. [I]If I run the applet inside the applet viewer in NetBeans it works perfectly[/I]. I even tried the applet … | |
I tried swapping a formerly working VA-10 Abit to an Emachine T5026 case, when that mobo proved dead except for the light near the PSU connect. Now, when the Abit was in that eMachine case, I used a Compaq S3000Z switch to test, aligning the power terminals, and the case … | |
hi , i am doing a project in C#, windows application. i am using sockets for communication between systems. now i am facing an error... its given below.. pls help me to solve this [code]System.Net.Sockets.SocketException was unhandled Message="Only one usage of each socket address (protocol/network address/port) is normally permitted" Source="System" … | |
Hi when I send 1000 byte with socket.send , I always recieve 1000 byte with socket.recieve. I know it shouldn't be true for general but because 1000 bytes is a small amount can we be sure that it will not fragmented? I tested it in visual studio and until 8KB … | |
i need help on programming networking.. i'm creating a winservice called HeartBeat. this service is to check if the gateway(list of gateway) is alive and able to do certain process( other application) and if it's down after certain tries, it will notified related person(email/sms/voicemail). We a doing terminal application for … | |
I am writing a sample chat-like function to learn how to use sockets in unix. I am using gcc. To send between clients of a tcp connection I need to encapsulate a bunch of different data: [code=c] typedef struct { short type; int messageID1; int messageID2; short messageID3; int ipAddr; … | |
[CODE]while(size!=0) { printf("loop start"); printf("File Size in int: %d \n",size); byte_count = recv(sock,recv_data, 1024,0); recv_data[byte_count] = '\0'; printf("hhahaha %d \n",10); printf("char is:%c \n",recv_data[0]); //fputc(recv_data[0], fpW); size=size-1; printf("loop end"); } fclose(fpW); This is a piece of Client side code .. i am sending data from Server Side but when i receive … | |
Hi, I'm looking to write a server/client system and I want to pass a hashtable between the two. I've found lots of tutorials on making a "Chat" system which passes strings, but how can I increase this to hashtables? Thanks. Andrew. |
The End.